The Sourcegraph Podcast cover image

Taking the warts off C, with Andrew Kelley, creator of the Zig Software Foundation

The Sourcegraph Podcast

00:00

Using Rust Stokes, Is There a Way to Make It Work for You?

In rust, these are enoms, but they're taged. Each one is a bite, and the bite says, this is like the instruction. And then in a different array,. each element it contains the instructions, data nfixed size. So if you want to find out the tag, you'll look up index number one there. There's the data ts called destructive arrays. If you tried to put all this data in one array, you would be wasting seven bites of padding. The problem is that you can't model this in rust without unsafe. You have to use unsafe. Just fine. But no one wants to do that in rust because people come yell at you and make

Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner
Get the app