~/talk

(Don't) use coroutines for this

Talkat Meeting C++ 2025 · 2025-11-06..11-08· [frontend-architecture]
links:none on file
slides:none on file

Shows concrete patterns and failure modes: using std::generator for lazy flows, building a heap‑free recursive VM by forcing initial_suspend and never_ready, and when that breaks (heap allocation, hidden allocations, or UB from relying on return value optimization). Implements short, testable examples: coroutines as state machines for variant-based states, early‑return propagation like std::expected, simple parser combinators, and a tiny executor that actually runs suspended frames.

AI-written summary · about

  1. 0:00Punk rock C++ intro
  2. 1:10Rebelling against C++ best practices
  3. 2:34Misra recursion with coroutines
  4. 8:43Manual stackless coroutines
  5. 14:07Coroutines by example
  6. 17:19Coroutines for error handling
  7. 23:24Undefined behavior with coroutines
  8. 27:39Early returns and dynamic casts
  9. 28:41State machines with coroutines
  10. 34:25State machine demo
  11. 35:07Coroutines as control flow
  12. 36:35Parsers with coroutines
  13. 38:21Coroutines summary
  14. 39:48Closing and Q&A
~/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.