AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Keep Around the Data Structures
In the sea world, where you're doing things manually and unsafely, malic and free are the things for moving those data structures around. And then in a garbage collected language, we have some system that still got some notion of whats allocated ind what isn't allocated. We have automated techniques for computing an approximation of what are the things that you actualy nee to keep around. In tracing collection, you periodically work out what's alive by starting with the stuff that you definitely know is in use. The alternative is reference counting so each piece of memory that's in use, you keep track of how many references there are to it.