Hacker News new | ask | show | jobs
by geokon 1542 days ago
So what is the difference between this and JNA? I assume it's not the same since it's taking a while to be added to the language
2 comments

JNI is the only escape hatch in the JRE. JNA leverages JNI and so has a better API while still keeping the terrible performance. This is like JNA, but more robust, and while also being an escape hatch of its own so that you can finally get performance similar to P/Invoke when making native calls.
This is apparently focused on efficiently accessing off-heap memory. In Jni lot of things require copies. Only JNI API that's reliably copy-free is ByteBuffer API.