News for hackers. Stuff that matters.
Re:Asynchronous IO in Rust by steveklabnik on Wednesday September 16, 2015 @09:00PM (#10230967)
It may not be replaced in the standard library, but mio exists and is what most people use for non-blocking stuff.
Re:Asynchronous IO in Rust by acconsta on Thursday September 17, 2015 @01:43AM (#10231738)
1. Stackless coroutines will probably require help from the compiler team (hint hint). It'll be worth it! Think web frameworks with Nginx performance and Rust memory safety.

2. Documentation, stability, portability, quality. I'll keep banging that drum until there's a standard. :)

3. The Mio API is subjectively weird, but I might be missing something.

Re:Asynchronous IO in Rust by dbaupp on Thursday September 17, 2015 @01:49AM (#10231750)
The first point has been on the radar for quite a while (i.e. years), but it's really non-trivial, and not at all necessary for the core language (hence not a priority for stability) since it's basically just some syntactic niceties over existing functionality.
Re:Asynchronous IO in Rust by acconsta on Thursday September 17, 2015 @02:50AM (#10231934)
> it's basically just some syntactic niceties over existing functionality.

OK, cool! Can you point us to the existing functionality, or any example of it being used for stackless coroutines?

Re:Asynchronous IO in Rust by dbaupp on Thursday September 17, 2015 @03:38AM (#10232087)
Enums. This HN submission is an example.
Re:Asynchronous IO in Rust by acconsta on Thursday September 17, 2015 @05:58PM (#10236329)
State machines aren't a general solution — you have to write a state machine by hand for every application.

Stackless coroutines are — the compiler (or a clever library) transforms your ordinary function into a state machine.

Re:Asynchronous IO in Rust by dbaupp on Thursday September 17, 2015 @09:05PM (#10236998)
Yes, I know. That's exactly what I mean by syntactic sugar: it is an automated way to write something that could already be written, but is annoying to do by hand.
Re:Asynchronous IO in Rust by acconsta on Thursday September 17, 2015 @10:39PM (#10237248)
Oh, OK. When I hear syntactic sugar, I think of like a macro. Thanks though, I'm glad this is on the core team's radar.