Greenspun's Tenth Rule
"Any big enough C or Fortran program contains a bad reimplementation of half of Lisp."
"Any big enough C or Fortran program contains a bad reimplementation of half of Lisp."
Large programs written in low-level languages tend to reinvent, badly, the high-level features Lisp provides natively: garbage collection, dynamic dispatch, first-class functions, an interactive loop, runtime metaprogramming. Instead of getting these for free, the program grows an ad hoc, informally specified, bug-ridden, slow version of each.
Rated Folk-adage: a proverb or saying, not a scientific finding. The other 24.
As a system's complexity grows, it accretes configuration formats, macro and preprocessor layers, plugin systems, and eventually an ad hoc embedded interpreter or metaprogramming layer: an unplanned, informal reimplementation of the abstraction machinery a Lisp runtime already supplies.
Attributed to Robert Morris: '...including Common Lisp.' The joke is that real Lisp implementations often have a compiled low-level core, so they too contain the ad hoc half-of-Lisp. Well-attested folklore rather than a dated source.
A close cousin: a system so configurable it becomes a poor reimplementation of the very platform it runs on (the same convergence toward a homegrown, worse version of what already exists).
It captures a genuine pattern in the evolution of large software (the drift toward homegrown, informal versions of abstractions that mature languages already provide), while functioning as a piece of Lisp-advocacy wit. It is a memorable warning that unplanned complexity tends to reinvent, poorly, what better tools offer natively.
It is a humorous adage and Lisp-advocacy in-joke, not an empirical claim, and it is unfalsifiable as stated — 'sufficiently complicated' and 'half of' are undefined. It is self-aware about its own naming gag (there are no rules one through nine), and Morris's corollary undercuts it by noting Lisp implementations themselves rest on lower-level cores. Cite it as folklore about programming culture, never as measured fact.
There are no preceding nine rules: the 'tenth' is itself the joke; Greenspun has said he just wanted a memorable name. And it does not literally claim programs contain Lisp; it claims they reinvent Lisp's features informally and badly. The exact punctuation of the line varies between sources, and its date is only approximate.
It is a saying, not a finding. Greenspun's Tenth Rule is rated Folk-adage here: it circulates because it is memorable and often true, not because anyone measured it.
Rated from two sources. 25 of the 1,116 entries carry this rating. How the scale works.
The best-known laws are the least likely to rest on measurement.
Coined by Philip Greenspun in the early-to-mid 1990s (commonly cited as around 1993, though he says he no longer recalls where he first wrote it). Robert Morris later appended the corollary '...including Common Lisp'.
3 languages, as recorded on Wikidata. These are names the idea already goes by, not translations we made. The whole index by language.
Everything above traces to en.wikipedia.org and philip.greenspun.com, two sources in all, one of them the original publication rather than an account of it. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.