frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: PyNear – exact and approximate KNN, faster than Faiss

2•pcael•1h ago
PyNear is a Python KNN library built around Vantage-Point Trees with a C++ SIMD core. I've been working on it for a while and just shipped v2.2 with two new approximate binary indices. Benchmarks surprised me so I wanted to share.

  * Where it beats Faiss:

  - Exact L2 search — VP-Trees prune aggressively using the triangle inequality. At d=512, N=500k: 2.2 ms vs Faiss IndexFlatL2's 85 ms (39×). At low
  dimensionality (d≤16) it's 2–4× faster.

  - Approximate binary search — This one was unexpected. The new MIHBinaryIndex (Multi-Index Hashing) splits 512-bit descriptors into 8 sub-tables of
  64-bit keys. By the pigeonhole principle, any true neighbour within Hamming radius 8 must match at least one sub-table exactly or with 1 bit flip — so
  each query is just 520 hash lookups instead of a linear scan. At N=1M, d=512: 0.037 ms vs Faiss IndexBinaryFlat's 9.5 ms (257×), with 100% Recall@10.

  - Faiss's approximate binary index (IndexBinaryIVF) turned out to have an O(N²) bug in its add() path — 34 minutes to build at N=1M. So in practice
  Faiss can't do approximate binary search at scale.

  * Where Faiss still wins:
  - Approximate float search at very large N (≥500k) and very high d — their compiled BLAS K-Means is faster than ours for big clustering jobs. If you're
  doing CLIP or LLM embedding retrieval at scale, Faiss IVF is still the right tool.

   Other things PyNear does that Faiss doesn't:
   - Pure Python install (NumPy only, no compiled native lib to manage)
   - Pickle serialization out of the box
   - L1, L∞, and Hamming exact search with the same API
   - Drop-in scikit-learn adapter (same fit/predict/kneighbors interface)
   - BKTree for Hamming range/threshold queries

   The binary approximate story is the most practically interesting to me — binary descriptors (ORB, BRIEF, AKAZE) are always high-dimensional and always
   approximate in practice, and it turns out MIH is a much better fit for that problem than IVF.

   GitHub: https://github.com/pablocael/pynear
   Benchmark report (PDF): https://github.com/pablocael/pynear/blob/main/docs/benchmarks.pdf

Ask HN: Best stack for building a tiny game with an 11-year-old?

2•richardstahl•2m ago•0 comments

Fetch metadata request header – MDN

https://developer.mozilla.org/en-US/docs/Glossary/Fetch_metadata_request_header
1•theandrewbailey•3m ago•0 comments

The world of AI contributions in Open Source

https://robertjwebb.substack.com/p/the-absurd-world-of-ai-contributions
1•haburka•3m ago•0 comments

When prime numbers emerge from motion

https://nkode.gr/EN/articles/278/when-prime-numbers-emerge-from-motion
1•nomemory•4m ago•0 comments

Future of SWE: Efficiency, Learning Velocity, Small Teams, Reasoning

https://blog.rastrian.dev/post/the-future-of-software-engineering-efficiency-learning-velocity-sm...
1•simonpure•6m ago•0 comments

Police used AI facial recognition to wrongly arrest TN woman for crimes in ND

https://www.cnn.com/2026/03/29/us/angela-lipps-ai-facial-recognition
2•ourmandave•7m ago•0 comments

One ant for $220: The new frontier of wildlife trafficking

https://www.bbc.com/news/articles/cg4g44zv37qo
1•ranit•8m ago•0 comments

The Marvelous Misunderstanding of Miss Mustard Oil (2022)

https://sites.bu.edu/gastronomyblog/2022/05/18/the-marvelous-misunderstanding-of-miss-mustard-oil/
1•indigodaddy•9m ago•0 comments

Reflections on the State of the Software and AI Market

https://x.com/loganbartlett/article/2037638091671035994
1•born2web•9m ago•0 comments

Twelve Dimensional Chess is Stupid (2018)

https://www.gilgamath.com/twelve_dimensional_chess.html
2•Tomte•9m ago•0 comments

Initweave – build your Emacs init.el

https://www.initweave.com/
1•signa11•10m ago•0 comments

Moving Towards Determinism with LLMs

https://evgeniipendragon.com/posts/moving-towards-determinism-with-llms/
2•EPendragon•12m ago•0 comments

Show HN: 2.7KB Zig WASM – live globe showing executions at 300 CF edges

https://mcpaas.live/globe
7•wolfejam•13m ago•1 comments

Probability two skaters are equal, to 3rd decimal places, after 4 distances?

https://arxiv.org/abs/2603.19300
1•johnbarron•13m ago•0 comments

gRPC wrapper service for Pi4J 4.x.x

https://github.com/bsautner/krill-oss/tree/main/pi4j-ktx-service
1•bsautner•15m ago•1 comments

The literacy you need for AI literacy

https://paulgraham.com/read.html
3•kurren•15m ago•0 comments

Security Analysis of the Official White House iOS App

https://www.atomic.computer/blog/white-house-app-security-analysis/
1•be_erik•17m ago•0 comments

Number of AI chatbots ignoring human instructions increasing, study says

https://www.theguardian.com/technology/2026/mar/27/number-of-ai-chatbots-ignoring-human-instructi...
1•croes•18m ago•0 comments

Show HN: ACP – Like MCP, but for controlling existing application UIs

https://github.com/agent-control-protocol/acp
1•cezarvil•20m ago•0 comments

Why India's best engineering talent ends up in its worst software roles

https://www.amazon.com/dp/B0GNJMC7SN
1•neocortex666•21m ago•0 comments

A Secret History of Psychosis

https://www.nytimes.com/2026/03/29/science/a-secret-history-of-psychosis.html
1•Brajeshwar•23m ago•0 comments

FOSS – Tracking delayed open-source releases

https://captnemo.in/finally-foss/
2•captn3m0•25m ago•0 comments

Show HN: I built a physical device because productivity apps failed me

https://lumium.netlify.app/
1•EruditeCoder108•26m ago•0 comments

Ask HN: Log in issues after macOS Tahoe update?

1•franze•27m ago•0 comments

The Kremlin's Cap Table: How Russia Builds War Tech Without Venture Capital

https://medium.com/@ErikKannike/the-kremlins-cap-table-how-russia-builds-war-tech-without-venture...
1•possiblelion•28m ago•0 comments

Show HN: I wrote a ~2KB executable file HTTP file downloader without Libc

https://github.com/Ferki-git-creator/hfile-htpp-file-download-cli-tool
3•DenisDolya•30m ago•1 comments

Show HN: Payphone Tag is territory game using Australia's 15,000 payphones

https://payphonetag.com
2•gangerang•32m ago•1 comments

Patriot Crisis: US Embezzles Switzerland's Fighter Jet Funds

https://clashreport.com/defense/articles/patriot-crisis-us-seizes-switzerlands-fighter-jet-funds-...
4•vrganj•32m ago•0 comments

Hypersphere Cosmology: resolving the Hubble tension geometrically

https://zenodo.org/records/19296662
1•seanpmyers•33m ago•0 comments

Bees and hummingbirds aren't just buzzing – they're sipping trace booze

https://www.theregister.com/2026/03/29/bees_hummingbirds_alcohol/
2•Brajeshwar•33m ago•0 comments