4 ms·
Nowadays there's a much better technology than JNI for doing this sort of thing in Java. https://docs.oracle.com/en/graalvm/jdk/21/docs/reference-manual/native
by crustycoder 3y ago
Nowadays there's a much better technology than JNI for doing this sort of thing in Java.
https://docs.oracle.com/en/graalvm/jdk/21/docs/reference-manual/native-image/ https://docs.oracle.com/en/graalvm/jdk/21/docs/reference-man...
- karussell 3y agoNative image is unrelated to this topic here (hence the downvotes, I guess). Still GraalVM could be an interesting solution as Rust seems to be supported: https://www.graalvm.org/latest/reference-manual/llvm/Compiling/ https://www.graalvm.org/latest/reference-manual/llvm/Compili...
- crustycoder 3y agohttps://github.com/oracle/graal/blob/master/substratevm/src/com.oracle.svm.tutorial/src/com/oracle/svm/tutorial/CInterfaceTutorial.java https://github.com/oracle/graal/blob/master/substratevm/src/... https://github.com/oracle/graal/blob/master/substratevm/src/com.oracle.svm.tutorial/native/cinterfacetutorial.c https://github.com/oracle/graal/blob/master/substratevm/src/... And in any case: JEP draft: Prepare to Restrict The Use of JNI https://openjdk.org/jeps/8307341 https://openjdk.org/jeps/8307341 JEP 442: Foreign Function & Memory API (Third Preview) https://openjdk.org/jeps/442 https://openjdk.org/jeps/442