Re:Kotlin, the Swift of Android
by simplestyle on Monday September 01, 2014 @12:47PM
(#8253717)
How does Kotlin compare to Groovy for Android development? Are they similar beasts when used for Android development, as in they both need to import their runtimes?
[ Parent
| on HN ]
The article touches upon that: Kotlin has a runtime you need to import, but it's significantly lighter-weight than Groovy's or Scala's, and the method-count overhead is relatively low (half that of Guava without proguard).
Looking at the relevant jars, groovy 2.3.6 is 4.3MB[0] while Kotlin 0.8.679 is 353KB[1] (there's also a 503KB kotlin-stdlib, not sure what the comparison should be to but it compares very favorably even including both)
For other references, Scala 2.11.2 is 5.3MB and Clojure 1.6.0 is 3.5MB[3]
[0] http://mvnrepository.com/artifact/org.codehaus.groovy/groovy...
[1] http://mvnrepository.com/artifact/org.jetbrains.kotlin/kotli...
[2] http://mvnrepository.com/artifact/org.scala-lang/scala-libra...
[3] http://mvnrepository.com/artifact/org.clojure/clojure/1.6.0