Foreign Function and Memory API by Per Minborg

Описание к видео Foreign Function and Memory API by Per Minborg

One of the preview features in Java 20 is the “Foreign Function and Memory API” (FFM). It allows Java programs to interoperate with code and data outside the Java runtime. In this short talk, we will explore what FFM has to offer and, via a hands-on live coding example, see how the promises of FFM can be realized in your code today.

The FFM API is described in JEP 434 which is managed by project Panama. It enables Java programs to call native libraries and process native data without the brittleness and danger of JNI and Unsafe.

The live-code example involves integrating and using Google’s fast real-time compression algorithm “zstd” (in the form of a native C library) directly from Java.

Per Minborg, Oracle, Inc

Recorded at Jfokus 2023 in Stockholm 7th of february
http://www.jfokus.se

Комментарии

Информация по комментариям в разработке