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

Re: Minimal Jar

5 replies
Seth Tisue
Joined: 2008-12-16,
User offline. Last seen 34 weeks 3 days ago.

>>>>> "porfirio" == porfirio writes:

porfirio> I'm using scala with some Java API and my own API, so i dont
porfirio> need mos stuff from the runtime.

porfirio> Could be possible to create a lite-jar distribution with just
porfirio> classes needed by the language features like closures and
porfirio> tuples etc

I suggest using ProGuard. It keeps only the classes you actually use.
I use it on my app and it works great.

A couple small issues: https://lampsvn.epfl.ch/trac/scala/ticket/1572
causes some spurious warnings. And at least on my app, I have to use
the -dontoptimize flag or the whole thing fails, but that's fine.

porfirio
Joined: 2009-03-25,
User offline. Last seen 42 years 45 weeks ago.
Re: Minimal Jar

I know proguard it does a nice job, when it works....

But still i think that a minimal jar would be usefull, i think i will build
it myself, with just wat i need

Seth Tisue wrote:
>
>>>>>> "porfirio" == porfirio writes:
>
> porfirio> I'm using scala with some Java API and my own API, so i dont
> porfirio> need mos stuff from the runtime.
>
> porfirio> Could be possible to create a lite-jar distribution with just
> porfirio> classes needed by the language features like closures and
> porfirio> tuples etc
>
> I suggest using ProGuard. It keeps only the classes you actually use.
> I use it on my app and it works great.
>
> A couple small issues: https://lampsvn.epfl.ch/trac/scala/ticket/1572
> causes some spurious warnings. And at least on my app, I have to use
> the -dontoptimize flag or the whole thing fails, but that's fine.
>

Szymon Jachim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Minimal Jar
Scala Runtime Lite?
It could be useful, but where to set the border?
Only include what's in Predef and it's dependencies?

Szymon

On Tue, Apr 7, 2009 at 3:52 PM, porfirio <porfirio.ribeiro@sapo.pt> wrote:

I know proguard it does a nice job, when it works....

But still i think that a minimal jar would be usefull, i think i will build
it myself, with just wat i need



Seth Tisue wrote:
>
>>>>>> "porfirio" == porfirio  <porfirio.ribeiro@sapo.pt> writes:
>
>  porfirio> I'm using scala with some Java API and my own API, so i dont
>  porfirio> need mos stuff from the runtime.
>
>  porfirio> Could be possible to create a lite-jar distribution with just
>  porfirio> classes needed by the language features like closures and
>  porfirio> tuples etc
>
> I suggest using ProGuard.  It keeps only the classes you actually use.
> I use it on my app and it works great.
>
> A couple small issues: https://lampsvn.epfl.ch/trac/scala/ticket/1572
> causes some spurious warnings.  And at least on my app, I have to use
> the -dontoptimize flag or the whole thing fails, but that's fine.
>
> --
> Seth Tisue / http://tisue.net
> lead developer, NetLogo: http://ccl.northwestern.edu/netlogo/
>
>

--
View this message in context: http://www.nabble.com/Minimal-Jar-tp22925861p22929479.html
Sent from the Scala mailing list archive at Nabble.com.




--
ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ı ǝɯıʇ ʇsɐן ǝɥʇ sı sıɥʇ
porfirio
Joined: 2009-03-25,
User offline. Last seen 42 years 45 weeks ago.
Re: Minimal Jar

Yes, that woukd do it, and also the classes need for ruples and closures

We could get all need for use this wonderfull lang in a couple of Kb, i dont
need/want all the rest
I'll just use Java api's or create small adaptors

Szymon Jachim wrote:
>
> Scala Runtime Lite?
> It could be useful, but where to set the border?
> Only include what's in Predef and it's dependencies?
>
> Szymon
>

david.bernard
Joined: 2009-01-08,
User offline. Last seen 1 year 27 weeks ago.
Re: Minimal Jar
It's your border, in mime there is also Option, case clase, list, actor...

/davidB

On Tue, Apr 7, 2009 at 18:36, porfirio <porfirio.ribeiro@sapo.pt> wrote:

Yes, that woukd do it, and also the classes need for ruples and closures

We could get all need for use this wonderfull lang in a couple of Kb, i dont
need/want all the rest
I'll just use Java api's or create small adaptors


Szymon Jachim wrote:
>
> Scala Runtime Lite?
> It could be useful, but where to set the border?
> Only include what's in Predef and it's dependencies?
>
> Szymon
>

--
View this message in context: http://www.nabble.com/Minimal-Jar-tp22925861p22933120.html
Sent from the Scala mailing list archive at Nabble.com.


porfirio
Joined: 2009-03-25,
User offline. Last seen 42 years 45 weeks ago.
Re: Minimal Jar

I see that might be something easy todo.

So better do it by myself

David Bernard-3 wrote:
>
> It's your border, in mime there is also Option, case clase, list, actor...
>
> /davidB
>
> On Tue, Apr 7, 2009 at 18:36, porfirio wrote:
>
>>
>> Yes, that woukd do it, and also the classes need for ruples and closures
>>
>> We could get all need for use this wonderfull lang in a couple of Kb, i
>> dont
>> need/want all the rest
>> I'll just use Java api's or create small adaptors
>>
>>
>> Szymon Jachim wrote:
>> >
>> > Scala Runtime Lite?
>> > It could be useful, but where to set the border?
>> > Only include what's in Predef and it's dependencies?
>> >
>> > Szymon
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Minimal-Jar-tp22925861p22933120.html
>> Sent from the Scala mailing list archive at Nabble.com.
>>
>>
>
>

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