~/talk

Coroutines 101

Talkat Core C++ 2025 · on Sunday, 2025-10-19· [c-and-cpp, concurrency]
links:none on file
slides:none on file

Explains that coroutines provide cooperative multitasking inside one thread to avoid locks and share resources, demonstrates two concrete APIs: Boost.Coroutine2 (stackful) and std::coroutines (promise/handle-based), shows a working pipeline generator → prime filter → summation that stops when the sum crosses 100, adapts a legacy callback parser using stackful coroutines to return a parse tree without locks, and sketches an actor scheduler and iterative math generator; examples compile and run and show clean shutdown and required lifetime care.

AI-written summary · about

  1. 0:00Introduction to coroutines
  2. 1:54Why use coroutines
  3. 3:38What coroutines really are
  4. 6:27How to use coroutines
  5. 10:18Boost coroutine API demo
  6. 14:54Standard library coroutines
  7. 18:44Standard library demo
  8. 21:39Stackful coroutines for parsers
  9. 25:15Safety considerations with coroutines
  10. 26:37Real-world coroutine examples
  11. 29:51Actor model with coroutines
  12. 30:33Mathematical software use case
  13. 31:44Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.