Bare Metal Java
summary
Describes Project Panama’s native memory and FFI features for Java 17/19: MemorySegment and ResourceScope for safe lifecycle control, MemoryLayout and carrier-type handles, atomic/get/set access, and a C linker that exposes C functions as Java MethodHandles. Shows using Panama instead of Unsafe on 64-bit x86 and ARM, discusses the 5–6 year incubation of the APIs, and demonstrates a working SDL-based game renderer implemented by calling native SDL through Panama.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 2:11Native interface problem
- 5:49External memory projects history
- 9:03New native memory API basics
- 15:56Memory layout and data structures
- 20:51Memory lifetime management
- 23:20Calling native code from Java
- 33:50Developer reflections and dreams
- 36:42Demo: Java game with SDL
- 44:35Summary
related talks
55mBare metal Java
45mProject Panama - Foreign Function & Memory API
29mEasily Leverage Native Functions with Project Panama from Java
01h 04mProject Panama Unleashing Native Libraries
16mForeign Function and Memory API
55mJava 19 Project Panama 4 Newbies
43mPanama Update
36mA Promising Future for using Native Libraries in the Java World
