Hacker GitHub

← All repos

nayuki/Reference-arithmetic-coding

View on GitHub ↗ ★ 400 Java

Clear implementation of arithmetic coding for educational purposes in Java, Python, C++.

3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2024-06-25 · latest 2024-06-25

Mentions per year 3 mentions · busiest year 2024 (3)
20082026
  1. Sure thing! Does this meet your requirements? https://github.com/nayuki/Reference-arithmetic-coding/blob/m... If not could you link one that does? If I implement my own I expect someone to say I did it wrong.
  2. …example simply stores the 4 byte values of the frequencies (I used 8 bytes) in a flat table https://github.com/nayuki/Reference-arithmetic-coding/blob/m... For input3 they used 20 additional bytes while I used 12. Though I know they said…
  3. …looking at example arithmetic encoders they seem to have some flat table implementations as well ( https://github.com/nayuki/Reference-arithmetic-coding/blob/m... ). I don't see how that's misdirection, I left the table uncompressed…