Re:Android now supports Kotlin
by KingMob on Wednesday May 17, 2017 @03:27PM
(#14361956)
Would be lovely if they officially supported Clojure too.
[ Parent
| on HN ]
Re:Android now supports Kotlin
by vickychijwani on Thursday May 18, 2017 @06:31PM
(#14371621)
As much as I want this, it's not going to happen for the simple reason that Clojure adds a big runtime and a huge startup cost on Android, which is unacceptable. It's fine for servers, but a total deal-breaker for mobile apps.
Kotlin on the other hand has a tiny runtime (< 1 MB before dead-code elimination etc with Proguard) and negligible startup cost - in fact several popular Android libraries have a bigger startup cost impact than Kotlin.
I'd love that too, but there is a startup time overhead with the Clojure runtime. Given the moves Google's made in recent wrt moving away from JIT for startup time reasons, this would be challenging.
Re:Android now supports Kotlin
by on_and_off on Wednesday May 17, 2017 @06:18PM
(#14363321)
Google has chosen to support kotlin because the community has very strongly pushed in that direction.
I am not too familiar with Clojure, what would it bring us that kotlin (or java) don't have ?
Re:Android now supports Kotlin
by Skunkleton on Wednesday May 17, 2017 @07:38PM
(#14363762)
Parenthesis.
And lots of other things too. I just wanted to make a lisp joke. I will see myself out.
Re:Android now supports Kotlin
by jakebasile on Wednesday May 17, 2017 @03:43PM
(#14362139)
I'm with you, but I think the size and startup time of Clojure might be a big hurdle.
If you want to use Clojure on Android, I'd recommend Clojurescript and React Native https://github.com/drapanjanas/re-natal