4 ms·
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 runti
by simplestyle 12y ago
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?
- masklinn 12y agoThe 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/2.3.6 http://mvnrepository.com/artifact/org.codehaus.groovy/groovy... [1] http://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-runtime/0.8.679 http://mvnrepository.com/artifact/org.jetbrains.kotlin/kotli... [2] http://mvnrepository.com/artifact/org.scala-lang/scala-library/2.11.2 http://mvnrepository.com/artifact/org.scala-lang/scala-libra... [3] http://mvnrepository.com/artifact/org.clojure/clojure/1.6.0 http://mvnrepository.com/artifact/org.clojure/clojure/1.6.0