Truffle interop design

Thomas Wuerthinger thomas.wuerthinger at
Sun Jan 26 17:11:46 PST 2014

Yes, it is possible to use invokedynamic and MethodHandles in combination with Truffle and Graal. There are at the current point in time not yet established design patterns for embedding calls to Java in guest languages. We are however working on exposing an API for this that can be used by multiple languages.

- thomas

On 25 Jan 2014, at 17:39, Ghadi Shayban <gshayban at> wrote:

> One of the many reasons JVM languages flourished is that they had access to
> all Java libs.
> It seems straightforward to call Truffle entry nodes from Java and return a
> value.  Are there any established design patterns for the opposite case,
> calling arbitrary Java from the Truffle node tree?  e.g. an instance
> j.u.List is in a frame local, and you want to call add() on it.
> MethodHandles?  Does Truffle/Graal optimize through those?

More information about the graal-dev mailing list