Rust’s derive often implies inline

yossarian.net

In Rust, one of the most common ways to implement core traits (like Debug, Display, and Clone) is to #[derive(…)] them, e.g.: #[derive(Debug)] struct Widgets { foo: u32, bar: usize, } What I didn’t know until recently is that Rust … Read more

Rust’s Block Pattern

notgull.net

Here’s a little idiom that I haven’t really seen discussed anywhere, that I think makes Rust code much cleaner and more robust. I don’t know if there’s an actual name for this idiom; I’m calling it the “block pattern” for … Read more

Rust’s TUI Revolution

ratatui.rs
rust’s-tui-revolution

Atuin replaces your existing shell history with a SQLite database, and records additional context for your commands. This is a CLI utility for displaying current network utilization by process, connection and remote IP/hostname Perform binary analysis in your terminal. A … Read more

Rust’s Sneaky Deadlock With `if let` Blocks

brooksblog.bearblog.dev
rust’s-sneaky-deadlock-with-`if-let`-blocks

Rust’s Sneaky Deadlock With `if let` Blocks | Brooks Blog Home Blog 01 Nov, 2024 Rust is my favorite programming language. I’ve been writing Rust for about 6 years, from college to professionally, and I’m vocal about how helpful the … Read more

Rust’s Ugly Syntax

matklad.github.io

People complain about Rust syntax. I think that most of the time when people think they have an issue with Rust’s syntax, they actually object to Rust’s semantics. In this slightly whimsical post, I’ll try to disentangle the two. Let’s … Read more

How much does Rust’s bounds checking cost?

blog.readyset.io
how-much-does-rust’s-bounds-checking-cost?

Recently, a pair of critical vulnerabilities were reported in the OpenSSL project. Surprising absolutely nobody, the root cause of both vulnerabilities turned out to be a buffer overrun, which could be triggered by an attacker with a malicious payload to … Read more

What Is Rust’s Unsafe?

nora.codes

I’ve seen a lot of misconceptions around what the unsafe keyword means for the utility and validity of Rust and its marketing as a “safe systems language”. The truth is a lot more complicated than a single pithy tweet can … Read more

What Is Rust’s Hole Purpose?

blog.pnkfx.org
what-is-rust’s-hole-purpose?

There is an adage in the business world that goes something like this: ⊕ This quote is attributed to Theodore Levitt, but there is significant evidence that the adage predated his use of it. People don’t want to buy a … Read more