News for hackers. Stuff that matters.
Re:Silly Lossy Text Compression Idea by Someone on Saturday May 21, 2022 @11:17AM (#31458616)
I don’t expect that would work. It would compress long words, but most short words would be encoded with numbers longer than the word themselves, and those typically make up most of the words.
Re:Silly Lossy Text Compression Idea by beanlog on Saturday May 21, 2022 @12:55PM (#31459528)
The trick is to encode the numbers in binary, not plaintext. But still you'd probably want to use a Huffman coding rather than plain indexes so that the common words are shorter.