π Announcing **arithmetic_coder** β a Dart package for arithmetic coding
Hey everyone! π
Iβve just published a new Dart package called arithmetic_coder on pub.dev:
π https://pub.dev/packages/arithmetic_coder
What it does
This package provides an implementation of arithmetic coding, a powerful data compression technique that encodes data into compact fractional representations.
Features
- β Adaptive (no pre-trained model required)
- π§ Context modeling (order 0, 1, 2)
- β‘ Efficient O(log n) updates via Fenwick tree
- π¦ Byte-level compression and decompression
- π Streaming-friendly design
- π Deterministic decoding with mirrored context state
Feedback, suggestions, and contributions are very welcome π If you try it out, let me know how it works for you or what could be improved!
Really appreciate your time π
Posted Apr 1, 2026, 6:01 AM UTC
10