Re:Words you can spell with a calculator
by amelius on Sunday June 23, 2024 @07:11AM
(#40766532)
And how about words you can spell in hex, like 0xcafebabe?
[ Parent
| on HN ]
Here's a one-liner to generate the list of single 8-letter hexable words from the dictionary. It doesn't include 0xcafebabe or 0xdeadbeef due to those being 2-word phrases. Of course, you can change the 8 to a 4 to make the list of 4-letter words, or change the 8 to an asterisk, so you can pick your own word combos.
< /usr/share/dict/words perl -lne 'print "$_ 0x",tr/ilzstgo/1125790/r if m/^[abcdefilzsbtgo]{8}$/ && !(m/i/ && m/l/)' | column
Re:Words you can spell with a calculator
by davidklemke on Sunday June 23, 2024 @06:57PM
(#40771336)
My all time favourite thing to spell in hex was 0xDEADBEEFCAFE