~/talk

Sailing Modern Java

Talkat JDD 2023 · 2023-10-24..10-25· [java]
slides:none on file

Java 21 ships concrete and preview features that change concurrency and native access: virtual threads create millions on a laptop (demo shows 1,000,000 threads; platform threads hit ~32k), they use ~300–400 bytes each and win for I/O but not CPU work; structured concurrency and scoped values simplify cancellation and replace many CompletableFuture patterns; generational ZGC drops worst GC pauses from ~113 ms (G1) to ~1 ms (ZGC) to ~30 μs; the foreign function & memory API adds arenas and memory segments to replace JNI; many APIs remain preview/incubator.

AI-written summary · about

  1. 0:00Welcome and introduction
  2. 1:55Java 21 release overview
  3. 3:20Java version adoption in production
  4. 5:48Why upgrade to newer Java versions
  5. 9:23Virtual threads introduction
  6. 14:19Demo virtual threads
  7. 17:30When to use virtual threads
  8. 19:57Virtual threads pitfalls
  9. 21:01Structured concurrency
  10. 24:53Scoped values explained
  11. 28:09Pattern matching for switch
  12. 34:09Foreign Function & Memory API
  13. 39:03Generational ZGC improvements
  14. 43:36Sequence collections
  15. 45:23String templates
  16. 47:52Unnamed classes and instance main
  17. 49:14Other Java 21 updates
  18. 50:38Q&A and closing remarks
~/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.