# \#compression

**URL:** https://discuss.ocaml.org/tag/compression/210.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [\[ANN\] ozstd 0.1](https://discuss.ocaml.org/t/ann-ozstd-0-1/18538)

<div class="topic-metadata">

**Author:** [@dx3mod](https://discuss.ocaml.org/u/dx3mod)\
**Replies:** 17\
**Last updated:** [October 9, 2026, 5:54am UTC](https://discuss.ocaml.org/t/ann-ozstd-0-1/18538 "2026-10-09T05:54:19Z")

</div>

Yo! I am happy to announce the first release of ozstd library! The is a small, modern OCaml binding to Zstandard. It wraps the common one-shot and streaming C APIs in a simple, idiomatic interface. Features On…

---

## [Has anyone implemented an arithmetic encoder in OCaml?](https://discuss.ocaml.org/t/has-anyone-implemented-an-arithmetic-encoder-in-ocaml/16648)

<div class="topic-metadata">

**Author:** [@UnixJunkie](https://discuss.ocaml.org/u/UnixJunkie)\
**Replies:** 0\
**Last updated:** [May 15, 2025, 10:00am UTC](https://discuss.ocaml.org/t/has-anyone-implemented-an-arithmetic-encoder-in-ocaml/16648 "2025-05-15T10:00:21Z")

</div>

Hello, I tried once but I kind of gave up at the stage where I had to use some finite word size instead of arbitrary precision numbers. I think a possible generic interface might be: fun compress: string → int → st…

---

## [\[ANN\] Compsort - reorder files in archives for improved compression](https://discuss.ocaml.org/t/ann-compsort-reorder-files-in-archives-for-improved-compression/15436)

<div class="topic-metadata">

**Author:** [@adrien](https://discuss.ocaml.org/u/adrien)\
**Replies:** 8\
**Last updated:** [October 17, 2024, 5:08pm UTC](https://discuss.ocaml.org/t/ann-compsort-reorder-files-in-archives-for-improved-compression/15436 "2024-10-17T17:08:32Z")

</div>

I’m happy to announce the first release of compsort, a tool to reorder files in an archive for better compression. It works by grouping files according to a distance that is computed between every file pair. You can inst…

---

## [\[ANN\] first release of lz4-chans](https://discuss.ocaml.org/t/ann-first-release-of-lz4-chans/3818)

<div class="topic-metadata">

**Author:** [@UnixJunkie](https://discuss.ocaml.org/u/UnixJunkie)\
**Replies:** 2\
**Last updated:** [May 17, 2019, 7:53am UTC](https://discuss.ocaml.org/t/ann-first-release-of-lz4-chans/3818 "2019-05-17T07:53:25Z")

</div>

Dear OCamlers, It is my pleasure to announce the first release of lz4\_chans: You can use them as drop-in replacement for the channels provided by the stdlib: (\*\* open/close binary channels, with LZ4-compression …

---

## [\[ANN\] Duff 0.1 - a diff library](https://discuss.ocaml.org/t/ann-duff-0-1-a-diff-library/1887)

<div class="topic-metadata">

**Author:** [@dinosaure](https://discuss.ocaml.org/u/dinosaure)\
**Replies:** 0\
**Last updated:** [April 20, 2018, 7:28pm UTC](https://discuss.ocaml.org/t/ann-duff-0-1-a-diff-library/1887 "2018-04-20T19:28:44Z")

</div>

I’m happy yo announce duff is now available on OPAM. This package is an implementation of libXdiff in OCaml tuned for ocaml-git. This library can produce a hash-table from a source and produce an unreadable diff with a t…
