Skip to content

Commit 0c6c34d

Browse files
committed
Remove "Learn Rust" from TRPL.
Some history: While getting Rust to 1.0, it was a struggle to keep the book in a working state. I had always wanted a certain kind of TOC, but couldn't quite get it there. At the 11th hour, I wrote up "Rust inside other langauges" and "Dining Philosophers" in an attempt to get the book in the direction I wanted to go. They were fine, but not my best work. I wanted to further expand this section, but it's just never going to end up happening. We're doing the second draft of the book now, and these sections are basically gone already. Here's the issues with these two sections, and removing them just fixes it all: // Philosophers There was always controversy over which ones were chosen, and why. This is kind of a perpetual bikeshed, but it comes up every once in a while. The implementation was originally supposed to show off channels, but never did, due to time constraints. Months later, I still haven't re-written it to use them. People get different results and assume that means they're wrong, rather than the non-determinism inherent in concurrency. Platform differences aggrivate this, as does the exact amount of sleeping and printing. // Rust Inside Other Languages This section is wonderful, and shows off a strength of Rust. However, it's not clear what qualifies a language to be in this section. And I'm not sure how tracking a ton of other languages is gonna work, into the future; we can't test _anything_ in this section, so it's prone to bitrot. By removing this section, and making the Guessing Game an initial tutorial, we will move this version of the book closer to the future version, and just eliminate all of these questions. In addition, this also solves the 'split-brained'-ness of having two paths, which has endlessly confused people in the past. I'm sad to see these sections go, but I think it's for the best. Fixes #30471 Fixes #30163 Fixes #30162 Fixes #25488 Fixes #30345 Fixes #28713 Fixes #28915 And probably others. This lengthy list alone is enough to show that these should have been removed. RIP.
1 parent 27a1834 commit 0c6c34d

5 files changed

+14
-1086
lines changed

src/doc/book/README.md

+4-10
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,25 @@ Even then, Rust still allows precise control like a low-level language would.
1414

1515
[rust]: https://www.rust-lang.org
1616

17-
“The Rust Programming Language” is split into eight sections. This introduction
17+
“The Rust Programming Language” is split into sections. This introduction
1818
is the first. After this:
1919

2020
* [Getting started][gs] - Set up your computer for Rust development.
21-
* [Learn Rust][lr] - Learn Rust programming through small projects.
22-
* [Effective Rust][er] - Higher-level concepts for writing excellent Rust code.
21+
* [Tutorial: Guessing Game][gg] - Learn some Rust with a small project.
2322
* [Syntax and Semantics][ss] - Each bit of Rust, broken down into small chunks.
23+
* [Effective Rust][er] - Higher-level concepts for writing excellent Rust code.
2424
* [Nightly Rust][nr] - Cutting-edge features that aren’t in stable builds yet.
2525
* [Glossary][gl] - A reference of terms used in the book.
2626
* [Bibliography][bi] - Background on Rust's influences, papers about Rust.
2727

2828
[gs]: getting-started.html
29-
[lr]: learn-rust.html
29+
[gg]: guessing-game.html
3030
[er]: effective-rust.html
3131
[ss]: syntax-and-semantics.html
3232
[nr]: nightly-rust.html
3333
[gl]: glossary.html
3434
[bi]: bibliography.html
3535

36-
After reading this introduction, you’ll want to dive into either ‘Learn Rust’ or
37-
‘Syntax and Semantics’, depending on your preference: ‘Learn Rust’ if you want
38-
to dive in with a project, or ‘Syntax and Semantics’ if you prefer to start
39-
small, and learn a single concept thoroughly before moving onto the next.
40-
Copious cross-linking connects these parts together.
41-
4236
### Contributing
4337

4438
The source files from which this book is generated can be found on

src/doc/book/SUMMARY.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# Summary
22

33
* [Getting Started](getting-started.md)
4-
* [Learn Rust](learn-rust.md)
5-
* [Guessing Game](guessing-game.md)
6-
* [Dining Philosophers](dining-philosophers.md)
7-
* [Rust Inside Other Languages](rust-inside-other-languages.md)
4+
* [Tutorial: Guessing Game](guessing-game.md)
85
* [Syntax and Semantics](syntax-and-semantics.md)
96
* [Variable Bindings](variable-bindings.md)
107
* [Functions](functions.md)

0 commit comments

Comments
 (0)