~/talk

Deep Dive into Coroutines on JVM

Talkat KotlinConf 2017 · 2017-11-02..11-03· [kotlin, concurrency]
slides:none on file

Explains how Kotlin compilers convert suspend functions into JVM methods that take an implicit Continuation and compile into a single state-machine switch that reuses one state object (far fewer allocations than callback CPS), shows generated bytecode and microbenchmarks (including creating ~100k coroutines cheaply), demonstrates integration via suspendCancellableCoroutine and adapters for CompletableFuture/Retrofit, describes thread control via continuation interceptor / coroutine context and cooperative cancellation with Job semantics.

AI-written summary · about

  1. 0:00Introduction
  2. 1:53What is CPS
  3. 4:13How does it work
  4. 6:16How it works
  5. 13:36Integration
  6. 20:24Context
  7. 24:38Curtain Builders
  8. 36:28Communication sequential processes
  9. 38:53CSP
~/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.