TWiR quote of the week

The purpose of pin is to have unsafe code in one crate make guarantees to unsafe code in another crate, possibly with non-unsafe code in the middle

by Alice Ryhl in the community Discord server

9 Likes
12 Likes

This one's a bit old, but it relates to my current situation very much:

That’s one of my general complaints with serde: it’s either super convenient and exactly what you want, or it’s a screaming nightmare. There’s no in-between.

- DanielKeep, Catchall variant in Serde

5 Likes

Many thanks for all your answers, I am very pleased to have a chat with you.

@thomas-hugel, after asking a question about green threads and getting nice and informative replies.

I'd like to include the whole quote, but it's two paragraphs. This is the best takeaway, IMHO.

5 Likes

From Did Rust make the right choice about error handling?

11 Likes

But then again, what isn't hard as a beginner?

1 Like

Brilliant characterization by analogy!

5 Likes

Memoize function without cloning
Most functional languages use garbage collection, so memory management is not a concern there. In Rust we need to do something explicitly.

Explaining why the borrow checker is complaining and how to deal with it.

3 Likes

A concise description of what I find compelling about Rust's approach to correctness.

20 Likes

One problem I've had, in general and not with just Rust, is that people can find a way to do anything with anything. I've seen people do some horrific stuff with their hammers just to prove they don't need a screwdriver.

seen on /r/rust

4 Likes

[SIMD is] the perfect knife edge between awe and expletives.

-- Stephen Merity @ https://state.smerity.com/smerity/state/01E8RNH7HRRJT2A63NSX3N6SP1

4 Likes

That's the way I feel about the borrow checker.

Rust enables belligerent refactoring – making dramatic changes and then working with the compiler to bring the project back to a working state.

So true : https://blog.knoldus.com/some-extensive-projects-working-with-rust/

15 Likes

Can this be the quote of the week, or do we run into weird copyright stuff?

16 Likes

xkcd is under Creative Commons Attribution-NonCommercial 2.5, so I assume the question would be whether TWIR wants to incorporate NC-licensed content.

By @alice

19 Likes

Rust was built by a secret society of Haskell developers to teach programmers how to use monads.

From https://www.reddit.com/r/rust/comments/gvjccd/why_f_rust_and_others_use_option_type_instead_of/fsqgx48/

7 Likes

We could absolutely link to it, and we could quote the text (since it's not like any of the other quotes are licensed under an Open Source license), but I don't think we could embed the image without license issues.

I'd propose linking it separately, and not making it the quote of the week.

3 Likes

"I have to say contributing to Rust way less scary than I expected with all the people answering questions"

7 Likes