~/talk

Java 19 Project Panama 4 Newbies

Talkat Devnexus 2022 · 2022-04-12..04-14· [java]
name:Carl Dea
links:none on file
slides:none on file

Shows using OpenJDK’s Foreign Linker/Memory APIs (JEP 419/424 preview, successor to JEP 412) plus the jextract generator to replace messy JNI, claiming comparable or better performance and incremental migration. Demonstrates real builds: calling getpid/printf, allocating off‑heap via an implicit memory segment allocator, arrays and structs with offsets, and MethodHandles for C symbols. Live demos include SDL+OpenGL game window, a Swift callback, Leap Motion input, and a working FFmpeg+JavaFX video stream. Requires adding module jdk.incubator.foreign and --enable‑native‑access.

AI-written summary · about

  1. 0:00Introduction to Project Panama
  2. 1:20Overcoming JNI pain points
  3. 4:08Panama architecture and benefits
  4. 7:42Demos and native interaction
  5. 11:34Advanced integration examples
  6. 17:29Setting up the environment
  7. 20:51Method handles and low-level access
  8. 25:06Using jextract for automation
  9. 34:09Building a hello world app
  10. 41:00Memory management and best practices
  11. 50:20Q&A and concluding thoughts
~/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.