Tech News
← Back to articles

Lisp interpreter with GC in <750 lines of Odin (and <500 lines of C)

read original related products more articles

komplott / komplodin

A tribute to:

Recursive Functions of Symbolic Expressions and Their Computation by Machine, Part I

(as found in paper/recursive.pdf )

A micro-subset of scheme / the original LISP in a single C file: komplott.c

! New in 2025!

The LISP interpreter translated to Odin in komplodin.odin . More lines of code, but I am less familiar with the language and am translating directly from C, so there are probably ways to make it a cleaner solution.

When I posted this to lobste.rs, gingerBill (creator of Odin) was kind enough to make a more direct translation of the C code into Odin, which can be viewed in this gist: komplott.odin.

Since the lobste.rs posting, I have tweaked the Odin version a bit more, and so it differs from the C version quite a bit in the implementation details. I've tried to keep the output and functionality of the two programs the same though.

Features

... continue reading