Concurrency
9 posts
Function Tool Performance Optimization: Timeout, Concurrency, and Resource Management
Detailed Function Tool performance optimization strategies: timeout control, concurrent calls, connection pool management, and how to prevent slow Tools from affecting entire Agent’s response.

Why Does Async Rust Feel So Hard? A Deep Dive for Developers
Async Rust is powerful but frustrating. From ecosystem fragmentation and Pin/Unpin to cancellation safety and performance traps, this article breaks down the real pain points with visual diagrams and practical analogies.

Tool Execution Orchestration——The Art of Parallelism, Streaming, and Interruption
Deep dive into Claude Code’s tool execution orchestration mechanism: the complete permission checking flow, concurrent execution scheduling strategy, streaming progress propagation, and the implementation principles of user interruption.

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.

Build Your Own Mini Actor Framework: Run Concurrency Like a Coffee Shop
A hands-on guide to building a usable mini Actor framework in Rust from scratch: Actor, Addr, spawn, supervise, a simple registry, message passing, and HTTP interaction.
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.

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
