dynalink icon indicating copy to clipboard operation
dynalink copied to clipboard

is cross language interop truly available? which languages support it?

Open darrencruse opened this issue 8 years ago • 1 comments

I've been aware of dynalink for a while and I know it's being used in Nashorn but I'm unclear what it's current status is so re the "pipe dream" described:

"Want to pass objects from Ruby to Python to JavaScript to Java and back within the same JVM? Think it's a pipe dream? Think again."

I was looking here and also googling wondering/hoping there's some simple examples showing this in action (yet?)

And if there were I was wondering what if any constraints/limitations there are - e.g. I myself am mostly interested in interop between java, groovy, and nashorn - but groovy isn't mentioned in the quote above and I don't know if that's because groovy doesn't use dynalink or if it's just happenstance...

darrencruse avatar Jul 30 '16 13:07 darrencruse

Hi,

Dynalink in its current form is integrated into JDK 9; you download a JDK9 and it and it's there. My ex-Oracle colleague Sundar sometimes posts interesting stuff he does with Dynalink at his blog. The latest entry shows you how he managed to use Python from JavaScript by writing a small linker for Jython objects.

I hope the availability of Dynalink in JDK 9 will get more language runtime developers to start using it, so hopefully the future where all these languages have interop is not so far in the future now.

(BTW, if you're looking for the docs for the JDK 9 version of Dynalink, they're here

szegedi avatar Jul 31 '16 21:07 szegedi