by clumsysmurf · 6y ago · 0 comments
They should dump the most widespread mobile operating system ecosystem... because some people think API's are "OO nonsense"? Would you also want Microsoft to abandon whole Windows ecosystem just because WinAPI dates back to Win16?
This is insanity and completely ignores the reasons why ecosystems get popular.
Don't let your fanboyism blind logical thinking.
I'm not going to learn a new language which isn't used anywhere else AND a new UI toolkit just because Google's internal team structure has put them in a position to keep Dart going.
Back when Dart came out, it made sense. But Typescript came along, filled basically the same niche and got significant mindshare.
In any case Kotlin/Native doesn't bring nothing to Android itself.
ART makes use of AOT/JIT with code cache, which is much better than straight AOT on languages with reflection, dynamic dispatch and dynamic loading everywhere.
This is why they gave up on pure AOT introduced during Android 5 and 6 lifetime.
Then the NDK is tailored for writing native libraries for consumption from ART, only exposing C bindings, even though most of the code is actually C++.
So hardly a win having Kotlin/Native there.
Overall I wouldn't say Android development is aweful, I think it's iOS is just marginally better. Swift is a nicer language than Kotlin but creating UI layouts sucks on iOS.
I'm waiting for a Linux phone
Edit: I’m not sure why this question is getting downvoted.
/s
Kotlin works on all Android versions. Java updates don't. That doesn't mean Google shouldn't update the JVM on Android, it does however mean that any update to Kotlin immediately translates to wins across whole ecosystem, including people supporting Androids back to versions like 4.x, while Java updates don't.
It's a significantly better tradeoff - similarly like using TypeScript and polyfills gives you more powerful language on the web without restricting you only to newest browsers.
I've used Java, Python, Ruby, Go and Kotlin. Kotlin is def my favorite and goto. Do you have any specific examples/complaints?
As for other languages: Python is ok for smaller stuff. I don't like Go. My favourite languages are probably Swift and Julia. And recently, I've grown to really like C++ although I used to hate it.
Android is going the way of Google Reader. Kotlin is just to keep developers happy in the meantime before explicit deprecation. Fuchsia + Flutter is the new platform. Android Runtime will be emulated to allow backward compatible Android apps at a performance penalty, but Fuchsia will only have first class support for native compiled languages like Dart, Go, C++, Swift, similar to iOS.
</speculation>
Jetpack Composer is obviously they fighting back to the continuous flow of Flutter questions at Android conferences.
Look at chrome os fiasco. They had it for 6,7 years? They didn’t realized it until Microsoft did put effort to make their OS developer friendly that they should make chromeos developer friendly. Imagine how good chromeos was today if they have started to make it developer friendly in 2010 instead of 2017.
What good is Kotlin's FFI to Java, if everything that you have at your disposal are out-of-date java libraries?
Even the new desugaring being done in R8 and D8 can only go as far as what ART is capable of, sometimes with worse performance, because the Java libraries rely on new JVM bytecodes and intrisic APIs.
So the only long term solution, assuming they keep ignoring modern Java, is to rewrite the world in Kotlin.
Arriving there, means that they could just rename ART into KVM and be done with it.