(How to Write a (Lisp) Interpreter (In Python)) (2010)
- timonoko - 800 sekunder sedanOne of those exercises that are now just boring, because AI does it better.
Gemini did write Lisp-1 interpreter in Linux-assembly the other day. It was ready to implement garbage collection and compiler and all shit, but that was just depressing from human point of view.
My Lisp from 1975 was actually used in real world and highly lucrative. Gemini could read the source code, but it told that my code was piece of shit and cannot be implemented in 64-bit world without drastic changes, so it made an example. But that version was just too advanced and too complex as a study subject. There are already enuff good Lisps in the world, methinks.
- chombier - 6667 sekunder sedanIf you ever wondered how to write a programming language, this is probably the best resource to get started (and then of course Crafting Interpreters).
See also part 2 https://norvig.com/lispy2.html
- zahlman - 8382 sekunder sedan(how-to in-python (write (interpreter lisp)))
- azhenley - 7658 sekunder sedanWriting a Lisp is one of my favorite projects. I try to do it every year or two, taking a different approach each time.
- tosh - 8889 sekunder sedanI can't recommend highly enough to implement a simple lisp (or a forth).
Illuminating experience and it will also help you see (among many other things) the parentheses in a different light.
- librasteve - 5893 sekunder sedanor you could just use Raku and its âsurprisingly good lisp impressionâ:
- urcite_ty_kokos - 8727 sekunder sedanAppreciated the title xD
- joshuamorton - 5406 sekunder sedanThere are edge cases where this fails, but `def parse(s): return json.loads('['+re.sub('([")])\s*(["(])','\g<1>,\g<2>',re.sub('[^()\s]+','"\g<0>"',s)).replace('(','[').replace(')',']')+']')` is a surprisingly robust lisp parser.
- e12e - 8492 sekunder sedan(2010)?
- - 4109 sekunder sedan
- timonoko - 5400 sekunder sedan[fagged]
- RedCinnabar - 4191 sekunder sedanMan these kind of resources have aged really bad in the age of AI.
Nördnytt! đ€