Interop made easy & more in Truffle 0.11
jaroslav.tulach at oracle.com
Tue Feb 2 09:02:48 UTC 2016
the Truffle git repository contains tag truffle-0.11 - what you can expect
in this new version of Truffle API?
Matthias has been working hard on simplified interoperability API. Originally
the interop required a lot of boiler plate code which can now be auto
generated thanks to AcceptMessage and its associated annotation processor.
Matthias also added new InteropException and its subclasses to help people
calling into foreign languages (via new sendXYZ methods in ForeignAccess)
to be ready for exceptional states and handle them appropriately.
Stefan contributed method to easily pass any language any configuration
parameters which is way more easy to use than so far preferred globalSymbol
Chris added a check whether given mime type is supported - now you can find
out if another language is installed in the system before sending it an empty
snippet for evaluation.
Thanks to Gilles, the bits were just uploaded to Maven central. Enjoy
PS: I'd like to release next version of Truffle at the end of March 2016.
 http://lafo.ssw.uni-linz.ac.at/javadoc/truffle/latest/com/oracle/truffle/api/vm/PolyglotEngine.Builder.html#config-java.lang.String-java.lang.String-java.lang.Object- http://lafo.ssw.uni-linz.ac.at/javadoc/truffle/latest/com/oracle/truffle/api/TruffleLanguage.Env.html#isMimeTypeSupported-java.lang.String- http://repo1.maven.org/maven2/com/oracle/truffle/truffle-api/0.11/
 +-3m: http://wiki.apidesign.org/wiki/Estimate
More information about the graal-dev