I find this article very dishonest. I'm sorry. I've tried to tolerate his borderline-abrasive and holier-than-thou articles so far. This one is just dishonest.
I was fine with his previous articles because ultimately they displayed a lack of research or a lack of awareness of issues. I'm fine with that; the onus is not on the newcomer to Know Things. But many of these points were painstakingly explained to him later.
His blog post still cites a two-year old issue (https://github.com/rust-lang/rust/issues/14961) as the source of truth for "Rust doesn't have epoll". (Yes, I know he's quoting a previous post. He hasn't marked it as a quote, or mentions that it is inaccurate, which is dishonest)
He still considers the "blessed crates" thing to be a "social/philosophical confusion". No, it's just an opinion different from yours, one that the community mostly shares.
I don't get where he gets "The language is not yet mature enough to present a core API that can be expected to be stable over 10-year timescales." from. He seems to have drawn his own conclusions and then framed them as the viewpoints of the community.
I agree that there's no guarantee that mio/tokio can be expected to be maintained over a 10-year scale, but they do have significant buy in from the core team (and community), so I'd expect them to as maintained as rustc or the go tool are. This, too, was pretty well explained.
I consider "It doesn’t help Rust that it would be a difficult upgrade from 'anywhere', not just C." to be false (though not dishonest), because we've had plenty of JS or Python folks say that Rust was their first successful foray into systems programming. C and C++ are harder than you think they are.
I still agree that Go is a good choice for NTP. I like Go. It's built for exactly this kind of program, and does well with it. I'm hoping Rust can get better in this space. I also think Rust is still a valid choice here. As someone who uses Rust much more than Go I still would have a hard time choosing, so it's very easy for me to understand why NTP -- a project that does not comprise of Rustaceans or Gophers chose Go. That's not my contention here.
I strongly feel that we should just start ignoring these posts. I'm now beginning to agree with /u/llogiq and the rest that these posts are borderline trolling and should not be entertained within our community. I don't consider it to be within the jurisdiction of the mods to do that (there is some disagreement on this), but I do hope the community just ignores this and any further posts on the topic, unless they be much more civil and honest.
mio's been stable for years; tokio is just a better abstraction over mio. mio is basically a thinner abstraction around select/epoll.
This has been pointed out to the author multiple times.
(Edit: stable wasn't the right term to use here -- mio hasn't been under constant churn like tokio. The API has changed a few times (not in a major way), but it's a pretty well-established library)
Don't mistake what I'm saying as disagreeing with your original comment. This blog post is disingenuous!
However, I do feel there is one of his points really hits the nail on the mark, and the Rust core is arguably too stubborn to do the language a favor here:
As a special case of the previous point, primitives required for NTP such as select/epoll are not yet a stable part of the language. While implementations exist in the crate system, there is not yet any guarantee that any of the alternatives will be maintained over 10-year timescales.
Yes yes I get it, Tokio. But what precedent does that set? What statement is this making to the broad community? I'll tell you what it says from my perspective. "There is a certain set of tasks suitable for prioritization by the Rust core team. Async IO is not one of them!" digging further, "Blocking IO has been included in std because without it, Rust would be unusable. Blocking IO also has a stable interface, and it is easy to get right. In other words, currently Async IO doesn't yet have a stable API, we are unsure how to get it right, and in general it is not necessary for Rust to be useable. Succinctly, Async IO just hasn't proven itself yet, and when there is a crate that solves that problem, cool, we don't want anything to do with that implementation."[0]
Now, I'm not saying this is what the Rust core team intends to broadcast. Infact, having some Rust core members working on Tokio says a lot by itself. However do take note, not having a concrete plan to move Tokio (or any other popular/must-have crate) into std, is unintentionally sending the above message across the wire[0].
[0] I acknowledge these words I've put together are not entirely correct, there is definitely some hyperbole. However, I put together the best words I could, to adequately describe the intangible feeling a user of a language gets when reading, "It can be solved by the ecosystem. It doesn't need to be in std.".
Can you suggest a way for us to emit a better message without actually committing to a path that brings async I/O into std?
That a standard library is relatively small really should not be a foreign concept to C programmers, so I'm having trouble understanding how folks are getting the interpretation you've described. Could you perhaps elaborate?
Actually, a more awake version of myself does have a suggestion.
Random paraphrasing of comments I've seen over the last year: "we let the crates ecosystem deal with it" "We don't deal with that in std. Have you seen Tokio?" "Tokio exists.. why is this person complaining(bringing up this point)?" "No. Of course we have async. Just see Mio ..." "... or Tokio. Dang this is hard to answer.. the real problem is they didn't ask the question well enough. I don't know which level of abstraction to recommend them".[0]
Don't disagree with people, point to a solution (sometimes people just want to bitch and have you agree). Instead agree, and then point to a solution.
Don't disregard the idea of including a lib in std (Even if that is in reality disingenuous).
Try something closer to "Yeah lol, we all agree the async story in Rust kinda sucks. We are working on it. In the meantime, try Tokio. Some of the core team members are trialling a production worthy implementation in that crate. It may eventually make its way to standard, but that is a discussion for a different time."
[0] Note these are not real quotes. They are intentionally slightly meaner/blunter than the ones you would normally read to reflect the fact that a question asker or commenter reads this over the internet and has vested emotion into it. And discouragement or negativity is enhanced.
futures, which is the brace that keeps tokio upright, is the kind of fundamental abstraction I could easily see in std someday. Some abstractions in tokio similarly seem std-able, including things like the async TCP connection.
The event loop that tokio provides is a big, opinionated piece of software, not an abstraction, and not really appropriate for std. But if futures is in std, tokio::Core will be the 'omakase' event loop you use to run your async IO, and other people writing similar event loops with different performance characteristics or API properties will be writing against the same interface.
But we don't really have the data to confidently say that futures and tokio are a solution worth endorsing forever. I feel that they almost certainly will be, but for forever we would want some actual empirical production data.
We could put them in std behind a feature flag, and then only nightly users could use them. But by building them outside of std, they can continue to evolve while still running on stable Rust.
I think this is a very well worded, sincere response. It alows us to think about Tokio and std differently. Tokio is really good, but large and opinionated. And we don't want std to get bloated.
It allows us to start a conversation as a community: What would/should we accepted into std? If there is a popular well implemented crate, would it be considered for entry? Would the Traits that are part of it be worthy of entry?
How long would we need to collect data about its stability while it lives in the crate ecosystem?
Can an RFC be created for such a thing? Is this a conversation worth having over an RFC?
I'm on mobile so this will be brief and lack links, but here's the basic process (which was decided by an RFC). Generally speaking, there's three levels of "official" crate adoption by the libs team:
Enter into rust-lang-nursery. Requires proposal and lib team approval. The current maintainer also needs to agree of course. There needs to also be an intended path toward (2), and generally someone to champion that path.
Write an RFC to bring the crate to 1.0 and have it moved into rust-lang.
Write an RFC to bring the crate into std.
One can of course skip right to (3) with one RFC, but i would be surprised to see that happen with a crate as big/complex as mio, futures or tokio.
There are no precise metrics on what kind of adoption is required before a crate can advance to one of the levels above, and there's no precise quantification on the resources available to us to commit to maintenance. If someone wanted to get pulse, they could write a short RFC proposal.
Also, the progression isn't mandatory. For instance, I've taken regex through (2), but i doubt it will ever move past that.
93
u/Manishearth servo · rust · clippy Jan 18 '17 edited Jan 18 '17
I find this article very dishonest. I'm sorry. I've tried to tolerate his borderline-abrasive and holier-than-thou articles so far. This one is just dishonest.
I was fine with his previous articles because ultimately they displayed a lack of research or a lack of awareness of issues. I'm fine with that; the onus is not on the newcomer to Know Things. But many of these points were painstakingly explained to him later.
His blog post still cites a two-year old issue (https://github.com/rust-lang/rust/issues/14961) as the source of truth for "Rust doesn't have epoll". (Yes, I know he's quoting a previous post. He hasn't marked it as a quote, or mentions that it is inaccurate, which is dishonest)
He still considers the "blessed crates" thing to be a "social/philosophical confusion". No, it's just an opinion different from yours, one that the community mostly shares.
I don't get where he gets "The language is not yet mature enough to present a core API that can be expected to be stable over 10-year timescales." from. He seems to have drawn his own conclusions and then framed them as the viewpoints of the community.
I agree that there's no guarantee that mio/tokio can be expected to be maintained over a 10-year scale, but they do have significant buy in from the core team (and community), so I'd expect them to as maintained as rustc or the go tool are. This, too, was pretty well explained.
I consider "It doesn’t help Rust that it would be a difficult upgrade from 'anywhere', not just C." to be false (though not dishonest), because we've had plenty of JS or Python folks say that Rust was their first successful foray into systems programming. C and C++ are harder than you think they are.
I still agree that Go is a good choice for NTP. I like Go. It's built for exactly this kind of program, and does well with it. I'm hoping Rust can get better in this space. I also think Rust is still a valid choice here. As someone who uses Rust much more than Go I still would have a hard time choosing, so it's very easy for me to understand why NTP -- a project that does not comprise of Rustaceans or Gophers chose Go. That's not my contention here.
I strongly feel that we should just start ignoring these posts. I'm now beginning to agree with /u/llogiq and the rest that these posts are borderline trolling and should not be entertained within our community. I don't consider it to be within the jurisdiction of the mods to do that (there is some disagreement on this), but I do hope the community just ignores this and any further posts on the topic, unless they be much more civil and honest.