Re:JEP 295: Ahead-of-Time Compilation
by aaron987 on Thursday October 27, 2016 @03:12PM
(#12808641)
What, if any, effect might this have on Android, given that its all Java?
[ Parent
| on HN ]
None — Android doesn't use Hotspot; they've had their own AOT compilation project for their platform (ART) for some time.
This probably does not affect android. In 5.0, android switched to AOT with a new VM, ART instead of Dalvik, which was a huge win for performance. Jitter in many, many apps went away completely, especially when scrolling. This did cause install times to increase, however. In 7.0 (or 7.1?) there is a mix of JIT with AOT for code that is deemed hot by a profiler, hopefully bringing the benefits of AOT without the lengthy install times.
Android and Oracle's Java have been diverged for quite a while. There aren't any Java 8 features available to Android now, so you sadly shouldn't hold your breath for any Java 9 features either, it will probably be a long, long time.
Re:JEP 295: Ahead-of-Time Compilation
by ChemicalWarfare on Thursday October 27, 2016 @03:44PM
(#12809082)
>>There aren't any Java 8 features available to Android now
that is incorrect. https://developer.android.com/guide/platform/j8-jack.html
Just plopped this into my activity to make sure: someList.stream().map(String::toUpperCase).forEach(System.out::println);
As long as minSdkVersion is 24 or higher you should be good.
Except it doesn't work and is full of bugs.
https://www.reddit.com/r/androiddev/comments/59gcr9/who_is_u...
Probably none. Android runs on a different implementation of the JVM called Android Runtime (ART), previously Dalvik.