# Fpaq0p compressor in zig

**URL:** <https://ziggit.dev/t/fpaq0p-compressor-in-zig/519>\
**Category:** Showcase\
**Created:** [January 21, 2023, 4:07pm UTC](https://ziggit.dev/t/fpaq0p-compressor-in-zig/519 "2023-01-21T16:07:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dee0xeed](https://ziggit.dev/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dee0xeed](https://ziggit.dev/u/dee0xeed)\
**Post date:** [January 21, 2023, 4:07pm UTC](https://ziggit.dev/t/fpaq0p-compressor-in-zig/519/1 "2023-01-21T16:07:51Z")

</div>

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](http://nishi.dreamhosters.com/u/fpaq0p.cpp) compressor/decompresser from C++ to Zig. [Here](https://github.com/dee0xeed/fpaq0p) is the result of this exersize (plus something more…).
