Holy cow this is —structurally, not just expression— some of the worst C code I have ever seen, with the abuse of the 'double' type, 'T' cast that looks like a declaration, endian dependency, and strict aliasing violations galore… does this even work on a modern compiler? o.O
Lisp in ~100 lines of Python:
https://flownet.com/ron/l.py
A better starting point:
https://github.com/Robert-van-Engelen/tinylisp/blob/main/tin...
Holy cow this is —structurally, not just expression— some of the worst C code I have ever seen, with the abuse of the 'double' type, 'T' cast that looks like a declaration, endian dependency, and strict aliasing violations galore… does this even work on a modern compiler? o.O
It does not, because there is a syntax error on line 81 (extra close parenthesis):
https://github.com/Robert-van-Engelen/tinylisp/blob/2d0fb35b...
Brought to you by this marvellous commit with the message "update",
https://github.com/Robert-van-Engelen/tinylisp/commit/40c6c0...
Yeah. It's munged to fit in 99 lines.
Previously:
* https://news.ycombinator.com/item?id=32100035
* https://news.ycombinator.com/item?id=32095655
and
* https://BI6.US/CO/N/20250420.HTML#/042402
can it execute the y-combinator?
It doesn't appear to, but you could always add this to the included common.lisp file: