4 ms·
Good Lisp code to read
- plinkplonk 16y ago"Good X code to read" references are always useful. I am looking for beautiful Scala code to read. Any pointers greatly appreciated.
- fogus 16y agoBeautiful is relative, but I am quite proud of my implementation of a BASIC DSL in Scala. http://github.com/fogus/baysick http://github.com/fogus/baysick
- briancooley 16y agoHadn't seen this one before: http://www.cs.northwestern.edu/academics/courses/325/readings/graham/graham-notes.html http://www.cs.northwestern.edu/academics/courses/325/reading... Useful stuff in there.
- zandorg 16y agoAs for Graham's preference about recursion, a Lisp interpreter/compiler should convert recursive loops into queues.
- mahmud 16y agoloops into queues? Control flow into a data structure? If you're gonna a make a 'sufficiently smart compiler' argument, get it right. I think you meant "tail calls into jumps".
- zandorg 16y agoWell, when I want to convert a function that uses recursion but the stack isn't big enough, I make it have a queue where each new item goes on the end, and the next item goes from the front of the queue. This way the stack is replaced by the heap (which is much bigger!).
- deleted 16y ago[deleted]
- dman 16y agoHere are a few good authors, reading their software is very educational - a) Edi Weitz - http://weitz.de/ http://weitz.de/. Writes very clean and well documented code. b) Paul Graham - The On Lisp book examples, http://arclanguage.org/install http://arclanguage.org/install (for the source code of news.ycombinator ) c) The Code in - "The Little Schemer" - the best introduction to the lisp way of thinking.
- looprecur 16y agoNorvig's book is great.