Fpaq0p compressor in zig

Recently I made an (yet another) attempt to understand how those magic arithmetic/range and ANS entropy coders work. As a part of this activity I translated fpaq0p compressor/decompresser from C++ to Zig. Here is the result of this exersize (plus something more…).

2 Likes