ArticleslgStudy

computer science

Wirth's law

Wirth's law is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Wirth's law rather than just read about it. In short: Wirth's law is an adage on computer performance which states that software is getting slower more rapidly than hardware is becoming faster. The adage is named after Niklaus Wirth, a computer scientist who discussed it in his 1995 article "A Plea for Lean Software".

Key takeaways

  • Wirth's law belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Wirth's law to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Wirth's law from memory before moving on to harder problems.

Reference excerpt

Wirth's law is an adage on computer performance which states that software is getting slower more rapidly than hardware is becoming faster. The adage is named after Niklaus Wirth, a computer scientist who discussed it in his 1995 article "A Plea for Lean Software".

History Wirth attributed the saying to Martin Reiser, who in the preface to his book on the Oberon System wrote: "The hope is that the progress in hardware will cure all software ills. However, a critical observer may observe that software manages to outgrow hardware in size and sluggishness." Other observers had noted this for some time before; indeed, the trend was becoming obvious as early as 1987. He states two contributing factors to the acceptance of ever-growing software as: "rapidly growing hardware performance" and "customers' ignorance of features that are essential versus nice-to-have". Enhanced user convenience and functionality supposedly justify the increased size of software, but Wirth argues that people are increasingly misinterpreting complexity as sophistication, that "these details are cute but not essential, and they have a hidden cost". As a result, he calls for the creation of "leaner" software and pioneered the development of Oberon, a software system developed between 1986 and 1989 based on nothing but hardware. Its primary goal was to show that software can be developed with a fraction of the memory capacity and processor power usually required, without sacrificing flexibility, functionality, or user convenience.

Other names The law was restated in 2009 and attributed to Google co-founder Larry Page. It has been referred to as Page's law. The first use of that name is attributed to fellow Google co-founder Sergey Brin at the 2009 Google I/O Conference. Other common forms use the names of the leading hardware and software companies of the 1990s, Intel and Microsoft, or their CEOs, Andy Grove and Bill Gates, for example "What Intel giveth, Microsoft taketh away" and Andy and Bill's law: "What Andy giveth, Bill taketh away". Gates's law ("The speed of software halves every 18 months") is an anonymously coined variant on Wirth's law, its name referencing Bill Gates, co-founder of Microsoft. It is an observation that the speed of commercial software generally slows by 50% every 18 months, thereby negating all the benefits of Moore's law. This could occur for a variety of reasons: feature creep, code cruft, developer laziness, lack of funding, forced updates, forced porting (to a newer OS or to support a new technology) or a management turnover whose design philosophy does not coincide with the previous manager. May's law, named after David May, is a variant stating: "Software efficiency halves every 18 months, compensating Moore's law".

See also Andy and Bill's law Code bloat Enshittification Feature creep Jevons paradox Minimalism (computing) No Silver Bullet Parkinson's law Software bloat Waste

References

Further reading Böszörményi, László; Gutknecht, Jürg; Pomberger, Gustav, eds. (2000). The School of Niklaus Wirth: The Art of Simplicity. Morgan Kaufmann. ISBN 1-55860-723-4.

Worked examples

Example 1 — a first encounter with Wirth's law

Start with the simplest possible case. Write down what Wirth's law claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Wirth's law before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Wirth's law ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Wirth's law

In research
Wirth's law appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Wirth's law in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Wirth's law is common in secondary-school and first-year university syllabi. It links to neighbouring topics Adages, Computer architecture statements, Computing culture, so understanding it makes those chapters shorter.
In everyday life
Look for Wirth's law outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Wirth's law” →

How to study Wirth's law in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Wirth's law means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Wirth's law out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Wirth's law in simple terms?

Wirth's law is an adage on computer performance which states that software is getting slower more rapidly than hardware is becoming faster. The adage is named after Niklaus Wirth, a computer scientist who discussed it in his 1995 article "A Plea for Lean Software".

Why does Wirth's law matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Wirth's law?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Wirth's law.

Tags

  • Adages
  • Computer architecture statements
  • Computing culture
  • Rules of thumb
  • Technology strategy

Keep exploring