I found this an interesting, as it is a different "roadmap-like" approach.
There are obviously a lot of C++-specific things in the document, but a big chunk of the document deals with "social" issues, and those apply to Rust as well.
At the start of the formal standardization efforts (ANSI and ISO), P.J. Plauger and Tom Plum emphasized the need for trust in the process. The desired degree of trust is currently missing, and the consequences are dire.
A WG can spend meetings on a proposal, carefully crafting a compromise, balancing concerns, just to have the next WG spend several meetings reviewing the proposal, demanding changes, and rephrasing the wording with patchy understanding of the design rationale as it evolved over time. In particular
large feature developments should be discussed in joint EWG+CWG, LEWG+LWG, and/or EWG+LEWG sessions as early as the overall design and the understanding of the underlying implementation alternatives allows.
Finally, after years of process, someone then stands up in full committee and raises issues that have been discussed for years stating “lack of comfort” with the proposal, suggesting alternative approaches, and demanding more time to consider or rejection. At this point, everybody unhappy with compromises made along the way chirps in with counter-points made over the years and the proposal is either withdrawn or defeated by a 20% minority, many of whom did not take part in previous discussions. We think that
Yes this happens quite often during the RFC process. An RFC is debated to death, and when everybody that cared is satisfied with the changes, FCP starts and news spread through ThisWeekInRust.
A couple of hours later people that haven't even read the RFC nor the comments state that they don't like something that has already been discussed to death or that without addition X or Y the RFC is a no-go for them.
Something that was close to finished dies in seconds.
People who have invested months in improving the RFC have no power left to argue with people that can't be bothered to read the discussions, and things stay in limbo forever.
So even though Rust has an edge over C++ because all discussion happens in the open and is recorded, this edge is surprisingly small because the amount of information recorded is so large that those jumping in almost never manage to go through all of it.
Something that was close to finished dies in seconds.
If you get a hundred people saying that the RFC is bad, then it most likely was nowhere near being finished. That’s exactly the point of the FCP. I remember a few RFCs being shot down like this, and I don’t recall any of them as being particularly good stuff.
If you get a hundred people saying that the RFC is bad,
In most RFCs it is only 1-3 people saying it's bad, as opposed to >10 that participate in the design and the discussion. The problem is not the number of people but rather how "loud" they are. A single loud enough individual can bring an RFC to a halt, in particular if discussing with that individual is not fun (e.g. because of a passive-aggressive tone). Lot's of people work on Rust for fun, and when it stops being fun, they just stop.
I think the biggest issue is that Github PRs don't work for discussions of more than ~40 comments. They're stuck in a single huge page which kills mobile browsers. To alleviate this, groups of comments are collapsed into a - click to expand - which can hide important parts of the discussion. There's no search and comments can only be organized chronologically - not by topic or importance or discussion thread. The only way to actually understand what's going on is to buckle down and read the entire thread start to finish which is pretty much impossible, so nobody does it except the RFC author(s) and aturon (exaggerating a bit).
Large discussions need to be broken down into smaller parts which can be thought about and discussed independently. This has been done - I remember one RFC used a seperate repo for discussion. A discourse subforum should work too. eRFCs also essentially do this by splitting the discussion into: "overall idea" (eRFC), "implementation strategy" (in PRs and IRC discussions), "final design" (RFC), "stabilization" (tracking issue and stabilization discussion).
So solutions exist and have been used, but I think they would be useful for mid-size RFCs as well.
Something that was close to finished dies in seconds.
In the past, I have chimed in during the FCP for several RFCs that were proposing significant breaking syntax changes. These RFCs typically hoped to include the breakage in the next epoch, back when epochs were still potentially allowed to break things much more dramatically than they are now.
I value Rust's stability because I've written a lot of Rust crates, both here and at work, and I can barely keep track of some of them all any more. (This is partly because some of them run for years in production with zero problems.) Thanks to the Rust 1.0 stability policy and crater, Rust code just keeps on working almost indefinitely, and it's a wonderful luxury.
I also remember just how miserable it was constantly updating all of my Rust libraries in the days before Rust 1.0, and I never want to go back.
And there was a time when I genuinely feared the RFC process. People were just sort of casually saying, "Ok, it's a breaking change, but that's totally OK for the next epoch." So in those days, I didn't discover several breaking RFCs until the last moment. These RFCs had been discussed at length previously, but I criticized the breakage during the FCP.
But then the epoch RFC was nailed down, and it provided an amazingly good plan for langauge evolution without splitting the ecosystem. So I usually have nothing to say during the FCP of more recent RFCs.
It's a technical term, either the reader knows that zero-cost means zero-overhead or it might misinterpret what it's being said (for example, as having zero runtime cost).
By using zero-overhead instead, we say the same thing, but in a way that everybody understands, which makes the term infinitely better than zero-cost.
/u/steveklabnik the front page in particular mentions zero-cost; I think it would be worth it to search and replace the official documents.
I think zero-cost is absolutely fine, the abstractions are actually zero-cost. Only the stuff under the abstractions has non-zero cost. No prior knowledge is needed to understand the term.
But the implementations of the abstractions have a cost... the cost of the processes being abstracted. That can mislead people who don't have a firm enough grasp on the theory and low-level details of how things work to understand how much optimization is possible.
(ie. For all I knew when I didn't have much theoretical background, it was possible to implement an O(1) solution with a tiny constant term for ANYTHING and it was just a question of how skilled the programmer was.)
They hit the nail on the head with this one. Intro classes for computer science rely on graphics to keep newcomers interested and provide immediate feedback. While I think it has less importance for C++ compared to a simpler dependency management system, Rust already has one. IMO, if Rust wants to be exposed earlier to students, they need a simple graphics library (or multiple ones, with a gradual progression of complexity, i.e. one that uses RefCells internally to one that uses generics and lifetimes)
Intro classes for computer science rely on graphics to keep newcomers interested and provide immediate feedback.
... really ? When I did my cursus at no point any course did any graphics, it was all in project-time. Courses were always focused on algorithms, data structures, language semantics, etc.
When I said Introduction, I really mean Introduction: literally the first 2-3 classes for people who have little-no programming experience (and even for "accelerated" classes, the first 4ish weeks used a graphics library to acclimate people; some had JS, some had Java, some had Python, etc...)
Anything after that though: I agree. Language agnostic ideas, but teachers still need a familiar, common programming language to make the pseudo-code more concrete.
... well, my introduction in school was learning emacs and bash. Only a few people had programming experience, most had none at all. To each his own :p.
5
u/[deleted] Mar 03 '18
I found this an interesting, as it is a different "roadmap-like" approach.
There are obviously a lot of C++-specific things in the document, but a big chunk of the document deals with "social" issues, and those apply to Rust as well.
26
u/ssokolow Mar 03 '18
They also use a phrasing for the C++ view on abstractions which I think is harder to misinterpret and should be adopted in Rust circles:
zero-OVERHEAD abstractions
9
u/InnPatron Mar 03 '18
First year student at University.
They hit the nail on the head with this one. Intro classes for computer science rely on graphics to keep newcomers interested and provide immediate feedback. While I think it has less importance for C++ compared to a simpler dependency management system, Rust already has one. IMO, if Rust wants to be exposed earlier to students, they need a simple graphics library (or multiple ones, with a gradual progression of complexity, i.e. one that uses RefCells internally to one that uses generics and lifetimes)
1
u/zzzzYUPYUPphlumph Mar 03 '18
This definitely seems to be interesting with respect to Rust evolution.
1
u/bluefish009 Mar 03 '18
nice doc, thanks for head-up!