TWiR quote of the week

Yeah, I just saw that.

Here's a more specific Bergstrom quote:

I could not get 85 percent of this room to agree that we like M&M's. Eight-five percent of people believe that their Rust code is more likely to be correct than the other code within their system. … I've been through more than one language survey in my life and I've never seen those kinds of numbers before.

Rust developers at Google twice as productive as C++ teams • The Register

9 Likes

Renault want to sell cars with rust!

Frédéric Ameye: https://www.youtube.com/watch?v=Z1xMvm3eS4k

2 Likes

As a former JavaScript plebeian who has only been semi-recently illuminated by the suspiciously pastel pink, white and blue radiance of Rust developers, NOT having to sit in my web console debugger for hours pushing some lovingly crafted [object Object] or undefined is a blessing.

Julien Robert on https://oneirical.github.io/bevyrage/

7 Likes

@kpreid here on urlo.

4 Likes

What I'm suggesting is just a lint against the specific pattern of calling a constructor function then a function called as_ptr or as_mut_ptr, then a semicolon. What I'm imagining targeting here is just the case where someone creates a String or a Vec but then their IDE suggests that they apply as_ptr or as_mut_ptr as a conversion function, because the IDE is stupid and just playing Type Tetris.

@saethlin in https://github.com/rust-lang/rust/issues/123613#issuecomment-2043097023

1 Like

@DanielKeep here on URLO regarding AV software causing execution issues

10 Likes

Bit of a shameless self-promotion, but here we go!

"The learning curve for Rust is relatively steep compared to other languages, but once you climb it you'll never look down."

@bd103 on Mastodon

3 Likes

A RefCell is essentially an object pool of size 1 that errors when you try and pull from it when it's empty.

VirginiaMcCaskey on r/programming.

2 Likes

"I'll never!" "No, never is in the 2024 Edition." "But never can't be this year, it's never!" "Well we're trying to make it happen now!" "But never isn't now?" "I mean technically, now never is the unit." "But how do you have an entire unit if it never happens?"

from Jubilee on Zulip: https://rust-lang.zulipchat.com/#narrow/stream/268952-edition/topic/should.20have.20been.202025.20edition/near/435845944

5 Likes

I was thinking about analogies with Rust:

Rust and its borrow checker are like proper form when lifting boxes. While you might have been lifting boxes "the natural way" for decades without a problem, and its an initial embuggerance to think and perform proper lifting form, it is learnable, efficient, and prevents some important problems.

Or more succinctly:
C/C++: It'll screw your back(end).

And got the great reply:

  1. there’s a largish group of men who would feel their masculinity attacked if you implied they should learn it
  2. while it's learnable finding usefully targeted educational resources are hard to come by
  3. proper form while lifting boxes are a really terrible way to model graphs
6 Likes

Unfortunately, most people seem to have taken the wrong lesson from Rust. They see all of this business with lifetimes and ownership as a dirty mess that Rust has had to adopt because it wanted to avoid garbage collection. But this is completely backwards! Rust adopted rules around shared mutable state and this enabled it to avoid garbage collection. These rules are a good idea regardless.

From References are like jumps by @withoutboats

10 Likes

I also like this one, from the same article:

In other words, I do not want the compiler to just insert code to uphold the bare minimum guarantees, I want the compiler to check my work for me and assist me in developing an algorithm I can confidently assert is right.

(For example, I don't want the compiler to just make all the operations unordered and call data races solved, as in java, but to have it help me not write data races in the first place.)

7 Likes

@fasterthanlime damn. They really out here like:

- do crimes
- fast builds
- the code you actually want

Pick 2

From https://hachyderm.io/@mgattozzi/112488056436761408

4 Likes

I’ve said it before and I’ll say it again: as a child of OCaml and C++, Rust currently is the best language for production compiler-shaped things.

-- matklad @ How We Migrated Our Static Analyzer From Java To Rust | Lobsters

Something about this phrasing just speaks to me.

10 Likes

I like explicit but I hate noise...

By dlevac on reddit.

1 Like

show me the code, comments might lie, but the code never does

Where did you get that quote from @radumarias?

1 Like

don't remember exactly, long time ago from the internet somewhere on some forum

If there’s a backdoor attack lurking in the crates ecosystem, then it’s lurking pretty deep at present. The popular crates that we all rely on day to day generally appear to be what they say they are.

2 Likes