Get the latest tech news
Lisp interpreter with GC in <750 lines of Odin (and <500 lines of C)
Moved to Forgejo! Contribute to krig/LISP development by creating an account on GitHub.
For more details on how it works, Andy Wingo has a great post about this kind of garbage collector on his blog (wingolog). The version presented in the README is slightly tweaked from the one that can be found in tests/lisp15.scm in order to more closely resemble early LISP rather than scheme:#t and#f are written as t and nil. To prevent reading from continuing indefinitely, each packet should end with STOP followed by a large number of right parentheses.
Or read this on Hacker News