# 2020 roadmap post

**URL:** <https://internals.rust-lang.org/t/2020-roadmap-post/11210>\
**Category:** Uncategorized\
**Created:** [October 30, 2019, 10:21pm UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210 "2019-10-30T22:21:37Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark-i-m](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/mark-i-m/32/3167_2.png) [@mark-i-m](https://internals.rust-lang.org/u/mark-i-m)\
**Post date:** [October 30, 2019, 10:21pm UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/1 "2019-10-30T22:21:37Z")

</div>

Feedback appreciated.

> <https://gist.github.com/mark-i-m/a39320449a1311515ac62e43ddd9dee0>

---

<div class="post-metadata">

**Author:** ![dustinknopoff](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@dustinknopoff](https://internals.rust-lang.org/u/dustinknopoff)\
**Post date:** [October 30, 2019, 10:42pm UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/2 "2019-10-30T22:42:36Z")

</div>

> That is, I am not aware of any specific goals or milestones that where targeted.

I think you meant to use "were" instead of "where" 😃

---

<div class="post-metadata">

**Author:** ![Centril](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/centril/32/3334_2.png) [@Centril](https://internals.rust-lang.org/u/Centril)\
**Post date:** [October 30, 2019, 11:27pm UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/3 "2019-10-30T23:27:34Z")

</div>

> The blocker here is design work. There was a [Pre-RFC about inline asm](https://internals.rust-lang.org/t/pre-rfc-inline-assembly/6443) a while back, but there was still some discussion to be had and somebody needs to champion and implement the ideas.

Two points:

- Given the huge number of bugs inline ASM has and the difficulty of calling such a thing stable, I think it would be a huge project to stabilize inline assembly. I think that isn't compatible with another year of maturity.

- The blocker is not just design work, but also agreement that we should have inline assembly on stable at all. For example, here are some notable objections to it:

Also, why is inline assembly a blocker for kernel development? Can't you link in assembly blobs?

Another approach would be Cargo-side improvements, e.g. `asm_dir = "foo"` and `asm = "cc"` in `Cargo.toml` which would result in taking the files in `foo`, feeding them to `cc`, and linking in the object files (credit due to @oli-obk for the idea).

> Technical Debt and Measurable Progress

@mark-i-m Remember how I was arguing that maturity / sustainability isn't necessary? _I take it all back._ Despite having had a "year of maturity", there's still loads of things to finish. I do think we should continue next year with "Implement all the things; Be extremely conservative with accepting new RFCs if we don't have people lined up to implement and review them and if we don't think they are readily implementable."

> It seems clear that a lot of good work was done [by a lot of people](https://internals.rust-lang.org/t/2019-roadmap-progress/10862/7).

Here's some more:

> <https://github.com/rust-lang/rust/blob/c553e8e8812c19809e70523064989e66c5cfd3f1/src/libsyntax/feature_gate/accepted.rs#L201-L253>

> We should pick a few milestones and put active focus on achieving them. This applies even to technical debt work: we should _explicitly_ choose certain technical debt items, make a big list, and actively work through it in a _measurable_ way.

I think we can reasonably maintain a list of high level goals, but I think we should also avoid micro-management. At the end of the day, Rust is an open source project, not a company. I wouldn't want to feel like an employee.

> Making a new edition just because it has been 3 years doesn't make sense to me. Indeed, I think we should make a new edition only when needed to reduce churn and overhead on the users.

I agree with this punchline.

We could collect things we want to change, perhaps even eagerly gate them under a new `edition_next` feature gate and then one day, when we think there's enough things in there we can RFC a proposal to stabilize set editions and its contents.

---

<div class="post-metadata">

**Author:** ![ratmice](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/ratmice/32/4917_2.png) [@ratmice](https://internals.rust-lang.org/u/ratmice)\
**Post date:** [October 30, 2019, 11:51pm UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/4 "2019-10-30T23:51:40Z")

</div>

> [@Centril](#):
>
> We could collect things we want to change, perhaps even eagerly gate them under a new `edition_next` feature gate and then one day, when we think there's enough things in there we can RFC a proposal to stabilize set editions and its contents.

I'm not terribly enthusiastic about the idea of `edition_next`, since it reflects a perpetually moving target which gives no information regarding the actual edition of the compiler once it comes time to stabilize the next edition.

Perhaps something like `previous_edition+`, so `edition = "2018+"` would contain all the stuff stabilized after the 2018 edition, up to the next editions release, and after the next edition is released the `2018+` edition can be deprecated in favor of whatever the next edition becomes.

That at least to me would seem more palatable than a blanket `edition_next` devoid of any context.

---

<div class="post-metadata">

**Author:** ![Centril](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/centril/32/3334_2.png) [@Centril](https://internals.rust-lang.org/u/Centril)\
**Post date:** [October 30, 2019, 11:55pm UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/5 "2019-10-30T23:55:30Z")

</div>

> [@ratmice](#):
>
> Perhaps something like `previous_edition+` , so `edition = "2018+"` would contain all the stuff stabilized after the 2018 edition, up to the next editions release, and after the next edition is released the `2018+` edition can be deprecated in favor of whatever the next edition becomes.

Is that just a question of renaming? If so I'm fine with whatever name. 🙂

---

<div class="post-metadata">

**Author:** ![ratmice](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/ratmice/32/4917_2.png) [@ratmice](https://internals.rust-lang.org/u/ratmice)\
**Post date:** [October 31, 2019, 12:02am UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/6 "2019-10-31T00:02:55Z")

</div>

Yep, just a question of renaming to avoid ambiguity after the `next_edition` is released and there is a new `next_edition`.

---

<div class="post-metadata">

**Author:** ![HadrienG](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/hadrieng/32/3294_2.png) [@HadrienG](https://internals.rust-lang.org/u/HadrienG)\
**Post date:** [October 31, 2019, 7:52am UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/7 "2019-10-31T07:52:21Z")

</div>

This "2018+" syntax seems more prudent to me than the "c++0x"-style syntax that most C++ compilers adopt when they try to address a closely related problem.

After all, edition release years are just arbitrary deadlines that can be pushed back indefinitely (like C++11 was), whereas the year where the previous edition was released is a known fact.

---

<div class="post-metadata">

**Author:** ![H2CO3](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/h2co3/32/2849_2.png) [@H2CO3](https://internals.rust-lang.org/u/H2CO3)\
**Post date:** [October 31, 2019, 7:57am UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/8 "2019-10-31T07:57:06Z")

</div>

> Technical Debt and Measurable Progress

I'm not sure because of the wording (or perhaps my not necessarily great reading comprehension abilities 😅), but does this mean that you are not counting the reduction of technical debt towards measurable progress? I think it's an enormously important and very real kind of progress. (If that's not what you meant, sorry for bringing it up!)

I also think that in the current state of all things, the ideal amount of new features vs getting rid of tech debt (and _properly_ finishing off things we began) is `epsilon to 1 – epsilon`.

---

<div class="post-metadata">

**Author:** ![HadrienG](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/hadrieng/32/3294_2.png) [@HadrienG](https://internals.rust-lang.org/u/HadrienG)\
**Post date:** [October 31, 2019, 8:17am UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/9 "2019-10-31T08:17:59Z")

</div>

Perhaps "(externally) observable progress" would be a better wording? Part of the reason why technical debt reduction is often insufficiently prioritized is that it has little user-visible effects, as the effects of technical debt are usually only observed indirectly by users via crashes, limitations, slowness, etc. that are hard to attribute back to this cause.

---

<div class="post-metadata">

**Author:** ![ckaran](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@ckaran](https://internals.rust-lang.org/u/ckaran)\
**Post date:** [October 31, 2019, 3:39pm UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/10 "2019-10-31T15:39:01Z")

</div>

I'd personally like to see technical debt paid down even more. In [another thread](https://internals.rust-lang.org/t/maybe-rust-is-too-stable/11122) @mark-i-m suggested that it might be a good idea to

> [@Maybe rust is too stable?](https://internals.rust-lang.org/t/maybe-rust-is-too-stable/11122/1):
>
> ...make compilation of unspecified behavior non-deterministic...

This suggests that there are enough places where either the language is underspecified, or the compiler is lax enough that non-deterministic compiles are possible. More than anything else, I'd like to see Rust be _fully_ specified and unambiguous. This would allow formal methods to be applied to a program, and it would allow others to develop their own compilers for rust.

---

<div class="post-metadata">

**Author:** ![mark-i-m](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/mark-i-m/32/3167_2.png) [@mark-i-m](https://internals.rust-lang.org/u/mark-i-m)\
**Post date:** [October 31, 2019, 4:31pm UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/11 "2019-10-31T16:31:18Z")

</div>

@ckaran

> [@ckaran](#):
>
> This suggests that there are enough places where either the language is underspecified, or the compiler is lax enough that non-deterministic compiles are possible

It is the former. For incremental compilation, almost everything is deterministic.

@H2CO3

> [@H2CO3](#):
>
> but does this mean that you are not counting the reduction of technical debt towards measurable progress?

No, I agree with you that it is important and is progress. I don't agree that it is measurable. That is, if one asks "how much progress have we made towards the 2019 roadmap goals?", there is no well-defined answer. Suppose we accomplished some set S of tech debt items. Is that success or not? Nobody can answer because there was no predefined set of concrete items that would be the measure of success.

I'm not opposed to paying down more debt. I think that might even be the right thing to do. But I think we should set milestones and actively work towards them. For example, for technical debt, we could use a lot of different measures (not sure which ones are good ideas though):

- Accomplish major refactoring X, where X is a specific change
- Unblock or finish major RFC or desired feature X, where X is a specific feature or rfc
- Resolve N github issues
- Resolve all github issues older than 2016
- Have a design in place for feature X, where X is a specific thing that needs design
- Resolve N% of the FIXMEs in the compiler

I would also argue that the list of goals should be conservative, something we can actually do.

@Centril

Your points about inline asm are fair. I agree that it would take concerted effort, though I'm not sure how much of a blocker the cranelift backend should be. It seems like we could just emit an error if you try to use inline asm with cranelift, and it's not clear to me how common this usecase is.

> [@Centril](#):
>
> Can't you link in assembly blobs?

Yes, but it costs a lot: all of a sudden you need a c compiler or assembler, you need to figure out the right linker magic to get your assembly in the right places, and you probably need a build system around xargo/xbuild, which is itself already a wrapper around cargo.

Also, maybe I am just warped by C/C++ but I can't imagine a self-respecting systems language that doesn't easily support low-level programming.

---

<div class="post-metadata">

**Author:** ![osrust](https://avatars.discourse-cdn.com/v4/letter/o/ee7513/32.png) [@osrust](https://internals.rust-lang.org/u/osrust)\
**Post date:** [November 2, 2019, 7:26am UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/12 "2019-11-02T07:26:37Z")

</div>

Since the post specifically mentions _I still want all of the things that I wanted last year_, just wanted to second this from your [2019 wishlist](https://gist.github.com/mark-i-m/2c3508ab7a9f2c48f634f0b5da3bb000):

> I would like to see a short `impl period` time set aside where _no RFCs_ are merged and the focus is on visiting every accepted-but-not-stable RFC and evaluating it. For each one, either it should be stabilized or work items should be identified. If the feature is just not getting usage, it should be un-RFC-ed.

Rust, as a systems language, has quite a footprint already and without some sort of pause and reflection — may be even a policy — on the amount of RFCs accepted, the cognitive overhead caused by the bloat may lead to the language tripping on it's own feet.

---

<div class="post-metadata">

**Author:** ![mark-i-m](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/mark-i-m/32/3167_2.png) [@mark-i-m](https://internals.rust-lang.org/u/mark-i-m)\
**Post date:** [November 6, 2019, 3:43pm UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/13 "2019-11-06T15:43:42Z")

</div>

I was actually just looking at C++20. The pace of change in the language is so fast that people who know C++11 like me are quickly finding their knowledge obsolete. Even though I like the direction the language is going as a whole (more static checks, more helpful compiler), I am unmotivated to learn a new C++20 every few years.

I don't want rust to be like that.

---

<div class="post-metadata">

**Author:** ![comex](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/comex/32/2587_2.png) [@comex](https://internals.rust-lang.org/u/comex)\
**Post date:** [November 7, 2019, 12:20am UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/14 "2019-11-07T00:20:33Z")

</div>

As a counter-anecdote, almost every major change in C++20 is something I've wanted for a long time, and I'm eagerly waiting for them to actually be implemented. (Especially since a lot of them boil down to "this thing that was an error before is no longer an error", e.g. allowing more things in constexpr context.) I'm also looking forward to bigger features which might be in the next standard, such as reflection and metaclasses.

On the other hand, I think C++ in general is an excellent example of how not to design features – they tend to be rather non-orthogonal, making them confusing and overcomplicated, yet ironically limited in power.

In many cases, the language keeps adding newer better ways to perform the same task, while the old ways stick around for backwards compatibility's sake, leading to layers and layers of redundant functionality. I don't blame the backwards compatibility, which is a great service to developers. And with how old C++ is, to some extent it's inevitable that _some_ features would turn out badly in practice. But not quite as many as C++ has ended up with...

The lesson to learn: measure twice, cut once. Make features as simple as possible, but also as complete and powerful as possible, so that they do what people need. Pick the right design, not the design that's easiest to implement in the short term. And in Rust's case, stop rushing half-baked things to stable just because 'nobody will test them otherwise'!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/system/32/14092_2.png) [@system](https://internals.rust-lang.org/u/system)\
**Post date:** [February 5, 2020, 12:20am UTC](https://internals.rust-lang.org/t/2020-roadmap-post/11210/15 "2020-02-05T00:20:38Z")

</div>

Closed on February 5, 2020, 12:20am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
