by shaunxcode · 5y ago · 0 comments
It's really easy to make something that kind-of looks like CL by use of clever smoke and mirrors, and many "Lisp in X" projects do so. See e.g. parenscript's LOOP implementation.
Other notes:
- Implementing CLOS is a massive undertaking, but there are two reasonably good portable implementations of it (Closette and PCL).
- The numeric tower is sufficiently loosely specified that you can typically get away with using any existing bignum library.
- LOOP and FORMAT are annoying to implement just because they are big DSLs. I'm also not aware of any portable implementations of them (though SICL might have one).
- Most of the rest of the effort will be spent on implementing things that interact with the system. Streams/files/pathnames are all annoying
Also, if you're willing, it's possible to just lift a bunch of code from SBCL/CMUCL due to permissive license.
MIT LOOP https://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/...
few other versions including symbolics update to MIT which is supposedly closer to ANSI: https://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/...
Shouldn't it be possible to implement most of CLOS in CLOS itself and thus reuse already existing CLOS-code?