Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

Releases

mojo-zstd v0.1.1

Choose a tag to compare

@amarbarosys amarbarosys released this 08 Nov 23:48

mojo-zstd v0.1.1

Released: 2026-11-08 · Commit: cc7ebbd · Previous: v0.1.0

What it does

zstd and lz4 frame compression for Mojo through the system libzstd and liblz4: one-shot
compress/decompress, and streaming zstd files or buffers through a 128 KiB window.

Highlights

  • Packaging only: the conda recipe pins mojo-compiler to the minor the package was built with (<1.3.0a0), so it cannot be installed on a Mojo it does not load on.

Changes

Changed

  • recipe.yaml: mojo-compiler run dependency pinned to the build's minor (<1.3.0a0).

Verified

Check Result
pkg-conda dry run on the version commit (H1-H3,H6) PASS: mojo-zstd-0.1.1-hb0f4dca_0.conda

Known limits

  • Packages are built on one Mojo minor only; see the package protocol.

Upgrade / run

None: no API change.

Commits

  • cc7ebbd build: bump version to 0.1.1
  • 4bf4502 build: recipe pins mojo-compiler to the build's minor
  • 27bb85d chore(license): fill Apache-2.0 copyright notice

mojo-zstd v0.1.0

Choose a tag to compare

@amarbarosys amarbarosys released this 04 Nov 14:19

mojo-zstd v0.1.0

Released: 2026-11-04 · Commit: 83246af · Previous: first release

What it does

zstd and lz4 frame compression for Mojo through the system libzstd and liblz4: one-shot
compress/decompress, and streaming zstd files or buffers through a 128 KiB window.

Highlights

  • Parity with Python on the same C libraries: zstd level 3 on 32 MiB text, compress 61 to 63 ms (Python 61 to 66), decompress 34 to 36 ms (Python 38 to 42).
  • Streaming 128 MiB through ZstdWriter/ZstdReader peaks at 13.7 MB RSS, the same as 1 MiB.
  • Corrupt, truncated or trailing input raises zstd: ... / lz4: ..., never a crash.

Changes

First release, no earlier version.

Verified

Check Result
scripts/ci.sh (check.sh): 24075 verdicts identical to tools/oracle.py (10851 corrupt inputs rejected by both), 13224 outputs byte-identical, 3 planted bugs rejected, streaming RSS, API errors, example PASS all

Known limits

  • Parity, not a faster codec: the same C libraries do the work. One zstd compress run read 179 ms, a noisy outlier.
  • Linux; needs libzstd.so.1 and liblz4.so.1. No dictionaries, no threads, no lz4 block format.

Upgrade / run

mojo run -I src app.mojo

Commits

  • 83246af ci: badge row and checks badge
  • b228aab docs(skills): add mojo-zstd skill
  • 7b39bb6 build: conda recipe
  • fd9ead1 docs: one example, one install block
  • a5b2321 build: one conda package carries lz4 and zstd
  • e9ff67e chore: ignore .claude (ephemeral skill symlinks)
  • 6a5a725 test: gate fails when the README example drifts from examples/quickstart.mojo
  • d1b5cba docs: README, changelog, api, design and perf notes
  • 4310748 test: oracle gate against Python zstandard and lz4, with negative control
  • 1ef6e98 feat: zstd and lz4 frame codecs through the system libzstd and liblz4