Zroar
Serialized Roaring Bitmaps in Zig
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
zroar is a ground-up implementation of Roaring Bitmaps data structure in Zig. zroar stores both the keys and (array, bitmap) containers in a single flat byte buffer, making the in-memory representation equal to the on-disk or over-the-network representation, eliminating the serialization/deserialization step entirely.The design was originally aimed at systems which keep their posting lists on disk, but zroar performs faster than CRoaring even for purely in-memory ops, due to CPU cache locality.Against CRoaring 5.0's benchmarking suite (ported to Zig), zroar is faster in 339 out of 360 tests, being 2x-9x faster (geometric mean), and up to 600x faster on serialize/deserialize.zroar avoids complex mechanism (like adaptive radix trees), uses Zig native SIMD ops and is simpler. The main logic is written in ~2000 lines of code, while CRoaring's 64-bit bitmap codebase is over 17000 LOC.Not yet: By choice, zroar doesn't support run containers, and is 64-bit only.There are more details in the GitHub README. Try it out! I'd love feedback on the API and design. zroar is a Zig-based successor to my other project, sroar in Go, which showed a similar boost. So, I think this design should show performance gains in any language.
HN · launched Aug 21, 2026 · 6 upvotes (top 69%) · 0 views
Niche: specialized algorithms and computing libraries · 230 launches, 4 in the last 7 days ▼ -73% · Explore this niche →
Category and tags
- Horizontal
- Data infrastructure
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 230 launches in specialized algorithms and computing libraries →
Could you build this?
No Implementing a zero-copy, highly optimized serialized Roaring Bitmap data structure in Zig requires expert systems programming and rigorous mathematical bit-manipulation engineering.
What it would actually take: Requires an implementation of the Roaring Bitmap specification in Zig with custom memory layout guarantees ensuring in-memory buffers match serialization formats without deserialization overhead. The core complexity lies in SIMD-accelerated bitwise operations (AND, OR, XOR), differential run-length encoding, cache-line-aware memory alignment, and zero-allocation iterator semantics. This demands deep systems software optimization expertise and intricate knowledge of binary low-level data structures.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one : 120 launches clear the similarity bar, closest 8 shown.
Attention rank: #88 of 121 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 293 days after the earliest competitor.
- ZDS · hn · 2025-12-20 · 5 upvotes · similarity 0.47
- Hekate · hn · 2026-01-18 · 8 upvotes · similarity 0.45
- Forkrun · hn · 2026-03-27 · 151 upvotes · similarity 0.42
- FastLanes based integer compression in Zig · hn · 2025-12-01 · 12 upvotes · similarity 0.41
- Uberblok · hn · 2026-10-21 · 125 upvotes · similarity 0.41
- BlazeDiff v2 · hn · 2025-12-19 · 7 upvotes · similarity 0.41
- sirocco · github · 2026-10-17 · 14 upvotes · similarity 0.40
- CodeDiff · hn · 2026-09-29 · 7 upvotes · similarity 0.40
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.