On 03/22/2013 10:06 AM, Remi Forax wrote:
> On 03/22/2013 07:52 AM, Jochen Theodorou wrote:
>> Am 21.03.2013 20:49, schrieb Remi Forax:
>> [...]
>>> I suppose you take a look to the instances.
>>> You can do something similar actually by using invokedynamic +
>>> a guardWithTest that checks already seen instances instead of doing a
>>> plain mh.invoke*
>>> I think Duncan and Georges do something like that in Magik.
>> the example is supposed to be Java code, so I cannot use invokedynamic
>> directly. The goal was to avoid the user having to write try-catch all
>> the time. Is then sam conversion the best way here to avoid the problem?
>>
>> bye blackdrag
>>
> I see,
> Java the language is not the lingua franca anymore because there is no
> way to emit an invokedynamic in Java. It causes us trouble now, and it
> starts to be worst for our users too.

BTW, for us, the problem is not that horrible because we can use
our own language as lingua franca for our own runtime.
I'm currently doing something like this in Ruby, and it seems to work 
pretty well.

>
> A SAM converted object acts as proxy with all the known limitation due
> to the fact that a proxy is another object that the object you want to
> manipulate.
>
> So the real solution is to have a way to emit an invokedynamic in Java
> that acts as a kind of dual of the dynamic keyword of C#.
>
> Rémi

Rémi

_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to