top | item 47058464

(no title)

throwaway81523 | 11 days ago

Also look at Protothreads :)

discuss

order

lixiasky|11 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! :)