4min chapter

On The Metal cover image

Jonathan Blow

On The Metal

CHAPTER

Using a Smart Pointer in a Game Is a Good Idea

In a game you have to work with an unlimited amount of memory so you have to destroy these things. If you just naively delete something then some other entity that's trying to follow that thing is now following it. Smart pointers are more about like kind of hiding things and magically stuff happens later when i don't exactly know right it's the wrong thing. So how do you actually consult that your meta program can say like well you put an entity pointer in this data structure and that data structure is not in this whitelist that I have over here? Is that better than the rest approach I don't know I think it will be but I certainly offer you no proof of that right statement I

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode