Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Nalim: Linking Java methods to native functions using JVM compiler interface (github.com/apangin)
26 points by mfiguiere on Oct 19, 2022 | hide | past | favorite | 4 comments


This is probably one of the fastest possible FFI solutions, but if you're already enabling experimental features, Project Panama [0] is already in preview and will likely become the dominant FFI mechanism on the JVM.

[0]: https://openjdk.org/projects/panama/


I have spotted a Java ONE talk from NVidia, apparently they have revisited their collaboration with Oracle and have ported their CUDA bindings to use Panama now.


The whole purpose of Nalim is to be faster, Panama FFI currently perform similarly to JNI.


Interesting, so the JDK is calling the JIT compiler, and it is emitting machine code completely unrelated to the Java source?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: