Rust

Photograph of a Rust crab mascot plushie
2025-09

I like programming in Rust, a thing that can’t be said of any other programming language, least of C++ which I hate with passion.


https://users.rust-lang.org/t/twir-quote-of-the-week/328/123

Rust code takes so long to write that adding bugs would be too much effort, not to mention how slow the compiler is. It’s easier to just write it correctly the first time.

<@huon> I’m really keen for postfix ?, so particularly strange pieces of code can have foo()???
<@huon> (and ??? would be the right reaction to something returning Result<Result<Result<T, A>, B>, C> it all fits so well)
if at first your code doesn’t succeed, try!(try!(again))

I’ve gotten the impression that Rust avoids the term “class” altogether lest anyone think more OO-ly
unfortunately Rust still has a fairly oppressive cast system

The Never type is named after its stabilization date.

Writing code in Rust makes me feel like I have an obligation to make code as fast as possible in a way other languages don’t, just by surfacing the costs better. Sometimes I need to remind myself that actually it’s fast enough already.


icefoxen

…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.


Bryan Cantrill

When pondering a thorny problem, the late Roger Faulkner would say he was waiting for the code to tell him “how it wanted to be written.” I have found this to be especially true for Rust


2025-12

Rust programmers are the best C++ programmers, but perhaps Zig programmers are the best Rust programmers. Zig is the “simplest” language of the three, but counterintuively that means you have to be a great programmer to get the same effect with it. Yet choosing to program in Zig is extremely voluntary, only the most dedicated programmers even try it out. Rust is a bit similar, in the middle. It takes dedication to try out Rust and many things are “more difficult” with it. The fact that a mediocre C++ programmer can quickly put together a complex application is not worth much because it will be a bug-ridden mess. But if a person can do a complex application in Rust they are definitely a pro, and if they can do it in Zig we are talking world-class. (I’m writing this as a Rust person who dislikes programming Zig, or perhaps just hasn’t been properly introduced yet.)