News for hackers. Stuff that matters.
Re:Retropiler: Java 8 Standard Library Backport for Android by leastangle on Sunday May 07, 2017 @01:38PM (#14286497)
I thought the Android team is switching to native Java 8 support anyway?

https://android-developers.googleblog.com/2017/03/future-of-...

Re:Retropiler: Java 8 Standard Library Backport for Android by vesinisa on Sunday May 07, 2017 @01:46PM (#14286529)
That targets only Android 7 and above (and even then a subset of the features). If I understand correctly, this actually allows you to target any Android version at or above SDK 15 (Android 4.0.3), because it monkey patches your code to replace part of the standard library with external libraries. Then, when you decide to deprecate Android 6 support one day, you should be able to smoothly transition to fully native Java 8.
Re:Retropiler: Java 8 Standard Library Backport for Android by pulse7 on Sunday May 07, 2017 @05:45PM (#14287856)
According to this table: https://developer.android.com/studio/preview/features/java8-...

you can use Lambda expressions and Method References with any Android version... but without Java 8 libraries...

Re:Retropiler: Java 8 Standard Library Backport for Android by pjmlp on Sunday May 07, 2017 @01:49PM (#14286545)
Kind of.

They are supporting Java 8 language features depending on the Android platform version.

Some Java 8 library APIs have been adopted, but require the latest Android versions.

Finally, the JVM bytecodes like invoke dynamic and method handles aren't supported thus making libraries that use them, unusable on Android devices.

Re:Retropiler: Java 8 Standard Library Backport for Android by MrZipf on Sunday May 07, 2017 @02:10PM (#14286654)
Re:Retropiler: Java 8 Standard Library Backport for Android by pjmlp on Sunday May 07, 2017 @03:34PM (#14287149)
Yeah, given that Android N after one year is at 6%, ....
Re:Retropiler: Java 8 Standard Library Backport for Android by MrZipf on Monday May 08, 2017 @01:41AM (#14289488)
That is the nature of the beast except for retropiling. Method handles may be a hard set of features to implement on that path.