~/talk

Understanding C++ Coroutines by Example: Generators (Part 2 of 2)

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

Concrete implementation of C++20 coroutines for generators shows the exact promise changes, an implements iterator-based generators design with begin/end semantics, and how reference, increment and exception propagation actually work. The talk builds recursive generators and an async-generator prototype using a continuation field, final awaitable and symmetric transfer to resume continuations, and reports the surprising specification quirk in the C++23 proposal that begin may be consumptive / callable only once. Code and slides are available on the linked repository.

AI-written summary · about

  1. 0:00Implementing generators
  2. 2:36Promise and iterator design
  3. 13:38Handling coroutine flow
  4. 20:36Lazy iteration patterns
  5. 24:31Recursive generators
  6. 36:37Standard library proposal
  7. 43:50Asynchronous generators
~/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.