Welcome to the modern android dev repo. It is intended to provide sample project in the most comon alternative jvm languages compatible with Android. Furthermore only such will be selected which play nice with java and provide easy exchange java api.
For this reason lets keep Scala aside for now as it provide quite high barrier to access it from java, even if it is quite lightwidth in terms of apk-size. Maybe do an extra section at the end.
Languages to be analyzed:
- Groovy
- Kotlin
- Xtend
- Java + Retrolambda + ProjectLombok
On of the most important aspects beside performance (runtime/compile)
Groovy | Kotlin | Xtend | Java+Retro+Lombok | (ref)Java |
---|---|---|---|---|
3.0MB | 1.6MB | 2.1MB | 1.4MB | 1.4MB |
No supprise java+extras is winning regarding size as no runtime libs are added at all. Interresting fact: Kotlin is quite close.