A 6502 emulator in Common Lisp [pdf]
redlinernotes.com
redlinernotes.com
Basically, you write markdown comments in the code and there is a Makefile that uses awk and sed to grab them out, cat some things together and pass it to an awesome LaTeX stylesheet written by Pete Kazmier. See: https://github.com/redline6561/cl-6502/tree/master/src/doc and the Makefile in the parent directory.
Keep up the great work on Rust, been waiting on the gc/scheduler stuff to shake out a little bit. Looking forward to 0.8!
and, of course,
"Any sufficiently complicated C or Fortran program contains an ad-hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp".
Robert Morris's addendum: "Including Common Lisp."
... except if you use a well-written Lisp interpreter library :) - Scheme
Lisp was one of them.
Related (with screenshot!): http://blog.redlinernotes.com/posts/So-Close-and-Yet-So-Far....
If I can wind up with a NES emulator that is "fast enough" and 2500 lines of code instead of 75,000 (Fceux) or 150,000 (Nestopia) then I'll be happy.
Whenever I see old ICs like the 6502 I have this fantasy of going back 30 years and making my own computer from scratch.