# How Unix Spell Ran in 64 kB of RAM: A Masterclass in Engineering

> Hacker News story 49066750 · language: en · submitted 2026-07-27
> Web version: https://zeli.app/story/49066750
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 75 · by [donw](<https://news.ycombinator.com/user?id=donw>) · 💬 7
[original](<https://blog.codingconfessions.com/p/how-unix-spell-ran-in-64kb-ram>) · [HN discussion](<https://news.ycombinator.com/item?id=49066750>)

## Summary

In the 1970s, Douglas McIlroy faced the challenge of fitting a 250kB dictionary into just 64kB of RAM on a PDP-11. He solved this by developing a stemming algorithm to reduce word counts and designing a compression scheme using Golomb codes that nearly reached the theoretical limit. This approach, combined with a tuned Bloom filter, created a spell checker that remains a benchmark for efficient engineering under strict constraints.

## Key quote

> Instead of relying on generic compression techniques, he took advantage of the properties of the data and developed a compression algorithm that came within 0.03 bits of the theoretical limit of possible compression.

## HN discussion (7 comments)

### [bluedino](<https://news.ycombinator.com/item?id=49067750>)

> Related:
>
> https://prog21.dadgum.com/29.html

### [inigyou](<https://news.ycombinator.com/item?id=49067458>)

> Would a bloom filter be more or less effective if each hash function was given a separate bit-table rather than sharing the same one?

---

## Cite

- Page: https://zeli.app/story/49066750
- Date: 2026-07-27
- Source: blog.codingconfessions.com (https://blog.codingconfessions.com/p/how-unix-spell-ran-in-64kb-ram)
- Hacker News: https://news.ycombinator.com/item?id=49066750

## Other languages

- zh: https://zeli.app/zh/story/49066750 · markdown: https://zeli.app/zh/story/49066750.md
