Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to bridge Java applications with native libraries using the Foreign Function & Memory Access API (FFM API) introduced in Java SE 22 in this 47-minute conference talk. Discover how the FFM API eliminates the traditional challenges and safety concerns of accessing foreign memory and invoking foreign functions from Java code. Explore the three-step approach that reduces impedance mismatch between Java and native libraries: modeling off-heap memory regions as memory segments, describing and linking native functions through rich APIs, and utilizing the jextract tool to automatically generate FFM API artifacts for native library access. Examine fundamental FFM principles through practical demonstrations of Java integration with native graphic libraries and AI frameworks. Gain insights into how this API transforms the previously difficult and unsafe process of working with code and memory outside the JVM into a more accessible and secure development experience.
Syllabus
Interconnecting Java and Native Code with the FFM API
Taught by
Java