I wrote a walkthrough of implementing a memory allocator from scratch in Rust.
The article covers how memory management works, how bump allocation works, and how to implement an allocator in Rust. It progresses from a toy example into a working allocator, covering the problems and design decisions along the way, as well as benchmarking the final product.
Have you ever written your own allocator before? Why/why not?