Re: Another paper on invokedynamic

2010-10-11 Thread John Rose
On Oct 10, 2010, at 10:48 AM, Chanwit Kaewkasi wrote: It has been too late to me to cite it. Sorry about that! That's OK; the paper just came out. I made an obscure reference to it in my blog: http://blogs.sun.com/jrose/entry/an_experiment_with_generic_arithmetic Here's a file copy:

Re: MethodHandles for Kawa and other functional languages?

2010-10-11 Thread Helmut Eller
* Per Bothner [2010-10-10 23:38] writes: An example I was considering was: (define (twice f x) (f (f x))) My initial thought was to compile this as: public static Object (Procedure f, Object x) { MethodHandle f$mh = f.asMethodHandle(); return f$mh.invoke(f$mh.invoke(x)); }

Re: MethodHandles for Kawa and other functional languages?

2010-10-11 Thread Rémi Forax
Le 11/10/2010 02:21, Per Bothner a écrit : On 10/10/2010 02:20 PM, Rémi Forax wrote: guardWithTest is the missing piece. It should be something like that: ... Thanks! This is somewhat tricky - it will take a bit to grok it property. And I think I've forgotten to drop the first argument