Rustacean Station  cover image

Presser with Gray Olson

Rustacean Station

00:00

Is There a Chance That I Have Uninitialized Part of Data?

When you're using a default allocator, or when you're copying to something that doesn't have an allocator, is this what I'm understanding? No, not quite. There's sort of two pieces here. One is that that memory, even once the allocator returns it to you, is starts out as uninitialized. If we want to actually make it fully initialized, we have to write a value to every location in that memory - which can be expensive. In Rust, on the VAC type, if you want to grow the size of a VAC, the only safe way to do that is to either push in values to the VAC individually, or to create some

Play episode from 40:43
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