3 ms·
See here: https://news.ycombinator.com/item?id=35149189 https://news.ycombinator.com/item?id=35149189 QEMU uses stackful coroutines, and it's a great programmi
by bonzini 4y ago
See here: https://news.ycombinator.com/item?id=35149189 https://news.ycombinator.com/item?id=35149189
QEMU uses stackful coroutines, and it's a great programming model but we ended up fighting the compiler more than once. You can build a more traditional enter/yield API on top of C++ coroutines, see for example https://lore.kernel.org/qemu-devel/YjMuyMcwG09Tohyh@redhat.com/T/#mbaf1f5429a42f6c9fc1daf4da082b7028b487f2e https://lore.kernel.org/qemu-devel/YjMuyMcwG09Tohyh@redhat.c....