Java Cup
Inside Java

News and views from members of the Java team at Oracle

Episode 32 “The Panama Effect” [AtA]

Posted on January 8, 2024

The Foreign Function & Memory API will be finalised in JDK 22, the FFM API helps you integrate native code within your Java program. Using this new API you can efficiently invoke code outside the JVM, safely access memory not managed by the JVM, call native libraries and process native data without the brittleness and danger of JNI.

Jorn Vernee, core contributor and maintainer of Foreign Function & Memory API, is Ana’s guest during this episode. Jorn explains what is Foreign Memory Access API, its goals and the iterations that this API went through. Jorn also shares a few examples of Java libraries that adopted the API, the performance improvements they observed. He also discusses how you can use this new API to integrate a native library within your own Java code.

Show Notes

Additional Resources

In our show "Ask the Architects", we talk to experts in OpenJDK about their work on the Java language, API, and runtime. For Inside Java Podcast episodes, check out the podcast page or our YouTube playlist. For more Java news, subscribe to our RSS feed and follow @Java on X.

Contact us.