Rust
42 posts

tokio::select! Finally Gets rustfmt Support: A Hands-On Look at better_tokio_select
The tokio::select! macro has always been a blind spot for rustfmt. better_tokio_select uses match syntax to fix this, so your async Rust code can finally be auto-formatted.

Rust is Taking Over GPU Programming: 239K Lines Replacing the Entire CUDA Ecosystem
Oxide Computer released OxiCUDA, a pure Rust implementation of the complete NVIDIA CUDA software stack. 239K lines of safe Rust code, 28 crates, zero C toolchain. This is production-ready code, not a proof of concept.
![Rust #[must_use] attribute: three usage patterns on structs, functions, and traits](https://rexai.top/images/rust-must-use-attribute/rust-must-use-cover.jpg)
Rust's #[must_use]: Making Sure Your Return Values Can't Be Ignored
Rust #[must_use] attribute explained: put it on structs, functions, or traits to force callers to handle critical return values. Compile-time warnings prevent transactions and payments from being silently dropped.

Rust 10x Faster Than Spring? I Ran the Benchmarks. The Truth Is More Complicated.
Behind the benchmark numbers are three competing models: GC pauses, JIT warmup, and AOT compilation. Here’s the data-driven breakdown of when to use Rust versus when Quarkus Native Image is the smarter choice.

We Compared 6 Outage Reports Before We Understood What Async Rust Actually Prevents
CPU was fine, memory was stable, no recent deploys — but error rates hit 3.4%. After comparing 6 outage reports across Node.js, Go, and Java, we finally understood how async systems actually fail, and where Rust+Tokio’s compiler draws the line.

Don't Underestimate Rust Enums: A Complete Hands-On Guide
Rust enums are far more than a set of constants. They carry data, drive state machines, replace null, and unify error handling. This guide walks you from basics to recursive enums with real code examples.

500 Lines of Rust, 10 Seconds to Train: How Simple Is Building a Neural Network from Scratch?
Build a spam classifier neural network with Rust and Hugging Face’s Candle framework in just 500 lines of code. From tokenizer to embedding to Softmax, every step explained like a cooking recipe. No GPU, no Python, runs on any laptop.

4000 Pages Per Second: The Rust PDF Library That's Changing the Game
oxidize-pdf: A pure-Rust PDF engine with zero C dependencies, a 5MB binary, and performance that leaves Chromium and Java stacks in the dust.

PostgreSQL Query Parsing Too Slow? PgDog Ditched Protobuf and Got 5x Faster
PgDog is a Rust-based PostgreSQL proxy. They discovered Protobuf serialization was the real bottleneck in SQL query parsing — not the Postgres parser itself. By replacing Protobuf with direct C-to-Rust FFI bindings, they achieved 5-10x faster parsing.

Rust Compiler Error 'cannot borrow as mutable'? Think of s.clear() as 'Tearing a Book'
Why does s.clear() cause a mutable borrow error? This article uses a ’library book’ analogy to help you thoroughly understand Rust’s borrowing rules and lifetime conflicts.
