News for hackers. Stuff that matters.
Re:New language features since Java 8 to 17 by cutler on Sunday October 24, 2021 @01:43PM (#28980221)
Android will always be Kotlin-first. That's a pretty huge market.
Re:New language features since Java 8 to 17 by jpgvm on Sunday October 24, 2021 @01:49PM (#28980259)
I think people underestimate how deep this integration is going. Compose relies on extensions to the Kotlin compiler. The future of Android and Kotlin are pretty much tied together at this point.
Re:New language features since Java 8 to 17 by jayd16 on Sunday October 24, 2021 @03:13PM (#28980981)
Android used to be always Java first. It could change again.
Re:New language features since Java 8 to 17 by vbezhenar on Sunday October 24, 2021 @03:19PM (#28981023)
Most likely to Flutter. When Google will be ready to ditch Android API.
Re:New language features since Java 8 to 17 by hota_mazi on Sunday October 24, 2021 @04:26PM (#28981557)
Android is based on the JVM, it will never switch to Flutter (and an aggravating factor is that Dart is an inferior version of Kotlin).
Re:New language features since Java 8 to 17 by morelisp on Sunday October 24, 2021 @04:45PM (#28981731)
The JVM is specifically the part of Java Android didn't use, and the layer Google has already completely replaced once.
Re:New language features since Java 8 to 17 by pjmlp on Sunday October 24, 2021 @04:55PM (#28981820)
DEX must be able to represent everything on the Java ecosystem, otherwise it is a hit and miss what can be consumed from Maven central.

Also it is quite common on embedded Java for the vendors to have their own implementation with code translation.

What isn't normal is having stagnant compatibility.

Re:New language features since Java 8 to 17 by xvilka on Sunday October 24, 2021 @09:26PM (#28983593)
Java is an Android's curse. Just compare how completely native iOS and iPadOS beat it in terms of speed and power saving. I hope they will get rid of the Java remnants completely and focus on the native toolchain, frameworks, system libraries.
Re:New language features since Java 8 to 17 by xxpor on Sunday October 24, 2021 @11:40PM (#28984292)
Meanwhile there's a article literally on the front page about zero-click exploits being used against iMessage
Re:New language features since Java 8 to 17 by xvilka on Monday October 25, 2021 @05:02AM (#28985819)
Java doesn't help against exploits, there are plenty in Android phones as well.
Re:New language features since Java 8 to 17 by xxpor on Monday October 25, 2021 @02:13PM (#28991199)
It certainly adds a layer of protection that makes issues like the classic C errors with buffer overruns and derefing invalid pointers a LOT less likely.
Re:New language features since Java 8 to 17 by kaba0 on Monday October 25, 2021 @03:12AM (#28985190)
Android doesn’t run java though? It runs native code the same way as ios, so bringing the latter ecosystem’s better performance into the picture without considering the generational leap in terms of CPU design is just a faulty logical conclusion.
Re:New language features since Java 8 to 17 by pjmlp on Sunday October 24, 2021 @04:52PM (#28981793)
If you want some fun watching Jake Wartorn's opinion on it,

https://youtu.be/VX6nAvRWQg4