3 ms·
This is about calling into any native operating system APIs, as long as they are callable via C or C++ (which these days means "all" operating system APIs). Thi
by pilif 5y ago
This is about calling into any native operating system APIs, as long as they are callable via C or C++ (which these days means "all" operating system APIs). Think native UI controls, native hardware driver access, native access to OS services, etc.
JNI is somewhat harder to use, because you need custom glue on both sides of the border: Some custom classes in Java and some custom code on the C (and C++) side.
This proposal would remove the need for the glue on the C side and would allow a pure java solution.
Something like this has existed in third-party form for a while as JNA (https://github.com/java-native-access/jna https://github.com/java-native-access/jna), but now it's going to be built into the JRE itself (if the proposal passes through review)