Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-22 Thread Attila Szegedi
Folks, here’s some updates on this JEP, mostly making the code and docs available to the community for evaluation. Where’s the code? = The JDK 9 sandbox repo now has a branch named “JEP-276-branch” where the work is ongoing. If you aren’t familiar with the JDK 9 sandbox, you

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-20 Thread Jochen Theodorou
On 19.10.2015 12:56, Attila Szegedi wrote: On Oct 19, 2015, at 10:46 AM, Jochen Theodorou > wrote: since it is dynalink there is I guess only one master linker in the end. Can you point me to some code showing how the composition of linkers is done

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-20 Thread Attila Szegedi
> On Oct 20, 2015, at 10:17 AM, Jochen Theodorou wrote: > > On 19.10.2015 12:56, Attila Szegedi wrote: >> On Oct 19, 2015, at 10:46 AM, Jochen Theodorou > > wrote: >> >>> since it is dynalink there is I guess only one master

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-19 Thread Jochen Theodorou
On 18.10.2015 10:55, Andrew Haley wrote: On 10/18/2015 09:49 AM, Jochen Theodorou wrote: * Invokedynamic (like invokeinterface and invokevirtual) does not like calls with null as receiver, quitting the call right away with a NPE. But languages may allow for calls on null. That again means some

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-19 Thread Jochen Theodorou
On 19.10.2015 03:09, John Rose wrote: On Oct 18, 2015, at 1:49 AM, Jochen Theodorou > wrote: * Invokedynamic (like invokeinterface and invokevirtual) does not like calls with null as receiver :-) Jochen, you are one of the few people on the planet

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-19 Thread Attila Szegedi
On Oct 19, 2015, at 10:46 AM, Jochen Theodorou wrote: > since it is dynalink there is I guess only one master linker in the end. Can > you point me to some code showing how the composition of linkers is done to > refresh my memory on that? Sure, here’s how Nashorn does it:

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-19 Thread Martijn Verburg
Hi Attila, Cool, reached out to a few people (Scala & Clojure in particular) JIC they missed it and pointed them directly at the JEP and this thread. I think the API will be all the richer when it hits its 2nd real enemy (so to speak) :-). Cheers, Martijn On 18 October 2015 at 21:57, Attila

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-18 Thread Attila Szegedi
Sure. For what’s it worth, this is for all practical purposes Dynalink, in the form I’ve been developing for years as a standalone library on GitHub and presenting about it at JVM Language Summits over several years, so I’d expect a significant amount of awareness is there. The primary

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-18 Thread John Rose
On Oct 18, 2015, at 1:49 AM, Jochen Theodorou wrote: > > * Invokedynamic (like invokeinterface and invokevirtual) does not like calls > with null as receiver :-) Jochen, you are one of the few people on the planet who was around JSR 292 when this *was* true. A very early

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-18 Thread Jochen Theodorou
On 17.10.2015 13:30, Martijn Verburg wrote: This looks very, very promising. Would it help to get the language maintainers of the most popular scripting/dynamic JVM languages involved ASAP? Happy to contact Groovy, Clojure, Scala, JRuby folks (although I suspect many of them are on this list).

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-18 Thread Andrew Haley
On 10/18/2015 09:49 AM, Jochen Theodorou wrote: > * Invokedynamic (like invokeinterface and invokevirtual) does not like > calls with null as receiver, quitting the call right away with a NPE. > But languages may allow for calls on null. That again means some kind of > dummy receiver is

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-18 Thread Attila Szegedi
> On Oct 18, 2015, at 10:49 AM, Jochen Theodorou wrote: > > On 17.10.2015 13:30, Martijn Verburg wrote: >> This looks very, very promising. Would it help to get the language >> maintainers of the most popular scripting/dynamic JVM languages involved >> ASAP? Happy to

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-17 Thread Martijn Verburg
This looks very, very promising. Would it help to get the language maintainers of the most popular scripting/dynamic JVM languages involved ASAP? Happy to contact Groovy, Clojure, Scala, JRuby folks (although I suspect many of them are on this list). Cheers, Martijn On 16 October 2015 at

Re: JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-17 Thread Andrew Haley
On 10/17/2015 12:30 PM, Martijn Verburg wrote: > This looks very, very promising. Yea, fantastic. How did I manage to miss that one? According to the JEP the functionality is in Java 8 already and used by Nashorn, so it should be easy for language implementers to kick the tyres. Andrew.

JEP 276: Dynamic Linking of Language-Defined Object Models

2015-10-16 Thread mark . reinhold
New JEP Candidate: http://openjdk.java.net/jeps/276 - Mark