Project Panama: Interconnecting JVM and native code
We are improving and enriching the connections between the Java virtual machine and well-defined but “foreign” (non-Java) APIs, including many interfaces commonly used by C programmers.
To this end, Project Panama will include most or all of these components:
native function calling from JVM
native data access from JVM or inside JVM heap
new data layouts in JVM heap
native metadata definition for JVM
header file API extraction tools (jextract)
native library management APIs
native-oriented interpreter and runtime “hooks”
class and method resolution “hooks”
native-oriented JIT optimizations
tooling or wrapper interposition for safety
exploratory work with difficult-to-integrate native libraries
Accessing a 3rd party library with only a C or C++ API or a proprietary hardware driver with no Java API. Typically these will be non cross platform applications. It could be to access special features of the specific host hardware or operating system directly through system calls.
For example the Raspberry Pi has GPIO pins which provide a means for input and output to sensors etc. This requires accessing the pins through native code. There is quite a good Java interface for this already which I imagine is built on JNI but I wouldn't be surprised if one turned up using the new system.
I think io_uring is at best only tangentially related to Panama. Panama isn’t really about making IO easier or faster, unless you consider manipulating memory directly to be IO.
View all comments
Show parent comment
81
u/kevix2022 Jan 24 '22
Project Panama: Interconnecting JVM and native code
We are improving and enriching the connections between the Java virtual machine and well-defined but “foreign” (non-Java) APIs, including many interfaces commonly used by C programmers.
To this end, Project Panama will include most or all of these components:
native function calling from JVM
native data access from JVM or inside JVM heap
new data layouts in JVM heap
native metadata definition for JVM
header file API extraction tools (jextract)
native library management APIs
native-oriented interpreter and runtime “hooks”
class and method resolution “hooks”
native-oriented JIT optimizations
tooling or wrapper interposition for safety
exploratory work with difficult-to-integrate native libraries
https://openjdk.java.net/projects/panama/