by kluck · 9y ago · 0 comments
And if anyone cares, here is nice Shirt with McCarthy on it ;) https://www.teepublic.com/t-shirt/666689-john-mccarthy-lisp-...
I think it should be mandatory for CS students to implement their own little Lisp using the building blocks McCarthy described! Instead they are learning Java and ist crappy OO...
PS: Sorry, I am a Java OO developper. But I like to learn :)
https://www.amazon.com/Lisp-Small-Pieces-Christian-Queinnec/...
But there's plenty more.
[natives.label, factorial,
[natives.lambda, [n], [natives.cond,
[ [natives.eq, n, 0], 1 ],
[ true, [natives.times, n, [factorial, [natives.plus, n, -1]]] ]
]]
]
It took me about 5 hours to get the whole think working from his paper, and I learned a lot in the process.Edit: He also links to his Scheme interpreter in Java in that article: http://norvig.com/jscheme.html
At least as many as there are TODO app examples for web frameworks...
A Lisp implemented through JavaScript arrays.
That used to be part of the intro course at MIT and Berkeley, but they've since switched to Python: https://web.archive.org/web/20091209071455/http://danweinreb...
* There are those for whom writing an AST acting on lists of lists of lists comes naturally. They have Lisp. For us idiots who model things in terms of state and behavior, and who prefer to let the compiler do the hard work of figuring out an AST representing our ugly, step-by-step solution, there is "crappy OO".
https://github.com/theoremprover-museum/LCF77/tree/master/sr...
https://github.com/theoremprover-museum/HOL88/tree/master/sr...
He worked on both the Lisp and Smalltalk low-level implementations at Xerox PARC.