LOX · Liquid Oxygen for Embedded Systems

LOXC

Trainable text compression benefits from frequency-aware coding rather than a fixed generic codec.

Pure C99, MIT trainable frequency-optimized text codec with v2 and matrix-based v3 formats, including HIER4/HIER8 nested matrices.

Stablev0.4.3MITC99
Last verified
2026-08-14
Platform scope
Portable C99; external, embedded and amortized deployment objectives

What it solves

Trainable text compression benefits from frequency-aware coding rather than a fixed generic codec.

How it works

1Training corpus2codec model3encode/decode API4v2 or v3 stream

Use it when

Train from representative text
Use v2 or matrix-based v3 streams
Choose a documented deployment objective

Quick Start

#include "loxc.h"
/* Train or load a documented model, then encode/decode via the public API. */

Engineering evidence

  • README documents trainer, CLI, simple API, examples, tests, benchmarks and technical documentation
  • v3 documents HIER4/HIER8 nested matrices and diagonal cells that save one coordinate value

Known limits

  • Compression trade-offs depend on the selected corpus and objective
  • Benchmark interpretation requires the documented corpus and configuration