~/talk

Project Panama - Foreign Function & Memory API

links:none on file
slides:none on file

Project Panama provides a Java-first Foreign Function & Memory API previewed in JDK 21 and planned final for JDK 22, offering MemorySegment + Arena for deterministic, confined off‑heap allocation, a MemoryLayout/VarHandle model to avoid manual offsets, and a Linker + function descriptors/jextract to create downcalls and callbacks without JNI shims. Benchmarks show microsecond-scale parity (0.3 ns difference) and overall FFM is three times faster than equivalent JNI in some cases. Zero-length segments, reinterpretation with cleanup, and restricted methods (requires command-line enable) are implemented and already power Lucene/Tomcat builds.

AI-written summary · about

  1. 0:00Start
  2. 1:27Java Native Interface
  3. 8:47Example
  4. 18:22Memory layouts
  5. 25:59Performance
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.