Idorobots / spartan

A small Lisp dialect that serves me as a test bed for programming language features.
MIT License
14 stars 3 forks source link

Allocate a single env for all fix-bound closures. #113

Closed Idorobots closed 3 years ago

Idorobots commented 3 years ago

This should considerably simplify the closure conversion code without introducing much overhead. Assuming that the letrec conversion is run beforehand that should only limit the common env to stuff that would be retained in memory regardless of the env shape.