Rust
42 posts

Brave Browser Rewrites Ad Blocker in Rust, Slashes Memory by 75%
Brave 1.85 rewrites its ad-blocking engine using Rust and FlatBuffers, reducing memory usage from 60MB to 15MB. Here’s how they did it.

Stop Writing Some(...): The impl Into<Option<T>> Trick in Rust
Learn how to use Rust’s Into Trait with Option to let functions accept both raw values and Option types, eliminating tedious Some() wrapping.

Rust 1.93 Released: musl Upgrade, Assembly Conditional Compilation, Zero-Copy Suite
Rust 1.93 is out with all musl targets upgraded to 1.2.5, #[cfg] conditional compilation in assembly, global allocators can now use TLS, and zero-copy APIs stabilized.

Rust GCC Compiler Backend: Install rustc-codegen-gcc with One Command
rustc-codegen-gcc is now officially part of rustup nightly components. Linux users can now experience GCC-compiled Rust code with a single command. No more manual compilation, no more environment setup hassles—it’s like giving Rust a new engine.

Rust's Standard Library Now Runs on GPUs: What Did They Actually Do
VectorWare team made Rust’s std library work on GPUs. You can now use println!, read files, and get system time inside GPU kernels. Here’s how they pulled it off.

Const Generics: This Rust Feature Cut Our Code by 85%
From 8,347 lines to 1,243 lines — the rebirth of a cryptography library

The Rust Async Trap Everyone Steps On Once
It compiles. It runs. It even passes stress tests… until production catches fire. Let’s talk about that classic async Rust pitfall everyone hits.

Rust Design Patterns: 3 Best Practices Senior Backend Engineers Always Use
Discover the Rust design patterns senior engineers swear by: Newtype pattern prevents invalid states, ownership design reflects system boundaries, enum error handling makes failures predictable. Master these Rust best practices to build rock-solid backend code and say goodbye to midnight incidents.

I Rewrote Our Python Data Pipeline in Rust: 3 Hours to 4 Minutes, 40x Faster
A real-world case study of rewriting a Python data pipeline with Rust + DuckDB. From 3-hour daily ETL jobs to 4-minute runs, memory usage dropped from 12GB to 600MB, and server costs cut by two-thirds.
Rust Compiler Pipeline Refactor: 35% Faster Build Times, But There's a Catch
Our team’s CI dropped from 42 minutes to 27 minutes just by upgrading the Rust compiler. This journey taught us one thing: performance optimization rewards those who measure, punishes those who guess.
