~/talk

C++ Coroutines, from Scratch

Talkat CppCon 2022 · 2022-09-11..09-16· [react]
slides:none on file

Claims C++20 coroutines cut complex async boilerplate and speed database-style object loading by converting a serial 10-roundtrip loader into batched loads and coroutine-based builders, with measured runs from 122 ms to ~40 ms. Walks the repo code (GitHub) and shows concrete tools: nlohmann JSON, shared_ptr-based object graphs, manual continuation-passing then replacing it with co_yield generator and promise/frame/awaiter plumbing. Delivers working examples and the infrastructure needed, not just theory.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:33The problem: object graph
  3. 8:04Serial loading implementation
  4. 14:20Batching with continuations
  5. 25:55Designing the infrastructure
  6. 38:47Implementing C++ coroutines
  7. 52:38Generators and completion
  8. 55:27Recap and conclusion
~/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.