Project Loom
summary
Prototype opens sources continuations and fibers (tail calls not started) and implements continuations and fibers in Java, scheduling fiber tasks on fork/join carrier threads with a demo swapping Jetty threads for fibers: 5,000 rps load shows threads dropping ~45–50% of requests while fibers handle the load with no dropped requests. Continuations copy native stack into two heap arrays and use a lazy copy thawing optimization. Current limits: native frames, synchronized blocks pin carrier threads, thread API and thread‑local semantics are provisional; fiber footprint is bytes to low kilobytes vs ~1 MB per kernel thread.
AI-written summary · about
chapters (18)
- 0:00Start
- 0:03Ron Pressler
- 0:39Project Loom
- 2:19Continuations
- 4:53Fibers
- 5:49Why Fibers
- 7:20Scheduler
- 7:50Continuation Api
- 8:15Java Lang Fiber
- 8:44Wrapping a User's Task in the Continuation
- 9:10Fiber Tasks
- 18:22Latency
- 20:26Limitations
- 21:31Synchronized Blocks
- 25:10Footprint
- 28:32Requirements
- 29:14Continuation Stacks
- 32:51Lazy Copy
related talks
42mProject Loom Update
29mUntangled: Sneak peek at Project Loom
53mFruits of the Loom – Lightweight Concurrency For the Java Platform
43mProject Loom: Fibers and Continuations for the Java Virtual Machine
35mUntangled: Sneak peek at Project Loom
59mContinuations and Fibers: The New Frontier for Java
50mProject Loom: Helping Write Concurrent Applications on the Java Platform
01h 01mProject Loom: Revolution in Concurrency or Obscure Implementation Detail?
