c++ and c: protothreads
provides linear code execution for event-driven systems.
"lightweight stackless threads"
reminds me of go’s goroutines when go is running under a single cpu core.
see writeup and analysis at following:
- http://blog.brush.co.nz/2012/11/async-await-protothreads-cpp/
- http://blog.brush.co.nz/2008/07/protothreads/#cpp
actual implementation for c:
implementation for c++:
co-routines in c
continuation passing c
2 books at a time
i think i’m going to try to be reading 1 book about my pragmatic languages list and 1 from my research languages list. at the moment the two books are:
- practical: classic shell scripting (shell)
- research: simply scheme (scheme)