4 ms·
Is there an actual JSR for reified generics? I was under the impression that would generally break VM compatibility. I have a hard time believing Google will
by uxcn 11y ago
Is there an actual JSR for reified generics? I was under the impression that would generally break VM compatibility.
I have a hard time believing Google will stop supporting Java on Android, especially considering how widely they support it for other various platforms. I do know Go support for Android was recently released though.
- pjmlp 11y ago> Is there an actual JSR for reified generics? I was under the impression that would generally break VM compatibility. Not yet. But it might happen, it depends how value types get implemented. Check "New Bytecodes, New Objects", "Adventures on the Road to Valhalla": http://www.oracle.com/technetwork/java/javase/community/jlssessions-2015-2633029.html http://www.oracle.com/technetwork/java/javase/community/jlss... > I have a hard time believing Google will stop supporting Java on Android Of course they won't stop supporting it. After all they stated at Google IO 2014, that only Java matters and they could not see why anyone would want to use something else. But they also don't show any interest to reduce the gap with the official Java. Even the actual version lacks many of the Java 7 libraries. > I do know Go support for Android was recently released though. It doesn't have any official support from the Android team.
- uxcn 11y agoInteresting, thanks for the links. Honestly, I tend to avoid writing Java in favor of native languages at this point largely because of latency requirements. I still wonder where code sharing outweighs the type cast overhead for most JVMs though. > It doesn't have any official support from the Android team. Go on Android definitely seems to be in its infancy.
- pjmlp 11y agoJust as extra info in case you aren't aware, Java is also compiled directly native code on Android as of 5.0. https://source.android.com/devices/tech/dalvik/index.html#AOT_compilation https://source.android.com/devices/tech/dalvik/index.html#AO... And apparently Oracle is finally joining the third party JVMs by adding AOT support to the reference JDK, but it might only come after Java 10. This together with the upcoming value types and JNI replacement, might eventually close the gap with the alternatives. Not being a Java zealot, as a polyglot developer I use a bit of everything, just spreading the word.
- namelezz 11y agoI think Google probably is looking at Kotlin for Java replacement on Android.
- pron 11y agoThat is completely orthogonal. Kotlin works on top of the Java ecosystem, and therefore enjoys the same capabilities and libraries enjoyed by Java -- which Android users won't get even if they use Kotlin. Kotlin code that uses Java libraries that use features that are not available on Andorid won't work on Android.