Greenspun's tenth rule
The rule expresses the opinion that the argued flexibility and extensibility designed into the Lisp programming language includes all functionality that is theoretically necessary to write any complex computer program, and that the features required to develop and manage such complexity in other programming languages are equivalent to some subset of the methods used in Lisp.
It can also be interpreted as a satirical critique of systems that include complex, highly configurable sub-systems. Rather than including a custom interpreter for some domain-specific language, Greenspun's rule suggests using a widely accepted, fully featured language like Lisp.
Paul Graham also highlights the satirical nature of the concept, albeit based on real issues:
That sounds like a joke, but it happens so often to varying degrees in large programming projects that there is a name for the phenomenon, Greenspun’s Tenth Rule: Any sufficiently complicated C or Fortran program contains an ad hoc informally-specified bug-ridden slow implementation of half of Common Lisp.
The rule was written sometime around 1993 by Philip Greenspun. Although it is known as his tenth rule, there are in fact no preceding rules, only the tenth. The reason for this according to Greenspun:
…including Common Lisp.
This corollary jokingly refers to the fact that many Common Lisp implementations (especially those available in the early 1990s) depend upon a low-level core of compiled C, which sidesteps the issue of bootstrapping but may itself be somewhat variable in quality, at least compared to a cleanly self-hosting Common Lisp.
- Philip Greenspun's Research
- Revenge of the Nerds, by Paul Graham.
- Greenspun's Tenth Rule, does every large project include a Lisp interpreter?
- Graham, Paul (2004). Hackers & Painters: Big Ideas from the Computer Age. O'Reilly. p. 198. ISBN 978 - 0- 596-00662-4.
- 10th rule of programming
- Paul Graham quotes.
- Rhodes, Christophe (2008-05-15). "SBCL: a Sanely-Bootstrappable Common Lisp" (PDF). Lecture Notes in Computer Science (Self-Sustaining Systems: First Workshop). Retrieved 2016-10-24.