4 ms·
Is this JEP going to make that possible in Java?
by ape4 4y ago
Is this JEP going to make that possible in Java?
- kaba0 4y agoI believe the goal of this project is to provide a low-level API for FFI, on which other tools can build. Not sure which part of the quoted text you are asking about specifically, but it is quite likely possible to build such an abstraction on top of it (plus Java's dynamic class loading + loading dynamic libs should be able to handle pretty much any case). For an example, jextract is also in the works that will generate Java helper classes from C headers.
- ape4 4y agoThanks. Sorry for being unclear - I was talking about importing a C header.
- mike_hearn 4y agoYes it's possible. The same project developed a tool called jextract that uses clang to convert C headers to Java Panama classes: https://github.com/openjdk/jextract https://github.com/openjdk/jextract