~/talk

Project Panama Unleashing Native Libraries

Talkat Devnexus 2025 · 2025-03-04..03-06· [java]
links:none on file
slides:none on file

Project Panama lets Java call native libraries without handwritten JNI wrappers by providing FFI and Memory Access APIs that describe native layouts (structs, unions, sequences), manage off‑heap memory with arenas/segments, and create downcall/upcall method handles. The JExtract generator (requires clang) emits bindings and static initializers automatically (Jextract (requires clang)). JDK22 ships the APIs (JExtract remains EA); simple primitive calls match JNI performance, complex by‑value structs cost more. JDK22 GA, JExtract EA

AI-written summary · about

  1. 0:00Introduction
  2. 1:46Why Project Panama
  3. 8:49JNI drawbacks
  4. 15:15Project Panama components
  5. 16:38Foreign memory access
  6. 29:21Memory layouts
  7. 36:12Memory access handles
  8. 39:42Foreign function support
  9. 50:02JExtract tool
  10. 55:11Performance comparison
  11. 57:21Trivial linker option
  12. 58:03C++ and Project Panama
  13. 1:00:14JNI alternatives
  14. 1:02:03Project history
  15. 1:03:27Q&A and resources
~/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.