Rust
57 posts
Rust unsafe isn’t a toy — it’s a blood oath: 6 YOLO mistakes that will blow up your code
Don’t treat unsafe like a get-out-of-jail-free card. With practical examples, this article dissects 6 common unsafe pitfalls: silencing the compiler with duct tape, dereferencing random raw pointers, violating borrow rules inside unsafe, reinventing wheels, abusing unsafe impl, and skipping Safety comments — helping you build the right risk mindset and usage patterns.

Stop treating tokio::spawn as a thread! I launched 1000 tasks in 2 seconds and the system stayed calm
tokio::spawn is not a thread but a lightweight task. Under Tokio’s scheduler you build highly concurrent services with sleep, timeout and select — 1000 tasks in 2 seconds with negligible overhead.

Rust Async State Machine, Unmasked: How Future, poll, and Waker Really Work
A practical deep dive into Rust async: why calling an async function doesn’t run it, how the compiler turns async into a state machine, and how executors drive tasks forward with poll and Waker. Understand the real mechanics behind async/await.

Rust 1.89: Intel Macs demoted to Tier 2, clearer lifetimes, and new x86 intrinsics
Rust 1.89 demotes x86_64-apple-darwin (Intel Mac) from Tier 1 to Tier 2, adds the mismatched_lifetime_syntaxes lint, constant generics ‘_’ inference, and a wave of new x86 intrinsics.

Rust Cluster Commands: Managing Distributed Systems Like Conducting an Orchestra
Learn how to implement cluster-level control commands in Rust distributed actor systems, making node management as elegant as conducting a symphony

Is the Electron Era Ending? Rust GPUI Lets You Stop Compromising on Cross‑Platform
Electron made desktop cross‑platform easy; Rust GPUI makes it feel native fast. This beginner‑friendly briefing explains the core idea, the minimal runnable path, and a humane migration plan.

When Your Actor Cluster Grows Up, It Needs Sharding
How do you manage 100,000 Actors across 10 machines? Let’s talk about consistent hashing
I Told Old Zhang His Rust Service Might Be 10x Slower - He Almost Spit Coffee in My Face
Rust service suddenly 10x slower? The problem might be hiding in Serde macros. This article walks through a real story to help you identify and fix performance issues caused by Serde serialization.

Why Rust Makes C++ Programmers Lose Sleep at Night: Lessons from My Migration Journey
A C++ developer with 5 years of experience shares real insights from switching to Rust. From memory safety to concurrency, these 10 features completely changed my perspective on systems programming

Village Gossip Protocol! Rust Actor Node Discovery & Gossip Implementation
Manual node configuration? That’s Stone Age! Modern distributed systems know how to find friends, chat, and gossip automatically