Re: Flag EnableInvokeDynamic hurt performance ?

2010-09-30 Thread Christian Thalinger
On Sat, 2010-09-25 at 22:34 +0200, Rémi Forax wrote: > Le 25/09/2010 22:03, John Rose a écrit : > > On Sep 25, 2010, at 11:45 AM, Rémi Forax wrote: > > > > > >> John, Christian, is it fixable ? > >> > > Yes. We're talking about fixing this, soon, as part of 6817525. > > > > -- John > >

Re: MethodHandles for Kawa and other functional languages?

2010-09-30 Thread Alessio Stalla
On Thu, Sep 30, 2010 at 4:03 PM, Helmut Eller wrote: > * Alessio Stalla [2010-09-30 13:28] writes: > >>> I guess you could avoid reflection if you generate a custom bootstrap >>> method for each callsite.  Hmm.. probably just as clumsy as reflection. >> >> Yeah, clumsy and suffering from code bloa

Re: MethodHandles for Kawa and other functional languages?

2010-09-30 Thread Helmut Eller
* Alessio Stalla [2010-09-30 13:28] writes: >> I guess you could avoid reflection if you generate a custom bootstrap >> method for each callsite.  Hmm.. probably just as clumsy as reflection. > > Yeah, clumsy and suffering from code bloat - I'm already disturbed to > have one static block register

Re: MethodHandles for Kawa and other functional languages?

2010-09-30 Thread Alessio Stalla
On Thu, Sep 30, 2010 at 3:11 PM, Helmut Eller wrote: > * Alessio Stalla [2010-09-30 11:52] writes: > >> On Thu, Sep 30, 2010 at 12:48 PM, Helmut Eller  wrote: >>> >>> Just out of curiosity: what do you do if the package was renamed (say >>> from SOME-LISP-PACKAGE to ANOTHER-LISP-PACKAGE) before th

Re: MethodHandles for Kawa and other functional languages?

2010-09-30 Thread Helmut Eller
* Alessio Stalla [2010-09-30 11:52] writes: > On Thu, Sep 30, 2010 at 12:48 PM, Helmut Eller wrote: >> >> Just out of curiosity: what do you do if the package was renamed (say >> from SOME-LISP-PACKAGE to ANOTHER-LISP-PACKAGE) before the bootstrap >> method gets executed? > > It'll fail miserably

Re: MethodHandles for Kawa and other functional languages?

2010-09-30 Thread Alessio Stalla
On Thu, Sep 30, 2010 at 12:48 PM, Helmut Eller wrote: > * Alessio Stalla [2010-09-30 07:44] writes: > >> InvokeDynamic.#"SOME-LISP-PACKAGE:FOO"(...) >> >> and in the bootstrap method, roughly, >> >> ... >> Symbol sym = readFromString(methodName); >> MethodHandle mh = sym.getSymbolFunctionOrDie().a

Re: MethodHandles for Kawa and other functional languages?

2010-09-30 Thread Helmut Eller
* Alessio Stalla [2010-09-30 07:44] writes: > InvokeDynamic.#"SOME-LISP-PACKAGE:FOO"(...) > > and in the bootstrap method, roughly, > > ... > Symbol sym = readFromString(methodName); > MethodHandle mh = sym.getSymbolFunctionOrDie().asMethodHandle(); > ... Just out of curiosity: what do you do if

Re: MethodHandles for Kawa and other functional languages?

2010-09-30 Thread Alessio Stalla
On Thu, Sep 30, 2010 at 3:08 AM, John Rose wrote: > On Sep 29, 2010, at 5:00 PM, Per Bothner wrote: > >> Fundamentally, the question is: When the Scheme programmer passes >> of function to a higher-level function (like map), what is the type >> of the object passed: A MethodHandle?  A Procedure?