~/talk

When a Java Programmer Meets C

Talkat JNation 2026 · 2026-05-26..05-27· [java]
links:none on file
slides:none on file

Java 22 exposes a Foreign Memory & Foreign Function API that lets code allocate off‑heap via memory segment arenas (global, confined, shared), define C‑style layouts and varhandles, and thus sidestep GC pauses for very large datasets. The API provides a linker to call C libraries (Intel64/ARM64 on Windows/Linux) without JNI, producing method handles for functions like getpid, installing upcall stub callbacks (signal handlers), and running POSIX mq examples between Java processes; C++ interop is not supported.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 10:54History of low-level Java
  3. 13:00Foreign Memory API overview
  4. 22:35Memory layouts and structs
  5. 27:08Foreign Functions API explained
  6. 34:48Calling C from Java demo
  7. 39:59Upcall stubs and safety
  8. 41:28Practical use cases and benefits
  9. 47:20Future possibilities and Q&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.