Re:C++ coroutines: Initial implementation pushed to master
by pjmlp on Sunday January 19, 2020 @04:18AM
(#22090348)
Go routines are a tiny subset of what coroutines allow in other languages, because Go doesn't have the concept of generators/continuations nor exposes the low level runtime management APIs.
[ Parent
| on HN ]
Re:C++ coroutines: Initial implementation pushed to master
by gpderetta on Sunday January 19, 2020 @05:02AM
(#22090511)
Technically goroutines are equivalent to one shot continuations, while generators, lacking the ability to capture a call stack are not (they capture the return continuation, but not any arbitrary one).
So no, go coroutines (or any stack full coroutines) are actually more powerful than thise exposed in other languages.