梦兽编程
AI_SUITE

[ SECTION / LANGUAGES ]

Rust

Rust systems programming, async, and engineering practice.
66 POSTS
01 LANGUAGES / 2026.03.22 / 5 MIN 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 … 02 LANGUAGES / 2026.03.21 / 11 MIN 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 … 03 LANGUAGES / 2026.03.16 / 4 MIN Rust 1.94 is Here: Sliding Window Pattern Matching Makes Code Elegant Rust 1.94 brings three major updates: sliding windows destructured into named variables, Cargo.toml now supports multi-line syntax, and the Golden Ratio finally joins … 04 LANGUAGES / 2026.03.15 / 6 MIN From 1GB to 40MB: How Rust Cracks Memory Management Same microservice, same endpoints, but memory usage dropped from 1GB to 40MB after rewriting Node.js to Rust. That's 25x less memory. How does Rust pull this off? Let's … 05 LANGUAGES / 2026.02.21 / 6 MIN From Zero to 1.8M Connections: A Rust/Tokio Gateway's Real Scaling Journey This isn't a Rust success story about how fast it is. It's a postmortem about when concurrent connections cross from hundreds of thousands to millions, schedulers, … 06 LANGUAGES / 2026.02.16 / 9 MIN 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 … 07 LANGUAGES / 2026.02.15 / 9 MIN 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 … 08 LANGUAGES / 2026.02.10 / 10 MIN Stop Rewriting! The Rust FFI Sandwich: Keep Your C Code Running While You Add Safety Rust FFI Sandwich incremental migration: stop the big-bang rewrite, wrap your C code in Rust safety layers, and migrate one function at a time while production keeps … 09 LANGUAGES / 2026.02.07 / 10 MIN 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 … 10 LANGUAGES / 2026.02.04 / 9 MIN 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.