Rust Rc, Arc, RefCell: Shared Ownership & Concurrency

Master Rust’s shared ownership and runtime checks. Use Rc/Arc for multiple owners, RefCell for interior mutability, and Mutex/RwLock for thread-safe state. Includes a DAG example and a clear look at Box::leak, plus when to prefer static checks vs dynamic checks.

August 11, 2025 · 11 min · Garry Chen

C++ Smart Pointers Tutorial: Build Custom Implementation

Build smart pointers from scratch in C++ - learn templates, move semantics, reference counting, and RAII patterns for memory management.

June 13, 2025 · 12 min · Garry Chen