~/talk

Beyond ByteBuffers

Talkat Devoxx Belgium 2019 · 2019-11-04..11-08· [java, compilers-and-language-design]
slides:none on file

Claims a new foreign-memory API that replaces ByteBuffer for off-heap work, exposing MemorySegment, MemoryAddress and MemoryLayout plus VarHandles to read/write with computed offsets and strides; enforces spatial bounds and temporal (close) checks so bad accesses throw exceptions not segfaults; supports deterministic deallocation via close and try-with-resources, slice/stride conversions to/from ByteBuffer, a concurrent ownership model, and after small JIT fixes attains performance comparable to Unsafe; proposed as an incubating module for Java 14/15.

AI-written summary · about

  1. 0:00Start
  2. 10:45use the native byte order instead of big-endian
  3. 19:43lay out the equivalent of a simple struct in memory
  4. 20:30read the data at a certain offset
  5. 43:57share a buffer between threads
~/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.