~/talk

By the Bye: JNI

Talkat XtremeJ 2024 · on Tuesday, 2024-11-05· [java, security]
links:none on file
slides:none on file

Compares JNI with the new Foreign Function & Memory API (final since Java 22) by wiring a real Sudoku solver C library into Java: JNI requires generating headers, writing a C wrapper, packing a shared library and manually managing native memory; FFM uses arenas, memory segments and layouts plus method handles to call the library directly from Java with deterministic deallocation. Adds Jextract to auto-generate helper bindings so the same solver runs with far less boilerplate and fewer memory-safety risks.

AI-written summary · about

  1. 0:00Introduction to JNI and FFM
  2. 1:06Background and JNI history
  3. 5:04How JNI works in practice
  4. 10:06JNI Sudoku solver demo
  5. 14:07Foreign Function Memory API overview
  6. 18:05FFM API Sudoku solver demo
  7. 21:49JExtract tool for FFM
  8. 24:00Comparison and final thoughts
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.