4 ms·
If you're allocating a call stack per thread you might as well just use actual threads.
by pcwalton 2y ago
If you're allocating a call stack per thread you might as well just use actual threads.
- anonymoushn 2y agoThis obviously doesn't work. Maybe you can try refactoring a console emulator that uses its stack switching primitive millions of times per second to use threads instead and let us know how well it runs.
- littlestymaar 2y agoBut you lose the async/await syntax (which I'm addicted to because it makes blocking point explicit, like `?` makes error explicit).