Interconnecting Java and Native Code with the FFM API

Pubblicato il: 14 giugno 2025
sul canale di: Java
12,447
331

👉 Join us for JavaOne 2026. Sign up now to get ongoing updates https://go.oracle.com/LP=149517

The Java platform has always provided a rich set of libraries for developers to reach beyond the boundaries of the JVM, from databases (JDBC) to web services (HTTP client). Previously, accessing foreign memory (i.e., memory not managed by the JVM) and invoking foreign functions (i.e., code outside the JVM) in Java was hard and unsafe.

The Foreign Function & Memory Access API (FFM API), delivered in Java SE 22, reduced the impedance mismatch between Java applications and native libraries in three steps. First, the FFM API provides a rich API to model a region of off-heap memory as a memory segment. Second, the FFM API provides a rich API to describe and link native functions. Third, access to native libraries can be simplified even further with the use of a tool (jextract) that mechanically generates the FFM API artifacts needed to access said libraries.

The presentation showcases fundamental FFM principles as well as Java integration with native graphic libraries and AI frameworks.

Presented by Per Minborg - Consulting Member of Technical Staff (Java Platform Group - Oracle) at JavaOne 2025 (CA, March 2025).

All JavaOne 2025 talks ➤    • JavaOne 2025  

➤ https://jdk.java.net/jextract/
➤ https://inside.java/tag/panama

Tags: #Java #JVM #native #OpenJDK

SES1644


In questa pagina del sito puoi guardare il video online Interconnecting Java and Native Code with the FFM API della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Java 14 giugno 2025, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 12,447 volte e gli è piaciuto 331 spettatori. Buona visione!