[Solved] GC in rust for scheme interpreter

If you are writing a toy interpreter its worth considering no GC at all -- just malloc without free.

Unless you enjoy writing garbage collectors its time consuming to program and not very useful on modern computers. Most toy interpreters will only allocate a few KB and even if they go wild and allocate 100MB its still less than most GUI applications.

Its also worth looking at the source code of ketos which has some nice patterns for implementing a lisp in rust.

3 Likes