Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    58comments
  2. Cloudflare Quick Tunnels(cloudflare.com ↗)
    190comments
  3. Apple releases iPhone Duo simulator and Xcode 27.1 beta(developer.apple.com ↗)
    14comments
  4. Saving another 100TB of RAM with math (and Rust)(cloudflare.com ↗)
    7comments
  5. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    33comments
  6. Cache-to-Cache: Direct Semantic Communication Between Large Language Models(arxiv.org ↗)
    3comments
  7. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    57comments
  8. The Implications of Linguistic Illegibility for LLM Security(arxiv.org ↗)
    6comments
  9. OpenJev(openjev.com ↗)
    231comments
  10. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    137comments
  11. Korea raises data breach fines to 10% of revenue(koreajoongangdaily.com ↗)
    discuss
  12. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    123comments
  13. Our brain evolved from two primitive nervous systems that merged: Study(newscientist.com ↗)
    30comments
  14. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    155comments
  15. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    13comments
  16. Border agents can search cellphones without a warrant or reasonable suspicion(lawandcrime.com ↗)
    55comments
  17. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    193comments
  18. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    83comments
  19. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    192comments
  20. Show HN: Ax-check.com – Can agents use your product?(ax-check.com ↗)
    21comments
  21. "From Geometry to Algebra and Back Again: 4000 Years of Papers" by Jack Rusher [video](youtube.com ↗)
    discuss
  22. Minimal Phone 2(minimalcompany.com ↗)
    93comments
  23. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  24. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    10comments
  25. A search-and-inference database from scratch in pure Zig(antfly.io ↗)
    6comments
  26. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    6comments
  27. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    12comments
  28. How to Write with an LLM(sockpuppet.org ↗)
    211comments
  29. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    13comments
  30. Jemalloc 5.4.0(github.com/jemalloc ↗)
    82comments

A search-and-inference database from scratch in pure Zig

26 pointsby 3d agoantfly.io
5 comments
3d agoHN ↗

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

3d agoHN ↗

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.

3d agoHN ↗

We definitely were combining the rewrite with the opportunity to lay foundation for a more performant architecture, for instance index management and indexing autosharding could be resourced together in the new world with slightly different semantics in the apis. So in general if the traces disagree, we can count on the new version being correct (unless the spec was covered by a TLA spec)!

At the moment the reverse is true though, the simulator and what we've captured as ground truth for the desired design has been refined enough in tests and specs that the code is often the one implicated, and most of the bugs have been in code related to caching correctness and are only exposed through soak testing.

In opposition to Anthropic/Bun, we mostly used a hands-on approach to the rewrite and took the opportunity to capture the original design of Antfly into specs and any missing tests one subsystem at a time so we didn't strive to be as hands-off as "let Claude hill-climb on the tests". Especially since the system as a whole is far more dynamic and depends more on scalability, distributed systems stuff than Bun required!

3d agoHN ↗

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

35m agoHN ↗

I think of perfect from two perspectives, one being "finding things I wanted to find", the other being "findings things I didn't know I wanted to find". I think Claude is great if the data isn't proprietary, secret (an all open-source project) but for dealing with Tax documents on my local machine I would hope that a search for my W2 would also find my 1099 I had forgotten I had, it'd be nice if I didn't have to allow the big AIs into everything to do that.