3 ms·
In the early 2000's, Teemu Kalvas created "Lisp 500": 500 lines of C (plus a .lisp file that provides a library and goes as far as featuring a compiler, which w
by kazinator 10y ago
In the early 2000's, Teemu Kalvas created "Lisp 500": 500 lines of C (plus a .lisp file that provides a library and goes as far as featuring a compiler, which works by emitting C).
I can't find the sources for this.
Incomplete, no .lisp file: http://www.s2.org/~chery/projects/lisp500/ http://www.s2.org/~chery/projects/lisp500/
Doesn't connect: http://modeemi.cs.tut.fi/~chery/lisp500/ http://modeemi.cs.tut.fi/~chery/lisp500/
The most accessible source for this currently seems to be a "lisp5000" project in GitHub: https://github.com/jackpal/lisp5000 https://github.com/jackpal/lisp5000
This is a derivative work whose C code has been blown up to 1600+ lines.
- thomasahle 10y agoList is inherently easy to parse though.
- kazinator 10y agoThat is neither here nor there because parsing is a small sub-problem of the overall problem of providing a complete programming language run-time. Lisp500 isn't a "meta-circular" interpreter; it cannot rely on a host Lisp's implementation of things like memory management, I/O streams, hashing, compilation, ...
- morenoh149 10y agonot sure if troll
- lisper 10y agoThis is similar, but in C++: https://github.com/rongarret/Ciel https://github.com/rongarret/Ciel
- kazinator 10y agoIf you implement Arc in it as a subdialect, you get Arc en Ciel. :)
- chj 10y agoNot easy to read.
- erdifr 10y agoThe Wayback Machine seems to have a copy online. [1] 1: https://web.archive.org/web/20040305005602/http://modeemi.cs.tut.fi/~chery/lisp500/ https://web.archive.org/web/20040305005602/http://modeemi.cs...
- nickpsecurity 10y agoLook up femtolisp. It's a fast interpreter that was around 1kloc at one point. Julia is built on it. It was LISP internally last I checked.
- padator 10y agoI count more than 30 000 LOC at https://github.com/JeffBezanson/femtolisp https://github.com/JeffBezanson/femtolisp
- nickpsecurity 10y agoI was going by the original description. No longer true it seems. I'll retract it then. Thanks. :)