Re:Swift on Android?
by marvel_boy on Tuesday April 26, 2016 @12:12PM
(#11573088)
Using the same language (Swift) is a great advantage. Java has reached the retirement age, it's time for a better language.
[ Parent
| on HN ]
"for a better language" that interoperate seamlessly with existing java apis and codebases, and had android restrictions in mind during the design phase.
Fortunately, this language already exists
Re:Swift on Android?
by clumsysmurf on Tuesday April 26, 2016 @12:37PM
(#11573338)
Kotlin doesn't solve any problems for Google from a legal perspective (for example, moving away from the Java ecosystem because of the protracted litigation from Oracle).
"Moving away from the jvm" means getting rid of the Android ecosystem.
That would be the smartest project management decision since the codebase of Netscape 4 was thrown away
Google created those problems in first place, by trying not to pay Sun.
Most such attempts run up against the particular way that a Java-like runtime is used in Android: The max heap size is tiny compared to desktop, nevermind server Java defaults. You have LOTS of instances of the runtime that depend on the Zygote and copy-on-write so as not to eat all of memory. Component lifecycle has to be handled or you will hate life. Inter-component and inter-process communication and cooperation are deeply rooted in the Android architecture. Lots of the Android OS is built in Java, and takes advantage of Android's runtime limitations and capabilities. In other words, unless you replace Java with another JVM language, you are implying a different OS, not Android with a "better" language.