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?
[ Parent
| on HN ]
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.
(NB. mio has windows support in master, but it seems that it hasn't been published to crates.io yet.)
Dropbox has something futures-based ala Finagle that's built on mio. We'll be open sourcing it sometime soon-ish.
A Node-style event loop leads to callback hell. It would be awesome to have something like Boost Asio.
Not anymore - with V4 generator based "coroutines" are available (enabled by default).
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.
Pretty much, yeah: https://github.com/tj/co