~/talk

await 2.0: Stackless Resumable Functions

Talkat CppCon 2014 · on Friday, 2014-09-12· at 09:00· Descartes· [frontend-architecture]
slides:none on file

C++17 proposal claims stackless resumable functions that scale to 100,000,000 concurrent coroutines and expose await and yield as keywords; implementation shows a single coroutine-frame allocation, suspend/resume cost near a function call, and zero-overhead adapters to raw OS async APIs (convertible to void* and reconstitutable). Demos include generators, goroutine-style chains (100M goroutines passing a value with ~30 ns per hop, ~15× slower than an empty call) and 1.6 billion recursive invocations in ~20 KB of space.

AI-written summary · about

  1. 0:00Introduction to coroutines
  2. 0:59Defining coroutine concepts
  3. 5:55Design goals and mechanics
  4. 7:52Implementation and syntax
  5. 13:59Standardization and Q&A
  6. 18:02Generators and recursion
  7. 23:57Advanced scalability testing
  8. 26:15Concurrency and channels
  9. 29:09Customizing awaitables
  10. 34:24Advanced library integration
  11. 38:48Resumable handles and timers
  12. 45:35Exception-free error handling
~/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.