~/talk

Coroutines explained

Talkat Code Mesh LDN 2018 · 2018-11-08..11-09· [concurrency]
slides:none on file

Explains coroutines by showing concrete code in Lua resume/yield, JavaScript generators and async/await -> state machine and call/cc continuations in Scheme, with timings (2s and 5s promises produce a 7s composed result) and runnable patterns. Demonstrates wrapping callback APIs into promises (readPromise) to flatten nested callbacks, shows that async/await compiles to a state machine, warns that generators can leak resources because finally runs only on exhaustion and that stackful vs stackless semantics affect where and how suspension and resumption happen.

AI-written summary · about

  1. 0:00Start
  2. 3:43Core Routine
  3. 4:31Example in Lua
  4. 8:17Example Code
  5. 8:39Mandatory Notes about Concurrency versus Parallelism
  6. 15:41Factorial
  7. 25:34Co-Routines
  8. 26:08What Is Continuation
  9. 39:48Example of Sequential Read
  10. 42:55Summary
  11. 43:44Carry Continuation
  12. 44:31Thread Safety
~/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.