
On Thu, Dec 16, 2021 at 6:03 AM Eric Snow <ericsnowcurrently@gmail.com> wrote:
* using the ref count isn't the only viable approach; another would be checking the pointer itself + put the object in a specific section of static data and compare the pointer against the bounds + this avoids loading the actual object data if it is immortal + for objects that are mostly treated as markers (e.g. None), this could have a meaningful impact + not compatible with dynamically allocated objects
Sorry if this is a dumb question, but would it be possible to solve that last point with an immortal arena [1] from which immortal objects could be allocated? None/True/False could be allocated there, but so could anything that is more dynamic, if it's decided as important enough. It would still be possible to recognize them by pointer (since the immortal arena would be a specific block of memory). ChrisA [1] That sounds like something from Norse mythology, actually