
“The Panama Effect” with Jorn Vernee
01/08/24 • 23 min
The Foreign Function and Memory API will be finalised in JDK 22. This 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 the FFM API, is Ana’s guest during this episode. Jorn explains what is the Foreign Memory Access API, its goals and the iterations that this API went through. Jorn also shares a few examples of Java libraries that already adopted the FFM API, the performance improvements they observed. He also explains how you can use this new API to integrate a native library within your own Java code.
The Foreign Function and Memory API will be finalised in JDK 22. This 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 the FFM API, is Ana’s guest during this episode. Jorn explains what is the Foreign Memory Access API, its goals and the iterations that this API went through. Jorn also shares a few examples of Java libraries that already adopted the FFM API, the performance improvements they observed. He also explains how you can use this new API to integrate a native library within your own Java code.
Previous Episode

“Sequenced Collections” with Stuart Marks
Sequenced Collections, targeted for JDK 21, are a new collection type created to represent a sequence of elements with a defined encounter order.
Ana recorded this episode with Stuart Marks, the owner of JEP 431 about Sequenced Collections. Stuart discusses the essence of Sequenced Collection interfaces, what needs those address and how they fit within the existing Collections framework. He explains the design of Sequenced Collections, architectural decisions and particularities of the API. He also shares his view on how Sequenced Collections can inspire future Java platform developments.
Next Episode

"Inside Java Weekly: JDK 24 and More" with Chad
In this shorter-format pod, Chad talks about JDK 24, preview features, and more.
Show Notes
JEP 11: Incubator Modules https://openjdk.org/jeps/11
JEP 12: Preview Features https://openjdk.org/jeps/12
Using the Preview Features Available in the JDK https://dev.java/learn/new-features/using-preview/
JEP 483: Ahead-of-time Compilation https://openjdk.org/jeps/483
JEP 485: Stream Gatherers https://openjdk.org/jeps/485
JEP 491: Synchronize Virtual Threads without Pinning https://openjdk.org/jeps/491
JEP 494: Module Import Declarations (Second Preview) https://openjdk.org/jeps/494
JEP 495: Simple Source Files and Instance Main Methods (Fourth Preview) https://openjdk.org/jeps/495
The Foreign Function and Memory API https://dev.java/learn/ffm/
If you like this episode you’ll love
Episode Comments
Generate a badge
Get a badge for your website that links back to this episode
<a href="https://goodpods.com/podcasts/inside-java-304705/the-panama-effect-with-jorn-vernee-43195714"> <img src="https://storage.googleapis.com/goodpods-images-bucket/badges/generic-badge-1.svg" alt="listen to “the panama effect” with jorn vernee on goodpods" style="width: 225px" /> </a>
Copy