Live data from Hacker News

Android now supports Kotlin

venturebeat.com

141–150 of 225 posts

Re: Android now supports Kotlin

#141

Earlier quoted context omitted.

Today, Android cross-compiles JVM bytecode to its own non-JVM bytecode; I'd assume they'll continue using a two-stage approach for Kotlin.

Kotlin claims future capability for "Native" applications. I assume that this is separate from "Android" applications, even if these are compiled to native instructions.

Correct, they are working on targeting LLVM

Re: Android now supports Kotlin

#142
post #76

What does it mean being "supported", given that one already can use Kotlin on Android?

It means: - being documented on https://developers.google.com - being installed by default with the SDK - having official tutorials provided by the Android team using Kotlin - having code samples provided by the Android team using Kotlin Providing the confidence to many companies out there that Google will not change Android in a way that Kotlin compiled applications would stop working.

Right, the title of the article is pretty awful and misleading. The language used at the conference was "Kotlin is now a first-class supported language". First-class supported means it gets all the treatments you mentioned above, and probably better tooling by Google for development.

Re: Android now supports Kotlin

#143
post #121

Earlier quoted context omitted.

> since it is just another JVM language Not for long, they're working on Kotlin Native which will make it completely independent from the JVM and portable to all platforms. Killer.

That has no value for Google. If Google wanted to get rid of JVM technology and idioms on Android then it would be better off with pure native language like Swift/Rust/Go. They all are quite further away from Javaism. Kotlin's great value is mostly because it is Java like and run on JVM.

And yet Microsoft did .NET Native precisely to target mobile platforms.

Why do you think that natively compiled Kotlin would be slower than Go, anyway?

Re: Android now supports Kotlin

#145

Looks like Kotlin will soon be skyrocketing to the top of the TIOBE charts.

Disclaimer: I am always looking for that Unicorn. The one that will let me write my code once and run it on all platforms. I refuse to give up this quest. I use Pycharm and have used other Jetbrains IDE's in the past. They make me soooo very happy to use. That is, I have tried almost every Python IDE and suped up Vim/Emacs; None of them came close to Pycharm for me. They know cross platform. Their IDE's are just as b…

"Disclaimer: I am always looking for that Unicorn. The one that will let me write my code once and run it on all platforms. I refuse to give up this quest."

Except all those platforms have different paradigms regarding UI, and different ideas regarding base components. Even if you could have your code run on all of them, you'd still be writing platform specific code.

Re: Android now supports Kotlin

#146
post #74

Earlier quoted context omitted.

Dart runs all of their AdSense code. I also believe your information about the usage of Go at Google is also out of date.

Dart runs the AdSense code, because the AdSense team rescued the Dart team when the decision came to them stop being part of Chrome development efforts. Regarding Go at Google, if you have better sources of information to share with those living outside Mountain View, it would be very helpful.

I think Go needs and does very little marketing inside or outside Google. Despite what Go baiters say about its usage and lack of features like generics etc, it is now reasonably successful in industry. Unlike Dart they do not need to do constant hammering that a huge/critical application X inside Google is written in Go.

Re: Android now supports Kotlin

#147
post #106
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.

The newest version of Scala (2.12) requires a JVM with Java 8 feature compatibility which makes it unusable on Android devices. Google would literally be stuck supporting an obsolete version of a language that's not developed... or restrict the use of it only to Android O and newer making it dead on arrival. Kotlin compiler generates code that's runnable on JVMs supporting Java 6, which makes it work on pretty much a…

thought recent android's tools update meant I can use java8 on android devices...

guess that requires a recent android device :(

Re: Android now supports Kotlin

#148
post #57

Good move. Out with possible null pointers everywhere for no freaking reason at all. It's 2017. Apple did a great job with Swift but launched it when it wasn't mature yet but Kotlin will have JetBrains level of IDE support from the get go so and it's mature already only a luddite would stay with Java.

> it's mature already only a luddite would stay with Java.

Don't confuse professional programmer who would use language whatever client/employer decides with luddite.

Re: Android now supports Kotlin

#149
I should note that Kotlin now supports JDK, JS, iOS, and LLVM as backends. Gradle also announced support for Kotlin. This means you can write your Android app, iOS app, web browser app, desktop app, and your build scripts -- finally all in the same language.

Re: Android now supports Kotlin

#150
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…

I call Kotlin Android's Swift.

Exactly!
Post reply on HN