Article View: grc.linkfarm
Article #1How Unix Spell Ran in 64kB RAM - by Abhinav Upadhyay
From: Sabahattin Gucukoglu
Date: Mon, 03 Feb 2025 17:06
Date: Mon, 03 Feb 2025 17:06
29 lines
2147 bytes
2147 bytes
https://blog.codingconfessions.com/p/how-unix-spell-ran-in-64kb-ram > How Unix Spell Ran in 64kB RAM > How do you fit a dictionary in 64kb RAM? Unix engineers solved it with clever data structures and compression tricks. Here's the fascinating story behind it. > > Abhinav Upadhyay <https://substack.com/@abhinavupadhyay> > How do you fit a 250kB dictionary in 64kB of RAM and still perform fast lookups? For reference, even with modern compression techniques like gzip -9, you can't compress this file below 85kB. > > In the 1970s, Douglas McIlroy faced this exact challenge while implementing the spell checker for Unix at AT&T. The constraints of the PDP-11 computer meant the entire dictionary needed to fit in just 64kB of RAM. A seemingly impossible task. > > 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. To this day, it remains unbeaten. > > The story of Unix spell is more than just historical curiosity. It's a masterclass in engineering under constraints: how to analyze a problem from first principles, leverage mathematical insights, and design elegant solutions that work within strict resource limits. > ...
Technical Details
Message-ID:
<vnqt25$13db$1@GRC>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!news.grc.com!.Show Full Headers
Complete Article Headers
Message-ID: <vnqt25$13db$1@GRC>
Subject: How Unix Spell Ran in 64kB RAM - by Abhinav Upadhyay
Date: Mon, 3 Feb 2025 17:06:12 +0000
From: Sabahattin Gucukoglu <listsebby@me.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!news.grc.com!.
Newsgroups: grc.linkfarm
Archive: no
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\))
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
User-Agent: Apple Mail (2.3776.700.51.11.1)
X-No-Archive: yes
Poster: [ksd47baij7aje] {EFWOxTIfUXCxBxbF/TcIE+TQ00k}
X-Url: https://grc.com/groups/news:35
X-Original-Reader: [138.201.13.187]