4 ms·
This looks like a really thorough examination of async-await i.e. stackless coroutines, but it doesn’t seem to cover Lua-like stackful coroutines. Apologies if
by pansa2 22d ago
This looks like a really thorough examination of async-await i.e. stackless coroutines, but it doesn’t seem to cover Lua-like stackful coroutines.
Apologies if it does and I’ve glanced over it - but if it doesn’t, is there another resource that compares stackful coroutines to stackless in a similar way?
- mitxela 22d agoStackful coroutines are just traditional threads.
- jandrewrogers 22d agoStackful coroutines are cooperatively scheduled, unlike traditional threads, and context switch much more inexpensively. It is the reason people write stackful coroutine libraries instead of just using threads.
- mitxela 21d agoThreads were traditionally cooperatively scheduled, too. Expensive context switch is an artifact of implementation.