Blog Posts
Thoughts on technology, programming, and development
-
Memory Allocation in Rust: Box, Vec, and the Global Allocator
A concise dive into Rust heap allocation: how Box and Vec use the global allocator, compute layouts, grow capacity, and safely deallocate via drop glue.
-
Rust: How the Compiler Manages Lifetimes
This post explores how Rust lifetimes and ownership are enforced at the assembly level, showing when rust_dealloc is called during moves vs borrows — all without any runtime overhead.