This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Scala Applets

10 replies
Tim Perrett
Joined: 2008-12-25,
User offline. Last seen 42 years 45 weeks ago.

Hey guys,

Has anyone created web applets with Scala? I've not tried but wondered
if it was even possible.

Cheers

Tim

david.bernard
Joined: 2009-01-08,
User offline. Last seen 1 year 27 weeks ago.
Re: Scala Applets
We did it at office

On Fri, Jan 30, 2009 at 13:44, Tim Perrett <hello [at] timperrett [dot] com> wrote:
Hey guys,

Has anyone created web applets with Scala? I've not tried but wondered if it was even possible.

Cheers

Tim

James Iry
Joined: 2008-08-19,
User offline. Last seen 1 year 23 weeks ago.
Re: Scala Applets
http://technically.us/code/x/flocking-with-spde/
http://alumnus.caltech.edu/~jimmc/stringart/stringart.html
http://www.cafetecheria.com/pub/mines/

On Fri, Jan 30, 2009 at 4:44 AM, Tim Perrett <hello [at] timperrett [dot] com> wrote:
Hey guys,

Has anyone created web applets with Scala? I've not tried but wondered if it was even possible.

Cheers

Tim

Rob Dickens
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Applets
Yes, but be prepared to spend some time learning how to shrink the scala-library (and scala-swing) jarfile, e.g. using ProGuard - do a search for this in the mailing-list archives to find out more.

Rob

2009/1/30 Tim Perrett <hello [at] timperrett [dot] com>
Hey guys,

Has anyone created web applets with Scala? I've not tried but wondered if it was even possible.

Cheers

Tim
Tim Perrett
Joined: 2008-12-25,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Applets

Ok, so the scala-library and scala-swing packages would also need to be
included in the applet download which could bloat the size considerably I
guess? How small do you think it could realistically get?

Cheers, Tim

On 30/01/2009 13:57, "Rob Dickens" wrote:

> Yes, but be prepared to spend some time learning how to shrink the
> scala-library (and scala-swing) jarfile, e.g. using ProGuard - do a search for
> this in the mailing-list archives to find out more.
>
> Rob
>
> 2009/1/30 Tim Perrett
>> Hey guys,
>>
>> Has anyone created web applets with Scala? I've not tried but wondered if it
>> was even possible.
>>
>> Cheers
>>
>> Tim
>

Rob Dickens
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Applets
That depends on how many classes you make use of, since only those will be included in the shrunken version. In my (so far, limited) experience, the resulting jar is easily small enough to be downloaded as part of the applet.

2009/1/30 Tim Perrett <hello [at] timperrett [dot] com>

Ok, so the scala-library and scala-swing packages would also need to be
included in the applet download which could bloat the size considerably I
guess? How small do you think it could realistically get?

Cheers, Tim

On 30/01/2009 13:57, "Rob Dickens" <arctic [dot] bob [at] googlemail [dot] com> wrote:

> Yes, but be prepared to spend some time learning how to shrink the
> scala-library (and scala-swing) jarfile, e.g. using ProGuard - do a search for
> this in the mailing-list archives to find out more.
>
> Rob
>
> 2009/1/30 Tim Perrett <hello [at] timperrett [dot] com>
>> Hey guys,
>>
>> Has anyone created web applets with Scala? I've not tried but wondered if it
>> was even possible.
>>
>> Cheers
>>
>> Tim
>





--
Rob, Lafros.com
Lalit Pant
Joined: 2009-01-05,
User offline. Last seen 2 years 7 weeks ago.
Re: Scala Applets

I've been doing it for my website. An example:
http://apps.kogics.net/subtract

It's working out pretty well. I use Proguard to shrink and package my applet
jars, and then compress them further with pack200. I get applet jar sizes in
the ~30K range.

Cheers,
- Lalit

:::
Lalit Pant
Founder, Kogics
http://www.kogics.net

timperrett wrote:
>
> Hey guys,
>
> Has anyone created web applets with Scala? I've not tried but wondered
> if it was even possible.
>
> Cheers
>
> Tim
>
>

tolsen77
Joined: 2008-10-08,
User offline. Last seen 1 year 38 weeks ago.
Re: Scala Applets
I gather that pack200 only works with java-web-start and not embedded applets?

