TWiR quote of the week

I see a lot of “we rewrote X in Rust and it got faster” posts. I think that if you rewrite anything from scratch with performance in mind, you’ll see a significant performance improvement. I’m suspicious of how much Rust itself is needed versus the developers having some performance discipline.

By Chris Done on My negative views on Rust.

4 Likes

So why aren't we all fuzzing security-sensitive surfaces, at least for a modest number of cycles? Well that comes down to the difference between apes and programmers: apes know when they should be using tools.

-- Tiemoko Ballo @ Tiemoko Ballo

6 Likes

is turbofishing a verb?

jbe @ Replace type annotation with turbofish - #2 by jbe

7 Likes

@ZiCog on Negative views on Rust ( not mine! )

13 Likes

Over on IRLO,

9 Likes

@kornel in Type ascription - #4 by kornel

I simply love both the spirit of the joke itself, as well as the brilliant analogy with None::<T> vs. None::<U>.

9 Likes

Here's a longer version if you like :slight_smile: https://mastodon.social/web/@kornel/106529805088932347

7 Likes

About the security vulnerability in Rust that happen in C++ standard libraries too :

Rust : We have a race condition bug in our standard filesystem library !
C++ : You guys have a concurrency safe standard filesystem library ?
C : You guys have a standard filesystem library ?

source: redditmodsareshits comments on Possible TOCTOU vulnerabilities in libstdc++/libc++/msvc for std::filesystem::remove_all?

23 Likes

One member in Rust Taiwan community tries to cheer up everyone who starts learning Rust but feels it's too hard:

Nearly everyone I met had given up learning Rust for the first time. Just take a rest. Rust moves nowhere unless you drop it.

Love the pun and would like to suggest it as quote of the week.

source: @henry40408 https://twitter.com/henry40408/status/1484811813027868672

12 Likes

A common sentiment, but expressed well and coming from Amazon:

Using Rust has enabled programmers of all experience levels to contribute code without requiring reviewers to carefully scrutinize every line for safety pitfalls. We trust the compiler, and we can focus our code reviews on functionality, not language corner cases.

15 Likes

rustlang shepherds you into becoming a catgirl

2 Likes

In 1769, Euler made his "sum of powers" conjecture. In 1966, L. J. Lander and T. R. Parkin disproved the conjecture with a counterexample they found using a CDC 6600 mainframe computer. Their paper famously contained just two sentences.

In 2022, your browser running on your phone can find their counterexample and additional counterexamples in about 2 seconds.

Try it yourself at COUNTEREXAMPLE TO EULER'S CONJECTURE ON SUMS OF LIKE POWERS. The page uses Rust and WASM.

6 Likes

Also, I feel that if you are willing to spend time on a standard, better encode all you learn into the types you use. You will inevitably forget most details, and it is only a question of time that you break something because of that.

https://duesee.dev/p/type-driven-development/

5 Likes

And actually, what about nominating TWiR for TWiR QotW? :upside_down_face:

impl Not for ! (did you guess that "not never" is still "never"?)

https://this-week-in-rust.org/blog/2022/01/26/this-week-in-rust-427/

11 Likes

Why use rust?

Rust is the ideal language to use if you want your code to be able to be compiled by the Rust compiler.

15 Likes

The goal of Rust is to have the power of C++ without the scary.

3 Likes

Wait ada is calling packages "crates" too?

2 Likes

Wow, seems they are.

A year or so ago I heard Ada was going to adopt some form of borrow checker inspired by what Rust achieves. I wonder how that to along.

Congratulations @dtolnay on being the first member of the "three comma club"!

I'm assuming this is the case. I haven't checked.

12 Likes

As the temporary human substitute for the temporarily unavailable automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.

-- Mara Bos, wearing rfcbot's hat, in https://github.com/rust-lang/rust/issues/87096#issuecomment-1028792980

15 Likes