News for hackers. Stuff that matters.
Re:Trying Rust for web services by saosebastiao on Thursday October 01, 2015 @12:37PM (#10312439)
Isn't async io pretty much mandatory to compete with the top platforms/frameworks now? I'm certain rust can compete with C++ on raw compute speed, but io is still going to bog it down. Are there any rust frameworks that are using mio yet?
Re:Trying Rust for web services by steveklabnik on Thursday October 01, 2015 @12:53PM (#10312574)
The biggest HTTP library, hyper, has a branch, but will not merge it without mio gaining Windows support. Said support is actively being worked on.
Re:Trying Rust for web services by dbaupp on Thursday October 01, 2015 @09:20PM (#10316017)
(NB. mio has windows support in master, but it seems that it hasn't been published to crates.io yet.)
Re:Trying Rust for web services by jamwt on Thursday October 01, 2015 @02:41PM (#10313551)
Dropbox has something futures-based ala Finagle that's built on mio. We'll be open sourcing it sometime soon-ish.
Re:Trying Rust for web services by acconsta on Thursday October 01, 2015 @02:21PM (#10313362)
A Node-style event loop leads to callback hell. It would be awesome to have something like Boost Asio.
Re:Trying Rust for web services by spion on Thursday October 01, 2015 @02:54PM (#10313675)
Not anymore - with V4 generator based "coroutines" are available (enabled by default).
Re:Trying Rust for web services by acconsta on Thursday October 01, 2015 @03:33PM (#10314038)
I was thinking async-await, which I thought hasn't been standardized yet. Do generators provide the same functionality?

Either way, I hope Rust skips the callbacks.

Re:Trying Rust for web services by spion on Thursday October 01, 2015 @07:15PM (#10315483)
Pretty much, yeah: https://github.com/tj/co