On Fri, Jan 30, 2009 at 5:42 PM, Lalit Pant <lalit_pant [at] yahoo [dot] com> wrote:

I've been doing it for my website. An example:
http://apps.kogics.net/subtract

It's working out pretty well. I use Proguard to shrink and package my applet
jars, and then compress them further with pack200. I get applet jar sizes in
the ~30K range.

Cheers,
- Lalit

:::
Lalit Pant
Founder, Kogics
http://www.kogics.net


timperrett wrote:
>
> Hey guys,
>
> Has anyone created web applets with Scala? I've not tried but wondered
> if it was even possible.
>
> Cheers
>
> Tim
>
>

--
View this message in context: http://www.nabble.com/Scala-Applets-tp21746519p21750844.html
Sent from the Scala - User mailing list archive at Nabble.com.


Lalit Pant
Joined: 2009-01-05,
User offline. Last seen 2 years 7 weeks ago.
Re: Scala Applets

Pack200 works with applets as of Java6u10. Further info here:
http://java.sun.com/javase/6/docs/technotes/guides/jweb/tools/pack200.html

Cheers,
- Lalit

:::
Lalit Pant
Founder, Kogics
http://www.kogics.net

Trond Olsen wrote:
>
> I gather that pack200 only works with java-web-start and not embedded
> applets?
>
> On Fri, Jan 30, 2009 at 5:42 PM, Lalit Pant wrote:
>
>>
>> I've been doing it for my website. An example:
>> http://apps.kogics.net/subtract
>>
>> It's working out pretty well. I use Proguard to shrink and package my
>> applet
>> jars, and then compress them further with pack200. I get applet jar sizes
>> in
>> the ~30K range.
>>
>> Cheers,
>> - Lalit
>>
>> :::
>> Lalit Pant
>> Founder, Kogics
>> http://www.kogics.net
>>
>>
>> timperrett wrote:
>> >
>> > Hey guys,
>> >
>> > Has anyone created web applets with Scala? I've not tried but wondered
>> > if it was even possible.
>> >
>> > Cheers
>> >
>> > Tim
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Scala-Applets-tp21746519p21750844.html
>> Sent from the Scala - User mailing list archive at Nabble.com.
>>
>>
>
>

tolsen77
Joined: 2008-10-08,
User offline. Last seen 1 year 38 weeks ago.
Re: Scala Applets
I'll answer myself... Didn't notice that it got included in Java SE 6 update 10 (http://java.sun.com/developer/technicalArticles/javase/java6u10/#usability). My pet-project is using applet and almost got junked because of memory limitations, which got included in this release also.

On Fri, Jan 30, 2009 at 5:59 PM, Trond Olsen <tolsen77 [at] gmail [dot] com> wrote:
I gather that pack200 only works with java-web-start and not embedded applets?

On Fri, Jan 30, 2009 at 5:42 PM, Lalit Pant <lalit_pant [at] yahoo [dot] com> wrote:

I've been doing it for my website. An example:
http://apps.kogics.net/subtract

It's working out pretty well. I use Proguard to shrink and package my applet
jars, and then compress them further with pack200. I get applet jar sizes in
the ~30K range.

Cheers,
- Lalit

:::
Lalit Pant
Founder, Kogics
http://www.kogics.net


timperrett wrote:
>
> Hey guys,
>
> Has anyone created web applets with Scala? I've not tried but wondered
> if it was even possible.
>
> Cheers
>
> Tim
>
>

--
View this message in context: http://www.nabble.com/Scala-Applets-tp21746519p21750844.html
Sent from the Scala - User mailing list archive at Nabble.com.



Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Applets
James,

Too cool! Thanks!

Best wishes,

--greg

On Fri, Jan 30, 2009 at 5:44 AM, James Iry <jamesiry [at] gmail [dot] com> wrote:
http://technically.us/code/x/flocking-with-spde/
http://alumnus.caltech.edu/~jimmc/stringart/stringart.html
http://www.cafetecheria.com/pub/mines/

On Fri, Jan 30, 2009 at 4:44 AM, Tim Perrett <hello [at] timperrett [dot] com> wrote:
Hey guys,

Has anyone created web applets with Scala? I've not tried but wondered if it was even possible.

Cheers

Tim




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105

+1 206.650.3740

http://biosimilarity.blogspot.com

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland