On Jan 7, 2011, at 5:16 AM, Rémi Forax wrote:

> Details are here:
> http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/java/dyn/package-summary.html
> 
> Or you can use ASM 4.0 (beta):
> http://websvn.ow2.org/listing.php?repname=asm&path=%2Fbranches%2FASM_4_FUTURE_2%2F

Yes! ASM is the right tool to use.

For quick and dirty experiments, you might also consider Indify:
  http://blogs.sun.com/jrose/entry/a_modest_tool_for_writing

I use it standalone for unit testing in JDK7:
  
http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/0a56bdd709d0/test/java/dyn/InvokeDynamicPrintArgs.java

The InvokeDynamicPrintArgs unit test is a good introductory example of 
invokedynamic.

-- John

P.S. I'd be happy to see an Indify-like transformation implemented The Right 
Way, in ASM.  What's the best tool for expression reweaving on top of ASM, that 
can decompile and recompile expression transformations?  In the case of Indify, 
it is something like INDY_f().invokeExact(y,z) => __invokedynamic.f(y,z).

-- 
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to jvm-langua...@googlegroups.com.
To unsubscribe from this group, send email to 
jvm-languages+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en.

Reply via email to