MLVM and OpenJDK b36

2008-10-01 Thread Chris Hogue
I'm new to MLVM and trying to build it so I can play around with it. It appears that the current patches were built and intended for OpenJDK b34 (based on one failing and the tags in the series file indicating b34). I've tried several things and can't seem to find the right combination to make it

MLVM and OpenJDK b36

2008-10-01 Thread Chris Hogue
I'm new to MLVM and trying to build it so I can play around with it. It appears that the current patches were built and intended for OpenJDK b34 (based on one failing and the tags in the series file indicating b34). I've tried several things and can't seem to find the right combination to make it

MethodHandles.adaptArguments() is too complex

2008-10-01 Thread Rémi Forax
After several reading, I'm sorry but i'am not able to fully understand how to forge the 'arguments' :) It's perhaps beacuse it's currently late in the evening in Paris but i think the idea to use a method handle to convert arguments (all or some) (as we discuss with blackdrag during the summit) is

Re: MethodHandles.dropArgument()

2008-10-01 Thread John Rose
On Oct 1, 2008, at 4:41 PM, Rémi Forax wrote: I drop an argument but in term of signature, i add a new parameter type. The joys of contravariance. The MHs API takes a certain directional point of view which could be consistently reversed, but I think either choice would have led to confu

Re: MethodHandles.dropArgument()

2008-10-01 Thread Rémi Forax
John Rose a écrit : > On Oct 1, 2008, at 4:06 PM, Rémi Forax wrote: > > >> why MethodHandles.dropArgument() takes an argument valueType ? >> > > If mh2 = dropArgument(mh, 0), then mh2.invoke(x, abc...) == mh.invoke > (abc...). > If mh.type is R(ABC...), then mh2.type is R(X, ABC...). > The

Re: MethodHandles.dropArgument()

2008-10-01 Thread John Rose
On Oct 1, 2008, at 4:06 PM, Rémi Forax wrote: > why MethodHandles.dropArgument() takes an argument valueType ? If mh2 = dropArgument(mh, 0), then mh2.invoke(x, abc...) == mh.invoke (abc...). If mh.type is R(ABC...), then mh2.type is R(X, ABC...). The type X needs to be supplied explicitly when m

MethodHandles.dropArgument()

2008-10-01 Thread Rémi Forax
A stupid question, why MethodHandles.dropArgument() takes an argument valueType ? What is the relation between valueType and mh.type().parameterType(pos) ? regards, Rémi ___ mlvm-dev mailing list [email protected] http://mail.openjdk.java.net

Re: POC javac can compile invokedynamic

2008-10-01 Thread Rémi Forax
Jochen Theodorou a écrit : > Frank Wierzbicki schrieb: > >> On Sat, Sep 13, 2008 at 12:49 AM, Charles Oliver Nutter >> <[EMAIL PROTECTED]> wrote: >> >>> // MyCode.java >>> import static DynamicUtil.Dynamic >>> public class MyCode { >>> public void doSomething() { >>> String a = "foo";

Re: POC javac can compile invokedynamic

2008-10-01 Thread Jochen Theodorou
Frank Wierzbicki schrieb: > On Sat, Sep 13, 2008 at 12:49 AM, Charles Oliver Nutter > <[EMAIL PROTECTED]> wrote: >> // MyCode.java >> import static DynamicUtil.Dynamic >> public class MyCode { >> public void doSomething() { >> String a = "foo"; >> Dynamic(a).someOtherMethod(); >> } >> }

Re: POC javac can compile invokedynamic

2008-10-01 Thread Frank Wierzbicki
On Sat, Sep 13, 2008 at 12:49 AM, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: > // MyCode.java > import static DynamicUtil.Dynamic > public class MyCode { > public void doSomething() { > String a = "foo"; > Dynamic(a).someOtherMethod(); > } > } That looks very convenient indeed. T