- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: Minimal Jar
Tue, 2009-04-07, 11:52
>>>>> "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.
Tue, 2009-04-07, 15:07
#2
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:
--
ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ı ǝɯıʇ ʇsɐן ǝɥʇ sı sıɥʇ
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ıɥʇ
Tue, 2009-04-07, 17:37
#3
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
>
Tue, 2009-04-07, 18:07
#4
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:
/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.
Tue, 2009-04-07, 18:17
#5
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.
>>
>>
>
>
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.
>