News for hackers. Stuff that matters.
Re:The Rust I wanted had no future by kaba0 on Monday June 05, 2023 @05:13AM (#36194082)
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.

Re:The Rust I wanted had no future by pas on Monday June 05, 2023 @04:43PM (#36203318)
how big is the overhead for this? and how much easier is working with virtual threads than Rust's async?
Re:The Rust I wanted had no future by winrid on Monday June 05, 2023 @05:34PM (#36204081)
1. 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.