~/talk

“Coroutines: what can't they do?”

Talkat CppCon 2017 · 2017-09-24..09-29· [compilers-and-language-design, concurrency]
links:none on file
slides:none on file

The C++ Coroutines TS (N4680) adds three keywords and customization points and the talk shows how the compiler transforms coroutines into a coroutine state, a promise type and a coroutine handle. Examples include a lazy result type that uses co_return and initial_suspend to avoid work, an optional/expected style await_transform that lets co_await unwrap failures, and a type‑erased callable built from coroutine yield_value. Implementations exist in MSVC and Clang 5+ and libraries like cppcoro provide task/generator primitives; slides and code are on GitHub.

AI-written summary · about

  1. 0:00Intro
  2. 0:25What are we talking about?
  3. 1:18What's that talking about?
  4. 2:05A coroutine is a generalization of a function
  5. 5:24Very simple coroutine
  6. 7:07Coroutine body transformation
  7. 10:33Coroutine state
  8. 15:39for co_await transformation
  9. 17:02Coroutine handle
  10. 18:37Return values
  11. 19:43Implementation for lazy 2in
  12. 24:44Lazy sequences aka generators
  13. 27:16Async generators
  14. 29:35Some operations returning optional
  15. 34:26I want to play with optional coroutines
  16. 38:43Summary
~/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.