3 ms·
There is Project Loom[0] which seems to promise some of what you describe. [0] https://wiki.openjdk.java.net/display/loom/Main https://wiki.openjdk.java.net/di
by dgb23 5y ago
There is Project Loom[0] which seems to promise some of what you describe.
[0] https://wiki.openjdk.java.net/display/loom/Main https://wiki.openjdk.java.net/display/loom/Main
- toast0 5y agoYeah, that might do it, although from a brief skim, I suspect it's likely to end up with function color issues making it hard to really embrace virtual threads. Interesting to read about, thanks.
- kimi 5y agoNo - they are doing the opposite. A "lite" thread will be a thread, period. It has a different implementation, but it behaves the same way. You ask for one or the other, but they basically work the same way from the PoV of the programmer.
- MrBuddyCasino 5y agoProject Loom is the only approach that truly promises to solve function colouring, user code just uses the thread API, while the underlying implementation can be swapped out transparently. I'm not aware of any other ones that do this (not, not even Zig).