Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
saosebastiao
· 11y ago · 0 comments
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?
Comments
[–]
steveklabnik
11y ago
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.
[–]
dbaupp
11y ago
(NB. mio has windows support in master, but it seems that it hasn't been published to crates.io yet.)
[–]
jamwt
11y ago
Dropbox has something futures-based ala Finagle that's built on mio. We'll be open sourcing it sometime soon-ish.
[–]
acconsta
11y ago
A Node-style event loop leads to callback hell. It would be awesome to have something like Boost Asio.
[–]
spion
11y ago
Not anymore - with V4 generator based "coroutines" are available (enabled by default).
[–]
acconsta
11y ago
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.
[–]
spion
11y ago
Pretty much, yeah:
https://github.com/tj/co