from Hacker News

Roll A Lisp In C – Reading (2020)

by swatson741 on 5/12/24, 10:15 AM with 21 comments

  • by anonzzzies on 5/12/24, 2:20 PM

    I have been using sbcl for a very long time and never knew that the core is a small optimised c part and the rest all written in Lisp. Not totally self hosted but quite close.

    Now I have been searching for an overview of the CL commands that make up that core which would be needed to implement CL (run the rest), but I cannot find any. Anyone here knows?

  • by vendiddy on 5/12/24, 1:16 PM

    Anyone have a good reference on how write the interpreter itself?

    I'm looking to write a really basic one in javascript except using plain arrays. No parsing or tokenizing for me.

  • by okl on 5/12/24, 1:11 PM

    Tokenizer is unsafe because the loops are not bounded to the array sizes, 128 and 32 respectively.