Awesome, especially since I wrote that example code yesterday 10 minutes before the talk!
-- John (on my iPhone) On Jun 5, 2009, at 5:37 PM, Rémi Forax <fo...@univ-mlv.fr> wrote: > > Hi all, > I've finished to code the first part (method handles support) of the > JSR > 292 backport, > i.e the ability to run method handles and invokedynamic on 1.5/1.6 > VMs. > > The code is available here: > http://code.google.com/p/jvm-language-runtime/source/browse/#svn/trunk/invokedynamic-backport > > By example, the backport is able to run the FastAndSlow example > provide > by John and Christian > in their JSR292 Cookbook presentation : > http://cr.openjdk.java.net/~jrose/pres/200906-Cookbook.htm > > [fo...@localhost indy-backport]$ ant clean all > Buildfile: build.xml > > clean: > [delete] Deleting: > /home/forax/java/workspace/indy-backport/lib/jsr292-backport.jar > [delete] Deleting directory > /home/forax/java/workspace/indy-backport/classes > [mkdir] Created dir: /home/forax/java/workspace/indy-backport/ > classes > > compile: > [javac] Compiling 24 source files to > /home/forax/java/workspace/indy-backport/classes > > jar: > [jar] Building jar: > /home/forax/java/workspace/indy-backport/lib/jsr292-backport.jar > > all: > > BUILD SUCCESSFUL > Total time: 1 second > [fo...@localhost indy-backport]$ cd sandbox/ > [fo...@localhost sandbox]$ javac -source 1.7 FastAndSlow.java > [fo...@localhost sandbox]$ /usr/jdk/jdk1.6.0_11/bin/java > -javaagent:../lib/jsr292-backport.jar FastAndSlow > 5 > I'm hungry; is it done yet? > 5.2 > 2147483646 > oops, it's overflowing > I'm hungry; is it done yet? > 2.147483648E9 > > It's time to go to sleep for me, > cheers, > Rémi > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to jvm-languages@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 -~----------~----~----~----~------~----~------~--~---