|
|
|
|
|
by account4mypc
1941 days ago
|
|
> It seems really dumb that they are stackless Why? C/C++ already has stackful coroutines. And that seems extremely wasteful unless you know you'll run the coroutines at the same time... with single threaded stackful coroutines, you'd get two stacks and only ever use one at a time. that wastes megabytes, requires heavier context switching, makes cache misses more likely, etc. |
|