Reading up on memory-management
4 deep · digging since jan 25
- Do not buy RAM, compress!
Enabling zram or zswap on Linux compresses RAM to increase effective memory capacity, achieving compression ratios up to 1:4 with minimal CPU overhead.
- Go's growable stacks vs. Rust's Box::pin
Go's goroutines use movable stacks that grow automatically, while Rust's need Box::pin because fixed stacks require compile-time size computation for async state machines.
- What is malloc doing, anyway?
A detailed walkthrough of how glibc's malloc works under the hood, building a toy allocator step-by-step to illustrate heap management, syscalls, fragmentation, and performance trade-offs.
- Letting Claude play text adventures
The article describes letting Claude play the text adventure Anchorhead, highlighting how memory management and context limitations hinder performance.