~/talk

Foreign Function and Memory API

Talkat Jfokus 2023 · 2023-02-06..02-08· [java, compilers-and-language-design]
github:minborg
slides:none on file

Shows Java 20’s Foreign Function and Memory API (JEP 434, Project Panama) calling native C and mapping files: uses memory segment and arena primitives, maps a 64 TB sparse file via mmap without crashing the JVM, carves segments from an infinite arena, writes a Hello World that persists on disk, and calls native functions (C time example) with direct Java invocations. Demonstrates safety guarantees (spatial/temporal/thread confinement), atomic allocation counter, and a live integration with Google’s zstd native library that runs successfully.

AI-written summary · about

  1. 0:00Intro
  2. 0:20What is Panama
  3. 1:20Speed
  4. 1:55C
  5. 2:17Memory Segment
  6. 2:50Memory Exception
  7. 3:24Interoperability
  8. 4:36Testing
  9. 5:12Mapping
  10. 5:57File System
  11. 6:51Arena
  12. 7:42Shared Arena
  13. 8:38Infinite Arena
  14. 11:09Structure Access
  15. 12:50Java Class
  16. 14:00C Utility
~/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.