2 ms·
Algol and Simula had coroutines (just to give two examples). Go just made them mainstream again.
by gpderetta 4y ago
Algol and Simula had coroutines (just to give two examples). Go just made them mainstream again.
- kaba0 4y agoCoroutines are not just the same as “virtual threads” (in a different lingo) These concurrency models can be placed on a matrix based on stackfull/stackless and based on preemptive/cooperative. I think there are/were examples for all of them — the more interesting property of goroutines (and Java’s virtual threads) is turning blocking calls into non-blocking, by using the OS’s async IO behind the scenes for everything.