~/talk

Prepare for what “Loom”s ahead.

Talkat Devoxx Ukraine 2022: Secure our Future · on Friday, 2022-09-02· [java]
slides:none on file

Demonstration shows Java 19 preview virtual threads cut a simple web-render pipeline from 4.3s (sequential) to ~4.1s with futures, ~1.9s with CompletableFutures and ~0.5s with virtual threads by spawning per-task virtual threads via startVirtualThread or a virtual-thread-per-task executor. Project Loom supports millions of virtual threads (~<1KB each) scheduled on carrier (ForkJoin) threads, but warns: thread locals discouraged, synchronized+wait can block carriers, deadlocks become harder to diagnose (need -Djdk.track.threads). Structured concurrency is still incubating.

AI-written summary · about

  1. 0:00Introduction and gratitude
  2. 1:52What is Project Loom
  3. 3:42Why virtual threads are needed
  4. 4:24Demo sequential processing
  5. 6:33Demo async with Future
  6. 8:39Demo CompletableFuture approach
  7. 12:59Demo one thread per task
  8. 15:46Virtual threads solve scaling issues
  9. 19:37Fundraiser offer for Devox Ukraine
  10. 21:45Virtual threads in Java 19
  11. 24:13Creating virtual threads
  12. 27:44Unstructured concurrency
  13. 29:51Structured concurrency plans
  14. 31:19ForkJoinPool and managed blocking
  15. 33:34Changes in socket APIs
  16. 35:19Synchronized and waiting issues
  17. 36:23Biased locking and thread locals
  18. 38:30Thread states and IDs
  19. 40:40Memory overhead of streams
  20. 41:43Debugging deadlocks
  21. 44:35When to retrofit code
  22. 45:18Back pressure with virtual threads
  23. 46:21Java 19 preview status
  24. 47:24Q&A session
~/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.