Rust
34 posts

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.

Rust Lifetimes Scare Away 90% of Programmers? One Library Analogy Gets You There in Seconds
Compiler errors got you running? Relax. Rust lifetimes aren’t scary monsters—they’re invisible guardians ensuring your code never crashes. This 5-minute guide beats the official docs.

Rust Performance Pitfalls: When Rust Runs Slower Than Python
Rust performance optimization in practice: I watched my Rust rewrite get crushed by Python. The problem was data structure choice.

From 800ms to 90ms: How Rust Rayon Saved My Multithreading Nightmare
A real Rust concurrency case study: replacing manual threads with Rayon’s work-stealing scheduler and getting a 9x speedup.

io_uring Guide: Building High-Performance Servers with Rust and Async IO
A friendly deep-dive into Linux io_uring async IO technology, learn how to build high-performance servers with Rust and escape syscall bottlenecks
Rust mmap Memory-Mapped I/O: Why Reading Files Can Be as Fast as Accessing Memory
A plain-English guide to Rust mmap memory-mapped I/O. Why is it 5-10x faster than traditional Rust file reading? How does zero-copy achieve Rust performance optimization? This memmap2 hands-on tutorial uses real-life analogies to help you understand this seemingly mysterious low-level technology.

Rust 1.90 Upgrade Crash Report: My Codebase Didn't Make It
Performance tanked after upgrading to Rust 1.90? Here’s why and how to claw it back.
Running Rust Async on Windows? Meet the Little Devil in the Closet: Device Afd
Why does Rust async work on Windows? Unveiling Microsoft’s undocumented AFD driver with real-world analogies to understand Windows async programming under the hood

Rust Macros 2.0 Starter Guide: Build Code Like Lego
A panoramic Rust Macros 2.0 guide: unify macro namespaces, master the TokenStream pipeline and macro hygiene, and migrate from macro 1.0 to macro 2.0 metaprogramming with practical examples.