Skip to content
0:00 / 0:00

#memorysafety#cpp#zig

Memory safety in C++, Zig, & Rust (part 1)

Context Free

24K subscribers • 25 videos on Hallway

YouTube
  • Recommended by 2 people: 1 on Lobsters and 1 in engineering communities.
  • Linked in the descriptioncontextfreecode/safety

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 Outro

Why it's here

2 people recommend this

What 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

Memory safety in C++, Zig, & Rust (part 1)

pushcxon Lobsters • Recommends

Memory safety in C++, Zig, & Rust