A Search-and-Inference Database from Scratch in Pure Zig
kingcauchy
18 points
4 comments
September 15, 2026
Related Discussions
Found 5 related stories in 82.9ms across 6,718 title embeddings via pgvector HNSW
- Zig In-Depth Overview andrewstetsenko · 18 pts · July 25, 2026 · 61% similar
- How Our Rust-to-Zig Rewrite Is Going jorangreef · 467 pts · July 16, 2026 · 50% similar
- Show HN: Lean4 Datalog DSL Based on Google Zanzibar for AI Projects kbradero · 11 pts · July 29, 2026 · 49% similar
- Zig's Incremental Compilation Internals garyhtou · 218 pts · July 28, 2026 · 49% similar
- Cruller: Bun's Zig Runtime, Continued on Zig 0.16 Erenay09 · 153 pts · July 23, 2026 · 48% similar
Discussion Highlights (3 comments)
kingcauchy
We rewrote Antfly, which I introduced to the world a little bit back https://news.ycombinator.com/item?id=47414291 , from Go to Zig. Thought it is interesting to juxtapose to the Bun rewrite from Anthropic and wanted to talk about why we went the other way! Would love to talk about our process or the technology! Benchmarks against are linked in the article but here they are again for posterity https://antfly.io/releases/v0.2
thefogman
I know I should be saying congrats on the new engine, but selfishly I want to hear more about how you did it. So, the simulator only works if it knows what "correct" looks like and what kinds of failures to throw at the code, right? Who decided those two things? Was it the same agent that wrote the code? Were those human-written, or did they fall out of the formal specs? You had three things that could each say "this is right", the end-to-end tests, the formal model, and how the old Go version behaved. When they disagreed, which one did you trust? Did the test ever turn out to be the thing that was wrong? When the simulator caught something before release, was it usually the code that was wrong, or the definition of correct? Feels like there's some really useful insights about best practices for coding with agents. I wonder if the Bun team used a similar approach if they still would have switched.
dovin
Yeah open question what "perfect" search would even be, like would that just end up being indistinguishable from a kind of magical omniscience? And then there's "can I literally just find that one freaking slideshow from a while ago with that one client... or is it in Google Drive...?" And I really don't want the solution to be that we just plug everything into Claude