~/talk

Easily Leverage Native Functions with Project Panama from Java

TalkinFrenchat Devoxx France 2022 · 2022-04-20..04-22· [java]
slides:none on file

Shows how to call native C/Swift/Rust libraries directly from Java using JEP-419 (Foreign Function & Memory API) and the system linker, allocating MemorySegment arenas and invoking native symbols via generated MethodHandles. Demonstrates using jextract to generate bindings for libs like libsodium and a Rust blake3 implementation, enabling native access flags and incubator modules in JDK 18/19 previews, and argues this Panama approach is faster and simpler than JNI/JNA while using native memory scopes that auto-free.

AI-written summary · about

  1. 0:00Project Panama intro
  2. 2:11Project evolution
  3. 6:46FJEP 419 features
  4. 8:10Panama config
  5. 13:36Practical demo: getpid
  6. 19:40Calling printf
  7. 23:58Native string handling
  8. 26:07Advanced use cases
  9. 28:37Q&A
~/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.