Live data from Hacker News

Android now supports Kotlin

venturebeat.com

21–30 of 225 posts

Re: Android now supports Kotlin

#21
post #13
post #3

Was hoping for golang but this is good too

Why haven't they supported Go on android?

Total guess, but maybe they see the actual usage numbers of developers that use Go? AND that number is not very high. Also, how well does Go translate into Android apps? Just a guess.

Re: Android now supports Kotlin

#22
post #5

Well this looks like going to push Kotlin in big league. I remember scala enthusiasts made big noise in last few years to have scala as officially supported language. But Google seems to prefer a closer relationship with Jetbrains.

Scala never worked that well, for example it requires several steps, focus on sbt, requires the pure InteliJ version instead of Android Studio, thus forcing developers to be a few versions behind on Android plugins.

http://scala-on-android.taig.io/sources/

Re: Android now supports Kotlin

#23
post #5

Well this looks like going to push Kotlin in big league. I remember scala enthusiasts made big noise in last few years to have scala as officially supported language. But Google seems to prefer a closer relationship with Jetbrains.

I don't see what it has to do with relationships. Convince us why Scala would've been a better choice?

Re: Android now supports Kotlin

#24
post #13
post #3

Was hoping for golang but this is good too

Why haven't they supported Go on android?

Go would require building a whole new set of APIs and massive work since Go does not interop with Java.

Kotlin, however, interops with Java nicely since it compiles to jvm bytecode. So there's no new APIs to build and no transition performance costs.

Although that said you can actually use Go on Android ( https://github.com/golang/go/wiki/Mobile ) but since Go is native code you're stuck with Android's NDK or dealing with JNI and the performance costs of that.

Re: Android now supports Kotlin

#26
post #16
post #2

Funny, I was messing around with Kotlin for the first time last night. So far, the language seems well-structured and I really like that one gets all of Java's ecosystem without actually having to write java. (Also, "override fun" just sounds hilarious. Bwaha!) Throw in TornadoFX and Gluon Scene Builder (formerly of Oracle) and you're spinning up high-quality cross-platform GUIs faster than Atom, with a visual editor…

Is JavaFX also included in the "safe" parts of Java (i.e., in an Oracle-sanctioned GPL VM)? I know there are some open-source versions, but Oracle's trigger-happy lawsuit button on Java these days has made me nervous to poke.

OpenJFX is part of Oracle's OpenJDK project.

Re: Android now supports Kotlin

#27
post #13
post #3

Was hoping for golang but this is good too

Why haven't they supported Go on android?

Java, Python and C++ are the actual workhorse languages at Google.

Go doesn't seem to be used that much other than a few known projects like the stuff that got re-written for YouTube or the download server.

You see this when new Web APIs are released, usually Go isn't part of the preview SDKs, and on Android all the work done on Go mobile has been done by people on the Go team or from the community at large.

Re: Android now supports Kotlin

#29
post #13
post #3

Was hoping for golang but this is good too

Why haven't they supported Go on android?

I think one of the things that get people excited about Go on desktop is it is one of the few well supported GC langs that compiles to an exe. There isn't anything else super compelling about it.

On android, everything gets AOT compiled on install already.

Re: Android now supports Kotlin

#30
post #13

Earlier quoted context omitted.

Why haven't they supported Go on android?

Total guess, but maybe they see the actual usage numbers of developers that use Go? AND that number is not very high. Also, how well does Go translate into Android apps? Just a guess.

I like writing Go, and it's my go to (pun intended) for writing web API's. Building a framework around it for Android apps would be a mighty task. Kotlin makes more sense considering it's connection with the JVM.

I'll keep writing Java to build Android apps though. I'm sure it's "more fun" or whatever, but Java's worked just fine for me thus far. I'm used to the verbosity, and have no desire to start from scratch with another language. If some huge benefits were presented, I would. But, I'm failing to see any.

Post reply on HN