4 ms·
The alternative isn't preemptive threads, it's coroutines with subroutines that can yield.
by anonymoushn 2y ago
The alternative isn't preemptive threads, it's coroutines with subroutines that can yield.
- masklinn 2y agoYes, cooperative threading, the worst of all worlds.
- anonymoushn 2y agoimo we should reify more capabilities in the type system. you shouldn't be able to call Math.random without all of your transitive callers declaring at the call site that you plan to do that.