Maybe have jextract output binding information instead of binding code via a command-line flag?

Mark Hammons mark.hammons at inaf.cnrs-gif.fr
Tue Sep 3 10:15:38 UTC 2019


Hi All,

I've been thinking about this since before when I was creating scala 
bindings to a native library using panama's foreign interface. Would it 
be possible for jextract to generate a set of binding information (not 
classfiles or a jar, but a text, xml, or json file) that could be parsed 
by languages like scala/clojure/etc, and used to generate their own 
bindings? There are some concepts in scala 3 I would like to combine 
with panama's foreign interface, but doing so requires manually writing 
the bindings. With a textual representation of the library info 
generated by jextract, I might be able to write some scala macros that 
produce scala 3 bindings using panama's foreign interface.

~Mark



More information about the panama-dev mailing list