Live data from Hacker News

Develop for Android with Scala

code.google.com

1–10 of 21 posts

Re: Develop for Android with Scala

#2
I really love my Droid, and generally find Android to be a fairly well-designed SDK, but I also find working in Java really annoying. One of my good friends took the time to make it really easy to develop for Android using Scala instead. Since I know that we have a lot of Android users in these forums who are working on various apps, I thought that this might make the whole experience more pleasant.

Re: Develop for Android with Scala

#3
Cool! Do you know if this ads much/anything to the apk runtime size? The documentation seems a little bit scarce at the moment.

I need to get around to doing up Hecl for Android 'nicely'.

Re: Develop for Android with Scala

#4
post #3

Cool! Do you know if this ads much/anything to the apk runtime size? The documentation seems a little bit scarce at the moment. I need to get around to doing up Hecl for Android 'nicely'.

IT includes a proguard.jar file which I assume is used to remove unnecessary classes from your final application. I managed to get Scala working with Android a while ago by following online guides (a lot more hassle than this looks to be!) and I used proguard for this purpose.

Re: Develop for Android with Scala

#6
post #3

Cool! Do you know if this ads much/anything to the apk runtime size? The documentation seems a little bit scarce at the moment. I need to get around to doing up Hecl for Android 'nicely'.

I did a hello-world in Scala for Android (without this toolkit) shrinking it with proguard and the apk increased by 800kbyte.

Installing on a real device or the emulator is noticeable slower.

Re: Develop for Android with Scala

#8
post #6
post #3

Cool! Do you know if this ads much/anything to the apk runtime size? The documentation seems a little bit scarce at the moment. I need to get around to doing up Hecl for Android 'nicely'.

I did a hello-world in Scala for Android (without this toolkit) shrinking it with proguard and the apk increased by 800kbyte. Installing on a real device or the emulator is noticeable slower.

You should be able to get the final size to less than 100kb, I can't remember exactly what I ended up with using Proguard but I think it was 30-40kb. It should manage to remove virtually all the Scala library code as hardly any of it would be used.

Re: Develop for Android with Scala

#9
How is the performance compared to straight Java? I know the Clojure on Android project is at the moment, slower due to the functional nature of the language. Apparently the Dalvik garbage collector has to work overtime cleaning up because of the emphasis on creating new objects rather than mutating existing ones.
Post reply on HN