Scala with Android - do anyone have experience?
Hello? Any experience with Scala in Android?
Syntaxis du likes it, and basically it's still inside the same Java, so it's definitely gonna go to Androids.
Mystic last edited by
There's experience. The main problem is the Android has its archive format (instead of jar dex). In format http://code.google.com/p/android/issues/detail?id=20814 methods/on file and scala, this restriction is locked. It can be countered by tools such as proguard, which cut out all the unused code, and makes a number of optimizations, but it doesn't work fast enough, and every time and so, it's not fast, it's got an app/recorded on the phone emulator/test.
In the past (up to version 2.2, when it was like JIT in the Android) the code written on scala was slower than plain java, now it's not visible. There is a marked discrepancy in memory consumption (but difficult places can be written in a peremptory style -- scala allows, or can be written in java -- as mentioned here, in one project, to abrogate any jvm languages that are compiled in class files such as Java, Scala, Clojure, Kotlin and other less popular).
Other developments are quite pleasant (e.g., the reference to @murmurmurmur allows for the use of typified resources rather than casting each resource that chooses id).