News for hackers. Stuff that matters.
Re:Garbage Collection in a Large Lisp System (1984) [pdf] by r9550684 on Monday August 21, 2023 @08:40PM (#37217144)
I find it odd that Common Lisp implementations for c machines never experimented with region-based memory management. even allegro Common Lisp doesn't support it. regions have been extensively explored by the ml family of languages, with at least ML Kit implementing them, but I guess ml people (for example MLTon provides rationale for why they don't support them) concluded that they are bad for you. still for systems that require hard realtime guarantees, like video games, it's a handy feature.

personally I fist encountered this idea in a video game: Abuse, a 2d side scroller for dos, had its own lisp interpreter, which had separate "spaces" for objects of various permanence, with EVAL, that ran per-frame, discarding its garbage upon completion.

years later I learned that lisp machines also used "areas" extensively to great effect[0]. by allocating to specific area you could affect paging, improve paging locality, have custom gc behavior and of course invalidated an area in a single call.

[0]https://tumbleweed.nu/r/lm-3/uv/chinual.html#Areas

There are no comments on this comment yet.