Per-Åke Minborg from Oracle introduced the Foreign Function & Memory API (FFM) at JavaOne 2025, explaining its evolution from JEP 393 and JEP 389, both aimed at enhancing interoperability with native programming languages. FFM is designed to replace the older Java Native Interface (JNI), which has been criticized for its complexity and inefficiencies in data handling. By addressing these issues, the FFM framework allows for easier and more efficient memory access and function calls to libraries written in other languages, improving Java's capabilities.
The Foreign Function & Memory API (FFM) was designed to replace JNI due to its cumbersome and inefficient data passing methods, offering a more flexible approach for interoperability.
JNI, characterized by a fragile combination of Java and C, poses significant maintenance and deployment challenges, making the transition to more advanced APIs like FFM essential.
Collection
[
|
...
]