🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Sabahattin Gucukoglu Mon, 03 Feb 2025 17:06
How Unix Spell Ran in 64kB RAM - by Abhinav Upadhyay
#1
Author: Sabahattin Gucukoglu
Date: Mon, 03 Feb 2025 17:06
29 lines
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.
> 

...
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads