2min chapter

Signals and Threads cover image

Memory Management with Stephen Dolan

Signals and Threads

CHAPTER

Polymorphism in the Unboxed Types

The idea of an unboxed struct is that it's just something which is wider than a normal data value. So there's never any sentation of it on the heap thit's just, if you have a local variable of type unbox pupil of two ints, then that's the same as having two local variables. They live in separate registers. If you pass them to a function that takes up two of its argument lots instead of taking up one, it has to return a wider structure and so on. The idea is that these things will work like normal ocamia s, but will never be anywhere other than the local variable stock or similar goit.

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