Rustacean Station  cover image

Presser with Gray Olson

Rustacean Station

00:00

What Is Uninitialized Memory?

Rust's rest virtual machine can specify behavior as undefined. This allows it the flexibility to optimize things, and uninitialized memory is an interesting case of this. When you get memory back from an allocator, it starts as uninitial; when you write to it, it becomes initialized. The compiler knows in this case that reading from unInitialized memory is illegal. It's undefined behavior.

Play episode from 30:34
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app