~/talk

Continuations and Fibers: The New Frontier for Java

Talkat Developer Summit 2020 · 2020-11-21..11-22· [java, concurrency]
slides:none on file

Project Loom introduces continuations as a data structure (Continuation/ContinuationScope and yield/run) and virtual threads/fibers so IO waits suspend a task not the OS thread; a demo shows 4,000 native threads run but 5,000 triggers OOM, while virtual threads report true and resume correctly. Examples mirror JavaScript generators and Kotlin coroutines, target HTTP/DB/file IO, and claim millions of JVM threads are feasible, cutting servers and keeping code single-threaded in practice.

AI-written summary · about

  1. 0:00Introduction to Project Loom
  2. 6:37Limitations of traditional threads
  3. 12:55What are continuations?
  4. 21:31Parallel vs concurrent execution
  5. 30:29How fibers improve scalability
  6. 41:06Use cases for continuations
  7. 51:17Virtual threads in Project Loom
  8. 58:07Future of Java with continuations
~/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.