AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Unboxed Types - How Do You Get Better Heap Representation?
Unboxed types are structures that do not have a representation on the heap. They can be passed around or used as function parimeters by other functions. The garbage collector does not know how to deal with an unbox tupl because it doesn't contain any pointers at all. This is one way of getting rid of this problem, but there are still some restrictions in terms of what you can and cannot put into them.