'. '

RetroLambda

From APIDesign

(Difference between revisions)
Jump to: navigation, search
(New page: https://github.com/orfjackal/retrolambda RetroLambda project is capable to convert JDK8's usage of InvokeDynamic in lambdas to normal static method invocations. ...)
Line 3: Line 3:
[[RetroLambda]] project is capable to convert [[JDK]]8's usage of [[InvokeDynamic]] in [[Closure|lambdas]] to normal static method invocations.
[[RetroLambda]] project is capable to convert [[JDK]]8's usage of [[InvokeDynamic]] in [[Closure|lambdas]] to normal static method invocations.
-
[[Bck2Brwsr 0.10]] is using [[RetroLambda]] to successfully bring [[Closure|Lambdas]] to browsers!
+
[[Bck2Brwsr]] was using [[RetroLambda]] since [[Bck2Brwsr 0.10]] to successfully bring [[Closure|Lambdas]] to browsers, however it turned out that there are significant flaws using [[RetroLambda]] in long running processes like [[Groovy]]. [[RetroLambda]] relies on reflection to '''final private''' field and such change only works before the code gets compiled to native. That's usually true, if the hack is applied sooner than the code warms up. However that is not the case with [[Gradle]] daemon. As such [[Bck2Brwsr 0.50]] is rewriting the code to avoid [[RetroLambda]] altogether.

Revision as of 10:19, 18 July 2021

https://github.com/orfjackal/retrolambda

RetroLambda project is capable to convert JDK8's usage of InvokeDynamic in lambdas to normal static method invocations.

Bck2Brwsr was using RetroLambda since Bck2Brwsr 0.10 to successfully bring Lambdas to browsers, however it turned out that there are significant flaws using RetroLambda in long running processes like Groovy. RetroLambda relies on reflection to final private field and such change only works before the code gets compiled to native. That's usually true, if the hack is applied sooner than the code warms up. However that is not the case with Gradle daemon. As such Bck2Brwsr 0.50 is rewriting the code to avoid RetroLambda altogether.

Personal tools
buy