Sorry! I did not spot you were doing that. I took a similar approach using asm. I would love to get the time to write a small library to make this approach cleaner. I will check out your code and see what i can come up with combining the existing art. Thanks - aj
On 6/7/11, Rémi Forax <[email protected]> wrote: > On 06/07/2011 07:35 PM, Alexander Turner wrote: >> Rémi, >> >> This is a brilliant thing to be doing at this stage. I look forward to >> trying them out. >> >> Are you going to be using invokedynamic its self from Java? Just >> wondering. I think there is a huge potential there. I did not see any >> in the examples so far - but I have not given them the time they >> deserve :) >> >> Take care - AJ > > No, there is actually no Java (the language) syntax for invokedynamic, > so I use a trick, I write Java code (usually Main.java in the default > package) > and after I run a small Java program (named Rewriter) that rewrite the > Main.class to introduce invokedynamic > (by example instead of invokevirtual or invokestatic). > > I'm not really proud of that, but it works for the small cookbook's test > cases. > > Rémi > >> On 5 June 2011 17:43, Rémi Forax<[email protected]> wrote: >>> I've started to write some small (a some not so small) examples >>> showing how to implement common dynamic runtime patterns. >>> >>> http://code.google.com/p/jsr292-cookbook/ >>> >>> Currently, only the source codes are available, >>> the doc will follow. >>> Also the dynamic dispatch pattern is not fully implemented >>> and the memoize one is too complex for my taste. >>> >>> 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 [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/jvm-languages?hl=en. >>> >>> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "JVM Languages" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/jvm-languages?hl=en. > > -- Sent from my mobile device Dr Alexander J Turner http://nerds-central.blogspot.com/2008/01/about-me.html -- You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en.
