~/talk

Generators, Coroutines and Other Brain Unrolling Sweetness

Talkat NDC TechTown 2019 · 2019-09-02..09-05· [compilers-and-language-design]
links:none on file
slides:none on file

C++20 coroutines produce lazy generators that let serial code yield values on demand; examples show an iota infinite generator, a spiral generator producing pixel coordinates, a hue-cycle generator, and a simple zip view that steps two generators in lockstep to draw colored pixels — the demos run with MSVC experimental support (non‑standard) and work but rely on an implementation library (cppcoro recommended). Warnings include dangling temporaries, “decapitation” when begin resumes execution, and no std::generator type yet.

AI-written summary · about

  1. 0:00Intro
  2. 0:32FUNCTIONS & SUB-ROUTINES
  3. 7:32USER DEFINED ITERATORS
  4. 10:50AWKWARD COUPLING
  5. 17:54LOGIC PUZZLE
  6. 22:22C++20 COROUTINES
  7. 25:03THE SIMPLEST CODE
  8. 42:10DANGLING REFERENCES
  9. 46:43DECAPITATION
  10. 55:10RESOURCES
~/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.