TWiR quote of the week

The Rust compiler is basically 30 years of trying to figure out how to teach a computer how to see the things we worry about as C developers.

James Munns (@bitshiftmask) on Twitter

16 Likes

Sometimes a pun arises in the middle of description...

7 Likes

C is about simplicity at any cost. Rust is about simplicity at a pick-your-own-price.

eo5g on r/rust

5 Likes

I don’t like Rust being pigeon holed as a “safer C++”—it’s so much more than that.
t’s been stated more often lately. It overlooks the fact that Rust has actively opened the door to systems programming to people coming from langs like Javascript, where C and C++ never did.

9 Likes

From Is there a simple way to overload functions?

4 Likes

"Rust compilation is so slow that I can fix the bugs while it still compiles the crates"

18 Likes

Did you say that right now or is it a quote from somewhere?

1 Like

Yes, I said that but you can quote me.

2 Likes

-- Rustafarian three days ago in this thread

16 Likes

-- OptimisticPeach

8 Likes

Another self-nomination:

10 Likes

I particularly liked this interaction between /u/reyqt and @steveklabnik:

/u/reyqt: It will be fine until compiler complain [sic] about your code

@steveklabnik: "describe rust in one sentence"

4 Likes

Rust helped me grasp concepts I should have known when writing C++

-- Microsoft intern Alexander Clarke in this blog post: https://msrc-blog.microsoft.com/2019/10/16/an-interns-experience-with-rust/

11 Likes

Slightly off-topic, but I've had the experience in the exact opposite direction: having written lots of C++ and having been constantly looking for improvements and patterns that ensure safety, Rust had basically no learning curve for me.

6 Likes

As the intern honestly admits in that blog, most users of high level languages have no idea where the memory is they are using and who else is using it. It's not something they think about until they get the segfaults and corrupt data.

Can't blame them. The whole thrust behind high level languages since forever has been to abstract away all those annoying details. Works fine in Javascript but it's an abstraction too far in the case of C++.

Memory in C++ is a leaky abstraction (see what I did there :slight_smile: )

1 Like

I came from C# where I found that low level memory things were kind of swept under the rug and left to the compiler to deal with. These kinds of things interested me so I tried C++. To put it simply, I was not prepared to deal with C++, so I instead switched to Rust, and have found that dealing with the details of low level things can be nice and refreshing little niches, opposite to my experience in C++ and present compared to C# (At least at the time and my understanding of it).

5 Likes

:grin:

let txt = child.expect("this is safe")
    .get_text().expect("this is safe");

…man, starting to dig through the source code of a really large open source program is so weird. It’s like wandering around a giant cathedral that’s being constantly renovated and repaired and maintained over the course of years by a giant team of invisible crafters and architects, who mostly communicate via notes and designs pinned to the walls in various places.

From https://wiki.alopex.li/WhereRustcSpendsItsTime

30 Likes

Woah, I just came here to suggests this. I'm only half surprised someone else has before.

Aaaaaa I wrote an article because of a quote in TWiR and now a quote from it is being submitted to TWiR!

Mind blown.

7 Likes