Blogs / Personal blogs

David Mazières

scs.stanford.edu/~dm

Home page of David Mazieres

Popular posts
1
Total points
187
HN comments
136
Rank
#13,431 personal

Visit scs.stanford.edu/~dm → On Hacker News Feb 2021 – Feb 2021

Software Engineering 1Programming Languages 1

1

My tutorial and take on C++20 coroutines

Over the last 25 years, I’ve written a lot of event-driven code in C++. A typical example of event-driven code is registering a callback that gets invoked every time a socket has data to be read. Once you have read an entire message, possibly after many invocations, you parse the message and invoke another callback…