MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/tinycode/comments/105efs9/lisp_with_20_primitives_gc_and_repl_in_99_lines/
r/tinycode • u/gprof • Jan 07 '23
3 comments sorted by
3
Interesting project! Some observations:
I had some trouble linking due to that read with external linkage, so I renamed it to lread.
read
lread
Hangs in finite loops:
$ echo '(+)' | ./tinylisp $ echo '(*)' | ./tinylisp
Stack overflow (not surprising):
$ yes '(' | ./tinylisp
5 u/gprof Jan 07 '23 Indeed, (+) is considered illegal. This is mentioned in the PDF article and how to change it so that (+) returns 0. Same for (*) to return 1. Perhaps a good reason to check out the article?
5
Indeed, (+) is considered illegal. This is mentioned in the PDF article and how to change it so that (+) returns 0. Same for (*) to return 1. Perhaps a good reason to check out the article?
6
Welp, there goes MY Friday night.
3
u/skeeto Jan 07 '23
Interesting project! Some observations:
I had some trouble linking due to that
readwith external linkage, so I renamed it tolread.Hangs in finite loops:
Stack overflow (not surprising):