3 ms·
Anybody have experience with the JNI interop with native libs? Is it better to implement something natively in a compiled library and link it in from Java or b
by mihaigalos 4y ago
Anybody have experience with the JNI interop with native libs?
Is it better to implement something natively in a compiled library and link it in from Java or better to rewrite it in Java? What about lifetimes of objects - who "owns" an object - the runtime or the lib?
- kaba0 4y agoUnless absolutely necessary, I would say avoid using it - the JVM ecosystem is almost completely pure in terms of being written almost entirely in itself. If it is a must, then I recommend looking into the new Panama APIs that help a lot with scope, can autogenerate code from C headers, etc.