u/kristoff-itVP of Communityin r/Zig • Recommends
Memory safety in C++, Zig, & Rust (part 1)
24K subscribers • 25 videos on Hallway
Intermediate. Assumes working knowledge.
58K views4 years ago2 recommendations
Programming languagesSystems programmingMemory managementC++Zig
A comparison of how C++, Zig, and Rust handle memory safety, initialization, and out-of-bounds access.
Part 2: youtu.be/-VbVcpZnQss Code: github.com/contextfreecode/safety Intro == C++ (cpp) == Returning expired memory Pointers and values Analyzing memory errors Secret frees Out of bounds Initializing values == Zig == Initializing values Out of bounds Explicit destruction and memory leaks == Rust == Trying to return locals Trying to ignore secret frees Trying to set parent pointers Out of bounds OutroWhat people say. Recommended as a clear, side-by-side comparison of memory safety models across C++, Zig, and Rust.
u/kristoff-itVP of Communityin r/Zig • Recommends