Re: Boxing, still a limit of invokedynamic?

2012-05-13 Thread Rémi Forax
On 05/13/2012 10:21 PM, Jochen Theodorou wrote: > Am 13.05.2012 19:55, schrieb Rémi Forax: > [...] >> I think currently Groovy allows to replace + by a method >> that will return everything you want. >> But here, I think the spec of Groovy (if it means something) >> should be changed to say that wh

Re: Boxing, still a limit of invokedynamic?

2012-05-13 Thread Mark Roos
Hi Jochen; I also spent some time being concerned about the integer performance but then decided that this concern is probably premature based on the current state of indy. One big unknown to me is whether EA would ever recognize my holder for the prim int or if it would only recognize java In

Re: Boxing, still a limit of invokedynamic?

2012-05-13 Thread Charles Oliver Nutter
Inline... On May 13, 2012 3:15 PM, "Jochen Theodorou" wrote: > > Am 13.05.2012 19:21, schrieb Charles Oliver Nutter: > [...] > > You could also encode "a+b-c" as a single invokedynamic operation, but > > I guess you're looking for a general solution... > > yes, I am looking for a general solution

Re: Boxing, still a limit of invokedynamic?

2012-05-13 Thread Jochen Theodorou
Am 13.05.2012 19:55, schrieb Rémi Forax: [...] > I think currently Groovy allows to replace + by a method > that will return everything you want. > But here, I think the spec of Groovy (if it means something) > should be changed to say that when your replace a method > by another, the return type m

Re: Boxing, still a limit of invokedynamic?

2012-05-13 Thread Jochen Theodorou
Am 13.05.2012 19:21, schrieb Charles Oliver Nutter: [...] > You could also encode "a+b-c" as a single invokedynamic operation, but > I guess you're looking for a general solution... yes, I am looking for a general solution. I was thinking of making the whole expression as a MethodHandle combinati

Re: Boxing, still a limit of invokedynamic?

2012-05-13 Thread Rémi Forax
On 05/13/2012 07:21 PM, Charles Oliver Nutter wrote: > On Sun, May 13, 2012 at 11:04 AM, Jochen Theodorou wrote: >> I wanted to ask you of your opinion. If I am going to compile something >> like a+b-c and a,b,c are all primtives, but I won't know that the >> results will be really the primtives t

Re: Boxing, still a limit of invokedynamic?

2012-05-13 Thread Charles Oliver Nutter
On Sun, May 13, 2012 at 11:04 AM, Jochen Theodorou wrote: > I wanted to ask you of your opinion. If I am going to compile something > like a+b-c and a,b,c are all primtives, but I won't know that the > results will be really the primtives too, then this means I will most > probably compile it like

Boxing, still a limit of invokedynamic?

2012-05-13 Thread Jochen Theodorou
Hi all, I wanted to ask you of your opinion. If I am going to compile something like a+b-c and a,b,c are all primtives, but I won't know that the results will be really the primtives too, then this means I will most probably compile it like this: invokedynamic("minus", invokedynamic("plus",a,b