~/talk

Bare metal Java

Talkat Devoxx Poland 2022 · 2022-06-22..06-24· [java]
links:none on file
slides:none on file

Stable-ish Java 17 incubator APIs let Java allocate and bound native memory with MemorySegment and ResourceScope and create safe varhandles for atomic and volatile native access; the C linker produces downcalls/upcalls (example: getpid and installing a POSIX signal handler) and requires explicit unsafe/module permissions. A native SDL game engine built with generated bindings runs, and a POSIX mq demo sends/receives messages, showing jextract auto-generates most bindings (jextract auto-generates bindings) and the MVP targets x86_64 C libraries only.

AI-written summary · about

  1. 0:00Introduction and context
  2. 4:48Why Java needs bare metal APIs
  3. 14:45Native memory access in Java
  4. 24:03Working with memory segments
  5. 33:15Var handles and memory access
  6. 44:16Memory layouts and C interop
  7. 55:36Foreign functions and JNI alternatives
  8. 1:01:47Calling C from Java
  9. 1:17:28Demo: Java game engine with SDL
  10. 1:34:19Demo: Game implementation
  11. 1:40:19Demo: POSIX queues in Java
  12. 1:45:26Performance and future plans
  13. 1:49:08Q&A and closing
~/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.