I'm trying to figure out exactly how lambdas and closures work in the JVM. To that end, I've tried compiling this simple test case: Disassembling t ...
I'm trying to figure out exactly how lambdas and closures work in the JVM. To that end, I've tried compiling this simple test case: Disassembling t ...
I am trying to fix the metafactory call for an interface method reference in Groovy: https://issues.apache.org/jira/browse/GROOVY-9853 Given small Ja ...
External variable references from Java lambdas are given as constructor arguments. Java also allows up to 255 arguments to be given to a method. For ...
I am trying to compile and load dynamically generated Java code during runtime. Since both ClassLoader::defineClass and Unsafe::defineAnonymousClass h ...
I have struggled for over a week now with how to use LambdaMetafactory to generate a usable callSite here's my latest groovy script try out. I have t ...
As of Kotlin 1.6.0, for Kotlin/JVM projects one may specify the -jvm-target version option up to Java 17. What are the benefits of doing so? I couldn ...
I want to dynamically call a native method from Java. Because the method signature is unknown at compile time, I've made generic native methods for mo ...
Context: I've been benchmarking the difference between using invokedynamic and manually generating bytecode (this is in the context of deciding whethe ...
Where can I find the source code of the android code verifier? I want to work with invokedynamics but get some VerifyErrors (java.lang.VerifyError: Ve ...
I believe since Java 9 string concatenation has been implemented using StringConcatFactory. Since this is provided as an API in Java how are the meth ...
I have two classes A and B, both define method foo() with common signature (accept nothing, return void). They don't have the common base class (or in ...
I have an interface Action: Class SimpleAction: Class ComplexAction: I want to create a function which takes the name of class and returns an ...
Background I'm currently writing a JVM in C# for purely academic purposes (and maybe to build a mixed .NET and Java/Scala application in the future). ...
I'd like to see how to make invokedynamic calls with the same dispatch logic as invokevirtual. I'm asking this question because the examples currentl ...
Groovy added the --indy option in version 2.0, back in 2012. It wasn't the default at the time because invoke dynamic required Java 7, and many people ...
I want to try and avoid reflection for invoking a constructor and am trying to follow the LamdaMetaFactory approach taken in this post - Faster altern ...
As written in JEP 280: Indify String Concatenation: Change the static String-concatenation bytecode sequence generated by javac to use invokedynam ...
Think of a dynamic, predicated aspect language. Aspects could be invoked (i.e., methods) instead of or before and after an original method. These aspe ...
I'm struggling to determine what is causing a moderately large Groovy application to perform slowly in production. When taking thread dumps of running ...
Java code Scala code (version 2.12.0) result ...