r/dartlangβ€’
GMP10152015

πŸš€ Announcing **arithmetic_coder** – a Dart package for arithmetic coding

Package

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
Loading comments…