Hacker GitHub

← All repos

ashvardanian/NumKong

View on GitHub ↗ ★ 1,905 C

SIMD-accelerated distances, dot products, matrix ops, geospatial & geometric kernels for 16 numeric types — from 6-bit floats to 64-bit complex — across x86, Arm, RISC-V, and WASM, with bindings for Python, Rust, C, C++, Swift, JS, and Go 📐

27 mentions on Hacker News by 8 people: 2 stories, 25 comments · first 2023-07-31 · latest 2025-09-13

Mentions per year 27 mentions · busiest year 2024 (13)
20082026
  1. …But I see that https://github.com/unum-cloud/usearch which is used by duckdb-vss in turn uses https://github.com/ashvardanian/simsimd which should make a really fast exact vector similarity search possible. Am I missing something here?
    comment by roflcopter69 · 2025-09-13 · in Vector database that can index 1B vectors in 48M
  2. Here's an explanation from one of my repos: < https://github.com/ashvardanian/simsimd?tab=readme-ov-file#d... >
    comment by ashvardanian · 2025-07-05 · in The messy reality of SIMD (vector) functions
  3. …that this is still educational material. You can find more complete examples in my SimSIMD ( https://github.com/ashvardanian/SimSIMD ), but they also often assume that at a certain part of a kernel, a floating point number is guaranteed to…
    comment by ashvardanian · 2025-04-18 · in Less Slow C++
  4. …of just 2 libraries I’ve eneded up with somewhat different project layouts & dispatch mechanisms: https://github.com/ashvardanian/SimSIMD , https://github.com/ashvardanian/StringZilla One big family not covered there, is sparse…
    comment by ashvardanian · 2025-03-30 · in Towards fearless SIMD, 7 years later
  5. …of the amazing HackerNews community members have previously helped port SimSIMD to JavaScript ( https://github.com/ashvardanian/SimSIMD ), and I wrote a blog post covering some of those JS/TS-specifics, NumJS, and MathJS in 2023 (…
  6. …F16, I8, and binary vectors, mostly operating in mixed precision to avoid overflow and instability: https://github.com/ashvardanian/SimSIMD
  7. …to try it with those — I'd love to hear how it performs. PS: You may find related benchmarks here: https://github.com/ashvardanian/SimSIMD
  8. …for Search and AI, it adds AVX_VNNI, which can be used for faster 8-bit integer dot-products: https://github.com/ashvardanian/SimSIMD/blob/75c426fb190a9d4... Would be interesting to see how matrix multiplication throughput will differ…
  9. Arch specific similarity functions in SIMD, with bindings in Python and other languages: https://github.com/ashvardanian/SimSIMD
  10. …outperform both NumPy and SciPy with optimized intrinsics, as I discussed in a previous HN post ( https://github.com/ashvardanian/simsimd?tab=readme-ov-file#c... ). There's also a promising RFC in SciPy to allow pluggable backends, which…
  11. …you'd just parse the arguments directly from the tuple without string formatters—like this: <https://github.com/ashvardanian/SimSIMD/blob/80cc4bcaddbdee9a0c0e991e13376c234aff3b3f/python/lib.c#L929-L1066> It’s more error-prone, but it would…
    comment by ashvardanian · 2024-10-06 · in HPy – A better C API for Python
  12. …of `numpy` for square roots. So use it with caution. I've outlined some of the related issues here: https://github.com/ashvardanian/SimSIMD#cosine-similarity-re...
    comment by ashvardanian · 2024-09-06 · in How does cosine similarity work?
  13. …SimSIMD offers various similarity measures and quantisation levels for TypedArrays: [4]: https://github.com/ashvardanian/simsimd#using-simsimd-in-jav...
  14. SimSIMD https://github.com/ashvardanian/SimSIMD : > Up to 200x Faster Inner Products and Vector Similarity — for Python, JavaScript, Rust, C, and Swift, supporting f64, f32, f16 real & complex, i8, and binary vectors using SIMD for both…
  15. …up some operations on the server. I helped with this project to do that and get prebuilt binaries: https://github.com/ashvardanian/SimSIMD I haven't looked at ffi over node yet.
    comment by sroussey · 2024-03-28 · in Deep Learning in JavaScript
  16. I often use it even in plain loops, helps me avoid nesting ( https://github.com/ashvardanian/SimSIMD/blob/3e51bacb1b74a7e... ), but for most programmers it probably only associates with `goto cleanup;` used to destroy variables allocated…
    comment by ashvardanian · 2024-03-21 · in Goto Is Not a Horror
  17. …def wrapped(A, B): for i in range(A.shape[0]): baseline_func(A[i], B[i]) return wrapped [0] https://github.com/ashvardanian/SimSIMD/blob/3e51bacb1b74a7e...
  18. ▲ 160
    SimSIMD: Hardware-accelerated similarity metrics and distance functions
    story by sroussey · 2024-01-23 · 36 comments
  19. …part of the build process for x86_64 and arm64 on Mac and Linux, x86 and x86_64 on windows). [0] https://github.com/ashvardanian/SimSIMD
    comment by sroussey · 2024-01-23 · in From slow to SIMD: A Go optimization story
  20. …room for improvement without hitting those extremes. First of all, we should tune the epsilon here: https://github.com/ashvardanian/SimSIMD/blob/f8ff727dcddcd14... As for the 64-bit version, its harder, as the higher-precision `rsqrt`…
    comment by ashvardanian · 2023-12-18 · in Python, C, Assembly – Faster Cosine Similarity
  21. …want to try https://github.com/unum-cloud/ . The author is definitely brilliant. I should benchmark https://github.com/ashvardanian/SimSIMD/blob/main/include/si... and see if it's any faster than what hnswlib currently uses for bruteforce…
  22. …with complex conditions, but also to avoid adding one more level of nesting for that scope. [1]: https://github.com/ashvardanian/SimSIMD/blob/f8ff727dcddcd14...
    comment by ashvardanian · 2023-12-18 · in Python, C, Assembly – Faster Cosine Similarity
  23. ▲ 8
    Show HN: Beating GCC 12 – 118x Speedup for Jensen Shannon D. Via AVX-512FP16
    story by ashvardanian · 2023-10-24 · 0 comments
  24. …https://docs.sympy.org/latest/modules/physics/vector/fields.... #cfd include/simsimd/simsimd.h: https://github.com/ashvardanian/SimSIMD/blob/main/include/si... conda-forge maintainer docs > Switching BLAS implementation:…
  25. …tricks, clarifications on AVX-512 and SVE advantages, and benchmark numbers :) Here is the repo: https://github.com/ashvardanian/simsimd
  26. …reported that they use it for brute force as well… where it performed 20x faster than FAISS. https://github.com/ashvardanian/simsimd
  27. …Arm CPUs, like the Graviton 3. You can find the code, the benchmarks, and the results in the repo: https://github.com/ashvardanian/simsimd Still, even without SimSIMD, USearch seems to be one of the faster implementations of vector search.…