Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sklogic
· 10y ago · 0 comments
For handling function call frames you may consider compiling your Lisp code a bit before interpretation - do an explicit lambda lifting with an explicit closure allocation. This way you'd be free to kill each frame after a call.
Comments
[–]
jfo
10y ago
Thanks for this suggestion! I had come across this concept and it's one of the strategies I'm considering trying out to solve that problem.
[–]
sklogic
OP
10y ago
You can even implement this part of a compilation in your Lisp itself, with a little bit of a bootstrap.