Memory API: Patterns, Uses Cases, and Performance by José Paumard, Remi Forax

Using the off-heap memory to store and process large amounts of data didn't change in Java since Java SE 4, when ByteBuffer was introduced. Since then, operating systems moved from 32 bits to 64 bits, and the available RAM in a regular machine moved from megabytes to gigabytes, and more. Another API was much needed, as a ByteBuffer is a 32 bits buffer, not enough for modern applications. First published as a preview feature in Java SE 19, the Foreign Function and Memory API made it as a final feature in Java SE 22. The Memory part brings several new concepts. Among them Arenas and MemorySegments now give you the possibility to manage gigabytes of contiguous off-heap memory, with a very elegant layout model. On the other hand, MemoryLayout allows for a C-struct like organization of your data in memory. This presentation shows you this complex API, in a step by step approach. It explains how your data is organized and aligned in memory, and the impact it has on the API. It also focuses on the delicate use of VarHandle, a critical element to access your data. It then shows you how you can load large files in memory segments, and shows you the performance you can get in the processing of billions of data elements.

Pushing Java to the Limits: Processing a Billion Rows in under 2 Seconds by Thomas Wuerthinger
▶︎

Pushing Java to the Limits: Processing a Billion Rows in under 2 Seconds by Thomas Wuerthinger

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

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

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains
▶︎

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains

Memory API: Patterns, Uses Cases, and Performance by José Paumard
▶︎

Memory API: Patterns, Uses Cases, and Performance by José Paumard

Using Large Language Models | Build Your Own LLM Workshop #1
▶︎

Using Large Language Models | Build Your Own LLM Workshop #1

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025
▶︎

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025

Full Archon Guide - Build AI Coding Harnesses That Actually Ship (LIVE)
▶︎

Full Archon Guide - Build AI Coding Harnesses That Actually Ship (LIVE)

Billionaire's WARNING: I'm SELLING. The Crash Is Already Here!
▶︎

Billionaire's WARNING: I'm SELLING. The Crash Is Already Here!

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra
▶︎

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

If Streams Are So Great, Let’s Use Them Everywhere... Right?? by Maurice Naftalin, José Paumard
▶︎

If Streams Are So Great, Let’s Use Them Everywhere... Right?? by Maurice Naftalin, José Paumard

Java for AI
▶︎

Java for AI

The Panama Dojo: Black Belt Programming with Java 21 and the FFM API  By  Per Minborg
▶︎

The Panama Dojo: Black Belt Programming with Java 21 and the FFM API By Per Minborg

Co-Creator of Haskell: Functional Programming, Thinking in Types, Useless Languages | Simon Jones
▶︎

Co-Creator of Haskell: Functional Programming, Thinking in Types, Useless Languages | Simon Jones

Place your brain in the frequency of wealth, prosperity and total abundance - Attraction Law
▶︎

Place your brain in the frequency of wealth, prosperity and total abundance - Attraction Law

Clean Code with Records, Sealed Classes and Pattern Matching by José Paumard
▶︎

Clean Code with Records, Sealed Classes and Pattern Matching by José Paumard

Designing Data-Intensive Applications: Chapters 1 and 2
▶︎

Designing Data-Intensive Applications: Chapters 1 and 2

The Best of Java Shorts Show: 100 Snippets in 50 Minutes by Adam Bien
▶︎

The Best of Java Shorts Show: 100 Snippets in 50 Minutes by Adam Bien

Something is jamming GPS over Europe. Here's what we found
▶︎

Something is jamming GPS over Europe. Here's what we found

Make computers FAST (Systems Performance chapter 1)
▶︎

Make computers FAST (Systems Performance chapter 1)

RL for Agents Workshop - Deep Dive on Training Agents with RL and Open Source
▶︎

RL for Agents Workshop - Deep Dive on Training Agents with RL and Open Source