5 ms·
What, if any, effect might this have on Android, given that its all Java?
by aaron987 10y ago
What, if any, effect might this have on Android, given that its all Java?
- loeg 10y agoNone — Android doesn't use Hotspot; they've had their own AOT compilation project for their platform (ART) for some time.
- gleenn 10y agoAndroid 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.
- ChemicalWarfare 10y ago>>There aren't any Java 8 features available to Android now that is incorrect. https://developer.android.com/guide/platform/j8-jack.html 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.
- pjmlp 10y agoExcept it doesn't work and is full of bugs. https://www.reddit.com/r/androiddev/comments/59gcr9/who_is_using_jack_how_is_it/ https://www.reddit.com/r/androiddev/comments/59gcr9/who_is_u...
- vanrysss 10y agoProbably none. Android runs on a different implementation of the JVM called Android Runtime (ART), previously Dalvik.
- spbaar 10y agoThis 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.
- wvenable 10y agoAndroid is not JVM so it won't have much affect on it.