When Zig Outshines Rust - Memory Efficient Enum Arrays
- Adrian Alic tl;dr: Adrian discusses the issue of memory fragmentation in Rust, particularly when using Enums with different-sized variants explaining that one of the biggest motivators for efficient Enum arrays has been compilers, as "Big ASTs can incur a hefty performance penalty during compilation." The article suggests using a "struct-of-arrays" (SoA) approach or creating one vector per variant, termed as "array of variant arrays" (AoVA), to mitigate fragmentation.featured in #450
featured in #401
The Curious Case Of A Memory Leak In A Zig Program
- Krut Patel tl;dr: “This is a small exposition on an unexpected "memory leak" I encountered when writing a Zig program. We will mainly focus on a very simple allocation pattern and see how it causes a "leak" when using a particular allocator from Zig's stdlib.”featured in #399
featured in #255
featured in #233