2 ms·
I've seen at least one implementation that uses explicit regions; before doing something with say a bunch of cons operations, you allocate a region, all the eva
by retrac 5y ago
I've seen at least one implementation that uses explicit regions; before doing something with say a bunch of cons operations, you allocate a region, all the evaluation is done in the region, it returns a result to the parent region, and the region is then manually dropped, freeing the space used. Set up another region for the next large evaluation and so on.
Almost C style, and I'm sure just as error prone, but it seems like it could work.
https://github.com/wolfgangj/bone-lisp https://github.com/wolfgangj/bone-lisp