3 ms·
Virtual threads (like java’s loom, erlang’s and goroutines) are arguably that. In case of java there really is no compiler magic even, “just” runtime magic.
by kaba0 3y ago
Virtual threads (like java’s loom, erlang’s and goroutines) are arguably that.
In case of java there really is no compiler magic even, “just” runtime magic.
- pas 3y agohow big is the overhead for this? and how much easier is working with virtual threads than Rust's async?
- winrid 3y ago1. Low enough that you don't need to worry for most web backend code and 2. Anything is easier than that. *XYZ is not Send* amiright? With Rust's async you have to worry about a different worker thread picking up the work after a context switch, which makes things complicated. Not so with Java.