My tutorial and take on C++20 coroutines (2021)(scs.stanford.edu)
scs.stanford.edu
My tutorial and take on C++20 coroutines (2021)
https://www.scs.stanford.edu/~dm/blog/c++-coroutines.html
8 comments
Previous discussion: https://news.ycombinator.com/item?id=26221690
>... I sadly found the explanation of coroutines utterly incomprehensible. Same for almost every other explanation I found on the web.
Nice to see a mirror of my experience.
Nice to see a mirror of my experience.
Aren’t there some lightweight wrapper libraries now that make this a bit cleaner?
gcc-10? What is this, 2020?
Nice overview though!
Nice overview though!
there's (2021) literally in the title
I personally found coroutines are useful only in conjunction with a library wrapping OS system calls to interact with sockets (epoll/iouring on Linux, for instance), providing an event loop, and handles the complexity of multithreading. The most fleshed out one out there is probably boost asio.