Truffle <-> Java Interop

Jaroslav Tulach jaroslav.tulach at oracle.com
Mon Aug 24 10:48:28 UTC 2015


Hi,
I've been thinking a bit about simplifying usage of any data coming from a 
Truffle language from Java code in recent weeks. At the end I designed four 
methods that should make it quite easy to use Truffle structures from Java and 
also send Java objects to Truffle.

Please find the Javadoc with high level overview attached. Please look at the 
test-cases to see the gory details:
http://source.apidesign.org/hg/truffle/file/e48bc6f62aa8/truffle/com.oracle.truffle.api.interop.java.test/src/com/oracle/truffle/api/interop/java/test/JavaInteropTest.java

I'll be glad for any feedback. There are many ways to handle the interop and I 
need your use-cases to find the most optimal one!
-jt


More information about the graal-dev mailing list