4 ms·
When I was a student we got a task where we had to spell check some text. This was super easy because we could fit the entire dictionary in memory. Hadn’t alwa
by hmottestad 2y ago
When I was a student we got a task where we had to spell check some text. This was super easy because we could fit the entire dictionary in memory.
Hadn’t always been that easy. Once upon a time someone was paging in and out their dictionary from a floppy disk. Not to forget about the compression they had to implement from scratch.
- schoen 2y agoSo many times in Python when doing something related to a word game or puzzle I've written something like d = set(open("/usr/share/dict/words").read().split()) There's a lot of luxurious convenience hiding there!