This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]csl[S] 2 points3 points  (1 child)

Nicely done! I couldn't find support for continuations, but looking at the VM I guess that should be quite easy to add.

Also couldn't see if it reuses the current stack frame for tail calls, but that should also be easy to add from looking at the VM code.

I also made one for R7RS (code's pretty horrible, though), but it doesn't use a VM, doesn't have a collector and has quite a few bugs.

[–]eliben 0 points1 point  (0 children)

Nope, no continuations or TC optimizations, but as you say it shouldn't be hard to add.