6 ms·
Doesn't the problem you mention for Loom applies equally to OS threads? What's the difference? Loom just lets you create more threads but with OS threads you ar
by ithrow 4y ago
Doesn't the problem you mention for Loom applies equally to OS threads? What's the difference? Loom just lets you create more threads but with OS threads you are doing IO too.
- valenterry 4y agoThis is independent of OS threads or green threads. The problem is that with Loom the developer loses control whether they can execute something on one OS thread only or not. Whereas right now they conciously have to decide if they want to run something sync or async.
- seer-zig 4y agoNothing is stopping the developer from starting a single thread executor and using that to launch many virtual threads. Is that what you meant?
- valenterry 4y agoWell, that is something that is desired and also something we can already do in the JVM world. What I mean is that semantics of existing code changes (and becomes harder to understand for future code).