18 karma · joined Jan 3, 2026 (10mo ago) · 23 submissions
comment 5d ago · link · parent
Since roughly half of my replies here get flagged in seconds for no valid reason (they are technical, neutral, and certainly not ai generated slop), I'm stopping all communication in this thread. It's simply frustrating and pointless.
comment 6d ago · link · parent
So LZ0 offers the same decoder compactness as a minimal LZ4 decoder, but for an Elias gamma bitstream with arbitrary window.
comment 6d ago · link · parent
comment 6d ago · link · parent
comment 1w ago · link · parent
Where it sits (Ratio vs. Speed): - Compression density: beats LZ4/Snappy, staying within 1–3% of zlib/Deflate and exhaustive ZX0. - Decompression speed: 200–350 MB/s for portable C, 250–700 MB/s for compact ASM, and 520–1,330 MB/s for vector ASM. That's up to 10x faster than Deflate while requiring zero heap memory or state tables. - Compression throughput: ~1.3–1.6 s on typical 1 MB inputs.
How the encoder avoids the O(N^2) wall (H2C8 pipeline): - Multi-tier match finding: dual-level hash chains for local matches paired with an O(N) SA-IS suffix array for deep, long-range matches. - Sparse DP parsing: instead of evaluating every edge in the graph, it groups Elias gamma bit costs into mathematical plateaus to skip redundant searches.
The repo ships with three 0-alloc decoder implementations: 1. Portable C (`lz0dec_min.c`): ~75 lines of freestanding C with zero libc dependencies. 2. Compact ASM: hand-written x86-64 and ARM64 routines (~1.3 KiB of machine code), with zero state or lookup tables. 3. High-throughput "FAST" ASM: dual-engine vector path (SSE2 on x86-64, NEON on ARM64) using branch-free Elias gamma decoding and segment-window refills.
All decoders enforce strict bounds checks and have been validated against 240,000+ guard-page and fuzzing tests to ensure corrupt streams never trigger out-of-bounds reads or crashes.
Bitstream specification: https://github.com/seb3773/lz0/blob/main/docs/LZ0_FORMAT.md Benchmarks: https://github.com/seb3773/lz0/blob/main/docs/BENCHMARKS.md
I'd appreciate any feedback on the bitstream layout, the decoder tradeoffs, or edge cases I might have missed.
10.
Show HN: LZ0 -An asymmetric LZ compressor with ultra minimal, 0-alloc decoder(github.com ↗)
29 points · by seb3773 · 1w ago · 21 comments
11.
Show HN: Native C/C++ FreeArc archiver (no Haskell, no Wine)(github.com ↗)
2 points · by seb3773 · 1mo ago · discuss
comment 7mo ago · link · parent
I used a strict clean-room approach (black-box observation) to ensure the specification is legally safe for open-source implementations. My goal is to provide a solid foundation for anyone wanting to build a real 'chkdsk' equivalent for Linux or ReactOS. The RFC includes a 16-phase repair logic and detailed pseudo-code for complex structures like B-Trees and Journal replaying. Feel free to use the logic or the pseudo-code for your own projects!
13.
Show HN: A Clean Room RFC for NTFS Structural Repair(github.com ↗)
3 points · by seb3773 · 7mo ago · 1 comment
14.
Show HN: ZELF – A modular ELF64 packer with 22 vintage and modern codecs(github.com ↗)
4 points · by seb3773 · 10mo ago · discuss