Java 22 and the Foreign Function & Memory API by PER MINBORG

Ғылым және технология

For updates and more, join our community 👉 / devoxx-united-kingdom
The long-awaited "Foreign Function $ Memory API" (the "FFM API") finally became public in Java 22. In this talk, we will explore how the FFM API enables native methods and memory access with pure Java code and how high performance and safety can be achieved at the same time.
Fundamental concepts like MemorySegments, MemoryLayouts, Arenas, and native calls will be explained in detail and we will then build on these fundamental building blocks in a hands-on coding demo to customize their behavior and add functionality. Concepts like memory mapping, custom arenas, and high-performance serialization will be explored.
These building blocks can be reused across many typical and contemporary application domains and we will finish up by writing a small low-latency fintech application that makes use of the concepts above. Who knows, maybe your existing projects can get better performance and safety by using the FFM API?

Пікірлер

    Келесі