~/talk

Generators, Coroutines and Other Brain Unrolling Sweetness

Talkat CppCon 2019 · 2019-09-15..09-20· [compilers-and-language-design]
links:none on file
slides:none on file

Hands-on tour of C++20 coroutines showing generators that are lazy, composable and practical: builds an OpenCV spiral pixel generator and an RGB HSV color generator, zips them with a simple zip view and renders frames; an iota generator yields 42–50 when copied for nine elements. Uses Microsoft experimental std::generator and Lewis Baker’s recursive_generator (cppcoro) for recursive tree traversal. Highlights real failures too: dangling-reference bugs from temporaries, lack of a standard std::generator, and varying compiler heap-elision behavior.

AI-written summary · about

  1. 0:00Intro
  2. 0:39FUNCTIONS A.K.A. SUB-ROUTINES
  3. 4:55USER DEFINED ITERATORS
  4. 6:39AWKWARD COUPLING
  5. 9:11DISTRIBUTED LOGIC
  6. 11:08LOGIC PUZZLE
  7. 14:57THE SIMPLEST CODE
  8. 16:18INFINITE RANGES
  9. 25:14DANGLING REFERENCES
  10. 29:41RESOURCES
~/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.