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

mojo-gzip v0.1.0

Choose a tag to compare

@amarbarosys amarbarosys released this 21 Oct 11:52
· 23 commits to main since this release

mojo-gzip v0.1.0

Released: 2026-10-21 · Commit: the one tagged v0.1.0 · Previous: first release

What it does

gzip, zlib and raw deflate for Mojo, streaming or in memory, plus crc32 and adler32, through the system libz.

Highlights

  • No linker flag: libz.so.1 is loaded at run time, so mojo run works.
  • Streaming 50 MB of output peaks at 12 MB RSS.
  • Truncated, corrupt and multi-member files behave as Python's gzip does.

Changes

First public release, no earlier version.

Verified

Check Result
scripts/check.sh: 43 results vs Python gzip/zlib, 60 round trips, streaming RSS PASS all
scripts/selfcheck.sh: 4 mutants all rejected

Known limits

  • Linux, needs libz.so.1.
  • 4 GiB per in-memory call; GzFile streams any size.
  • GzFile ignores bytes after the last member (like zcat); decompress raises on them.

Commits

  • v0.1.0 first public release (one commit)

Upgrade / run

mojo run -I src app.mojo