Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Claude Code now reads AGENTS.md if there is no Claude.md(claude.com ↗)
    133comments
  2. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    184comments
  3. Saving another 100TB of RAM(cloudflare.com ↗)
    33comments
  4. Cloudflare Quick Tunnels(cloudflare.com ↗)
    218comments
  5. Xcode 27.1 Beta Release Notes(developer.apple.com ↗)
    58comments
  6. Cache-to-Cache: Direct Semantic Communication Between LLMs (2025)(arxiv.org ↗)
    11comments
  7. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    44comments
  8. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    71comments
  9. How to Write with an LLM(sockpuppet.org ↗)
    241comments
  10. US troop deaths during Iran war exceed Pentagon count by at least four(reuters.com ↗)
    15comments
  11. OpenJev(openjev.com ↗)
    237comments
  12. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    35comments
  13. The Implications of Linguistic Illegibility for LLM Security(arxiv.org ↗)
    17comments
  14. Two parallel neural ectoderm progenitors contribute to the developing brain(newscientist.com ↗)
    51comments
  15. Cyclomatic Complexity in C#(ndepend.com ↗)
    9comments
  16. From Geometry to Algebra and Back Again: 4000 Years of Papers (2023) [video](youtube.com ↗)
    discuss
  17. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    167comments
  18. Minimal Phone 2(minimalcompany.com ↗)
    146comments
  19. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    24comments
  20. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    12comments
  21. Size-Specialized Memory Allocation(go.dev ↗)
    3comments
  22. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    89comments
  23. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    174comments
  24. A search-and-inference database from scratch in pure Zig(antfly.io ↗)
    16comments
  25. Korea raises data breach fines to 10% of revenue(koreajoongangdaily.com ↗)
    71comments
  26. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  27. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    15comments
  28. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    280comments
  29. Border agents can search cellphones without a warrant or reasonable suspicion(lawandcrime.com ↗)
    135comments
  30. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    148comments

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

46 pointsby 3d agoantfly.io
16 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

2h agoHN ↗

Could you add qdrant and duckdb to the benchmarks?

2h agoHN ↗

DuckDB is a good one, we're working on that especially for the serverless/lakehouse stuff we've got planned for the next release! I believe we originally had qdrant in our benchmarks but ran into an explosion of testing requirements for each provider and different licensing checks for each but I can drum up those numbers!

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

3h 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.

2h agoHN ↗

Caution: antfly is not open licensed. Use it at your own risk.

2h agoHN ↗

It can't be hosted as a cloud service correct (see ValKey by Google, OpenSearch by Amazon), there's a disclaimer on the GitHub about how and why as well.

2h agoHN ↗

I've actually been using this to build a local file search agent. I started building it on the Go version of Antfly, but the new Zig runtime is a huge improvement (better resource utilization, reliability, recovery, ...)

Anyone who has used Spotlight search on macOS knows that (1) it can be an absolute resource hog, and (2) it's relatively useless (even with Siri stuff they added in macOS 27). So I was eager to take a stab at a native app that did both better and kept everything on-device (no external inference providers), and building it on Antfly meant I could run it all from one engine (way simpler to coordinate than a whole RAG pipeline).

[Disclaimer: I work at Antfly. The local search app is in preview now at searchaf.com. We plan on open-sourcing it soon (probably with its own Show HN post), as a handy reference architecture.]

1h agoHN ↗

On the whole, yes. Antfly can create full-text, semantic, and graph indexes natively, so scaffolding a personal knowledge graph is quite straightforward (and is what SearchAF does). But more to your question about that task list:

- Category 1 (Personal Info): Yes. Especially if you choose to index notes, emails, photos, etc. - Category 2 (Phone & App Control): No. This is what Siri should have been doing all along, and probably not an Antfly task. We'd obviously have less hooks for tool calls than what Apple exposes to Siri internally ("take a selfie") - Category 3 (Internet Queries): Yes. Antfly also has the ability to - Category 4 (Visual Intelligence): Yes. Antfly enables a lot here for multi-modal inference. And intelligence isn't necessarily restricted to Antfly's own inference tools -- SearchAF also ingests image tags classified by Siri. - Category 5 (Screen Intelligence): Yes. Providing image context on-the-fly would come from Antfly's natively embedded inference runtime (which again, all runs on-device).

1h agoHN ↗

I appreciate the detailed answer, thanks!

1h agoHN ↗

(Disclosure: I work at Antfly, joined recently)

Before joining the team I started developing a comprehensible input curation engine for my own language learning purposes built on Antfly. I'm indexing Anki study decks to track my approximate passive vocabulary in Spanish, indexing public domain reading material for content, and using hybrid search/RRF to surface content that best fits my current level at any given moment. I'm also playing around with using Antfly inference to generate limited rewrites of difficult passages, in order to bring the comprehension into a range that fits my level.

It's a fun use case that seemed to sit nicely at an intersection of what antfly does well. I also think the concept generalizes nicely to broader user-adapted learning/study use cases that don't involve shipping a boat load of behavioral data to a cloud/model provider.

So far have just implemented this for reading material but could imagine extending to some cool areas! (video + audio being obvious next targets)

24m agoHN ↗

[Disclosure: Antfly CEO] We've talked to all kinds of companies burning incredible amounts of tokens on Anthropic and OpenAI just to search slack, google drive, their email; or getting frustrated by dumb Copilot conversations that can't find things in SharePoint. We think we can make this better and you should own your data.

21m agoHN ↗

(Disclosure: I work on inference at Antfly)

A little context on the inference and fine-tuning side of things at Antfly. Our model runtime is written in Zig, with no C++ bindings or dependencies. Over the last few months, we wrote our own CPU, Metal and CUDA kernels for the set of models that we support: Gemma4, Gliner2, Qwen3, Florence2, etc,

We’ve also created a JIT compiler for Metal/CUDA kernels, which should make it faster for us to add new kernel implementations in the future.

We're currently working on the infra to finetune (and deploy) Gliner2 and Gemma4 models directly in Antfly.

Happy to answer any questions about the inference runtime or fine-tuning work!