Hacker News new | ask | show | jobs
by sshine 971 days ago
Region-based allocation by itself is definitely something to write about.

https://en.m.wikipedia.org/wiki/Region-based_memory_manageme...

The SBCL implementation is a very self-documented example, which is helpful if you wish to make arena-based allocation available in your language.

1 comments

That Wikipedia article is confusing to me, because I’m really used to “region” being used to refer to type-system-level allocation tracking, Tofte&Talpin style (even if the T&T hope of inferring everything didn’t really work out, and the Rust tradition decided to rename the concept to “lifetimes”). “Arena” seems to be a more common term for a purely runtime construct.