Foreign Function & Memory API – A (Quick) Peek Under the Hood
JNI is, to date, the only way to access native libraries from Java code, but JNI’s brittle and convoluted programming model makes it tedious to use at scale. But no more: JDK’s 22 Foreign Function & Memory API provides a safe, modern and efficient way to access foreign memory and code from Java.
Presented by Maurizio Cimadamore (Oracle)
Recorded during FOSDEM 2024
Try the FFM API in JDK 22!
◦ https://jdk.java.net/22/
◦ https://openjdk.org/jeps/454
◦ Subscribe to panama-dev@openjdk.org and send feedback! ➱ https://mail.openjdk.org/pipermail/panama-dev/
Generate FFM bindings with the jextract tool
◦ https://jdk.java.net/jextract/
Build the latest version of the FFM API & jextract
◦ https://github.com/openjdk/panama-foreign
◦ https://github.com/openjdk/jextract
◦ FOSDEM 2024 Free Java Devroom ➱ https://fosdem.org/2024/schedule/track/free-java/
Tags: #Java #OpenJDK #ProjectPanama
by Java
linux foundation
using hashtables, String lookup for symbols. Can we say that's efficient ?
Mik
14:34 Are typographic quotation marks for string literals a new feature of Java 22?
🍷🗿
do you want java to run as gpu shader/compute binary language, maybe just make a java to shader binary compiler instead