~/talk

Psst! A Sneak Peek at StableValue and SegmentMapper

Talkat Devoxx Belgium 2024 · 2024-10-07..10-11· [java]
github:minborg
slides:none on file

A JEP for StableValue is submitted and the library wraps jdk.internal.vm.annotation.@Stable to let fields and arrays change at most once, enabling JVM constant-folding while allowing deferred initialization; benchmarks show returning a constant at ~0.8ns, double-checked locking is ~2x slower and stable suppliers match constant speed, and a Fibonacci example drops from exponential to O(n) then O(1). SegmentMapper maps MemorySegment to Java records via MemoryLayout/record mappers, composes nested structs, and plans a natural layout feature.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:29Challenges with initialization
  3. 10:03StableValue API overview
  4. 15:00StableValue implementation examples
  5. 20:56Benchmarks and summary
  6. 23:24Questions and answers
  7. 34:12Segment Mapper API
  8. 41:03Closing and final 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.