Hacker News new | ask | show | jobs
by realusername 2855 days ago
Android is quickly moving away from Java to make Kotlin the default language nowadays, it's probably in part due to the Java lawsuit (and in part to add language features quicker without changing the VM).
1 comments

They aren't rewriting the Java parts.

Kotlin just gets an additional library to make some SDK usage a bit easier.

No indeed but they are clearly phasing out Java as the default language in the future, I don't see much plan to fully adopt Java 8 (only partial support for now) and Java 9 (no support) for Android. Since they are using their custom ART Runtime, it's not even impossible they would add VM instructions specific to Kotlin in the future (I don't have any knowledge of that yet but that would not surprise me).
That will only happen when Android Frameworks and lower level stack gets rewriten in Kotlin.

No mention of Kotlin in Treble documentation, only Java and C++.

It is like hoping UNIX derivatives will use anything other than C on their kernels.

AOSP commit messages show initial support for Java 9 and their clamp down in reflection for private APIs done in Android P seems to be a step towards Java modules.

I see an easier path just rebooting everything with Fuchsia than having them rewriting Android in Kotlin.