News for hackers. Stuff that matters.
Re:Async-await on stable Rust by Felz on Thursday November 07, 2019 @03:34PM (#21476990)
I think Project Loom would fit. It's a remarkably sane approach:

https://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.ht...

Re:Async-await on stable Rust by ceronman on Thursday November 07, 2019 @04:03PM (#21477214)
As a Java developer I'm really looking forward for Project Loom. I think it's a great approach that avoids the pitfalls of the two-colored functions approach.

However, Project Loom doesn't fit into the "zero cost abstraction" paradigm of rust. Project Loom requires quite a lot of support form the JVM runtime:

> The main technical mission in implementing continuations — and indeed, of this entire project — is adding to HotSpot the ability to capture, store and resume callstacks not as part of kernel threads. JNI stack frames will likely not be supported.

It also still require manual suspension so JIT compiled tight loops will likely still cause a problem.

Re:Async-await on stable Rust by stuhood on Thursday November 07, 2019 @04:10PM (#21477282)
I think that that makes it fairly similar to Rust's approach then... compiler support for suspension, and cooperative scheduling.