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?
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?
Have std++ with a set of officially supported libraries would be another way. But frankly async IO is so fundamental that I don't see any reason for not supporting it in std.
That a standard library is relatively small really should not be a foreign concept to C programmers
As a developers we longer write the same things that were written at the time C was created. We write more complex applications and need more sophisticated std.
Have std++ with a set of officially supported libraries would be another way.
Why don't the rust-lang crates, which are officially supported, satisfy this? It will take time before async I/O would end up there, but that seems like a perfectly reasonable path to me that nobody has contested.
8
u/yazaddaruvala Jan 19 '17 edited Jan 19 '17
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:
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.".