Coroutine TS: A New Way of Thinking
summary
Introduces the C++ Coroutine TS implementation on GitHub that lowers coroutines into generator-based lowering and explicit state machines. Shows compiler patches and a compiler-side generator that integrates with Visual Studio and JIT workflows, presents benchmarks reporting about a 17% speedup in one case and ~1.1x in another, and demonstrates generated state-machine code being built, executed and measured.
AI-written summary · about
chapters (7)
- 0:00Coroutine TS intro
- 12:18Generator functions in C++
- 23:39Coroutine compiler impl
- 36:24Coroutine use cases
- 48:11Optimizing coroutine perf
- 59:51Future of coroutines
- 1:01:21Q&A
related talks
58mAn Introduction to C++ Coroutines
01h 03mHow C++20 changes the way we write code
01h 02mTaro: Task Graph-Based Asynchronous Programming Using C++ Coroutine
01h 02mC++20’s Coroutines for Beginners
04mLightning Talk: Implementing Coroutines Using C++17
01h 04mConcurrency TS2: Improved C++ Concurrency and Lock-free Programming
31mCoroutine Patterns: Problems and Solutions Using Coroutines in a Modern Codebase
01h 02mC++23: using std::generator in practice
