Skip to content

port libwce from C to Rust - #1

Merged
yogthos merged 3 commits into
mainfrom
rust
May 24, 2026
Merged

yogthos merged 3 commits into
mainfrom
rust

Conversation

@yogthos

@yogthos yogthos commented May 24, 2026

Copy link
Copy Markdown
Owner

Replace C implementation with single-file Rust port.

yogthos added 3 commits May 23, 2026 20:02
Replace C implementation with single-file Rust port (src/lib.rs, 496 lines).
Zero dependencies, wire-compatible bitstream format.

Library: encode/decode/encode_with_options, bit I/O, Rice/zigzag,
BPC primitives, coeff pack/unpack, quantize, Lloyd-Max dequant.

Demos: mode_shootout, image_compress (Haar DWT + PGM), stream_surgery.
Bench: throughput sweep over synthetic Laplacian corpora → CSV.

81 tests, 0 failures.
@yogthos
yogthos merged commit 01f7ed5 into main May 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant