|
|
|
|
|
by lixiasky
124 days ago
|
|
Oh absolutely! Adam Dunkels' work is legendary.
It's kind of poetic that Protothreads achieved stackless concurrency via C preprocessor macros and Duff's device tricks, and now years later, C++20 finally baked that exact same "state machine via switch-case" logic directly into the compiler.
Same spirit, just less macro magic! :) |
|
https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html