What we've been (a)waiting for?
summary
Claims coroutines are simple and shows a concrete C++ implementation: a fetch-like API built on libcurl multi API and a small scheduler that runs immediate coroutines so multiple downloads proceed like JavaScript promises. The code uses coroutine promise types, custom promise storage, and a fetch-like API plus promise_all/select helpers; a working search‑engine demo and GitHub repo are published. Coroutines are noted as already standardized (several years old) and the implementation actually runs.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:06JavaScript for prototyping
- 3:34Search engine in JS
- 9:44Async C++ challenges
- 12:43Coroutines vs functions
- 16:20JS vs C++ coroutines
- 18:29Coroutine traits
- 23:03Coroutine handle and promise
- 24:50How coroutines suspend
- 31:11Promise type implementation
- 36:36Immediate vs lazy coroutines
- 39:27Scheduling coroutines for IO
- 43:22Fetching data with coroutines
- 45:30Waiting for multiple coroutines
- 47:41Search engine with coroutines
- 50:09Q&A
related talks
01h 01mUnderstanding C++ Coroutines by Example, Part 1
48m“Coroutines: what can't they do?”
01h 06mC++ Coroutines from scratch
41mCoroutines explained by example
01h 16mC++ Feature Coroutines, Beginner Friendly
45mCoroutines explained
01h 30mC++ Coroutines and Structured Concurrency in Practice
52mCoroutines: C++ vs Rust
