4 ms·
There are pretty much no issues using Scala on Android. After running ProGuard, the Scala library takes up a few dozen kilobytes. Execution is as fast as Java.
by happy_dino 13y ago
There are pretty much no issues using Scala on Android. After running ProGuard, the Scala library takes up a few dozen kilobytes.
Execution is as fast as Java. I remember running my Scala app on one of the first tablets (Android 2.x) without issues.
The build system support is impressive and there is a whole community which focuses on Scala running on Android.
- yareally 13y agoHow difficult is it to tie in native libraries with Scala on Android?
- happy_dino 13y agoI think it is pretty similar to Java. Java has the native keyword, Scala has the @native annotation.
- koko775 13y agoAdmittedly, my experience on this was running it on now-ancient Android devices before Dalvik had JIT, and ProGuard at the time seemed to always render Scala apps un-runnable, for whatever reason. At least for me at the time, it was questionable. Nowadays, given the amount of work put into it, I'd put some trust in running it in production. But I'd still expect issues to come up now and then, as it's not a natively supported platform.
- mhaymo 13y agoHave you built a substantial application using Scala on Android? Bump uses Scala, and they had to do a lot of messing with build processes, and they ended up using Java for performance in places as well. I can't find the talk right now, but here's the slides: http://www.slideshare.net/michael.galpin/scala-on-android-experiences-at-bump-technologies http://www.slideshare.net/michael.galpin/scala-on-android-ex...
- happy_dino 13y agoFacebook didn't use Scala and they managed do hit a lot of same issues, too, like this one: http://code.google.com/p/android/issues/detail?id=22586 http://code.google.com/p/android/issues/detail?id=22586 Anyway, the presentation is almost two years old now.