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
20082026
-
…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 -
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 -
…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++ -
…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 -
…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 (…
comment by ashvardanian · 2025-03-10 · in How to Implement a Cosine Similarity Function in TypeScript -
…F16, I8, and binary vectors, mostly operating in mixed precision to avoid overflow and instability: https://github.com/ashvardanian/SimSIMD
comment by ashvardanian · 2025-02-24 · in The best way to use text embeddings portably is with Parquet and Polars -
…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
comment by ashvardanian · 2024-12-24 · in Why HNSW is not the answer and disk-based alternatives might be more practical -
…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…
comment by ashvardanian · 2024-11-30 · in Understanding SIMD: Infinite complexity of trivial problems -
Arch specific similarity functions in SIMD, with bindings in Python and other languages: https://github.com/ashvardanian/SimSIMD
comment by intalentive · 2024-10-16 · in A not so fast implementation of cosine similarity in C++ and SIMD -
…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…
comment by ashvardanian · 2024-10-15 · in A not so fast implementation of cosine similarity in C++ and SIMD -
…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 -
…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? -
…SimSIMD offers various similarity measures and quantisation levels for TypedArrays: [4]: https://github.com/ashvardanian/simsimd#using-simsimd-in-jav...
comment by dleeftink · 2024-07-08 · in Show HN: Simulating 20M Particles in JavaScript -
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…
comment by westurner · 2024-06-25 · in SIMD-accelerated computer vision on a $2 microcontroller -
…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 -
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 -
…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...
comment by theamk · 2024-03-13 · in NumPy vs. BLAS: Losing 90% of Throughput -
…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 -
…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 -
…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…
comment by costco · 2023-12-18 · in Python, C, Assembly – Faster Cosine Similarity -
…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 -
…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:…
comment by westurner · 2023-10-08 · in Show HN: SimSIMD vs SciPy: How AVX-512 and SVE make SIMD nicer and ML 10x faster -
…tricks, clarifications on AVX-512 and SVE advantages, and benchmark numbers :) Here is the repo: https://github.com/ashvardanian/simsimd
comment by ashvardanian · 2023-10-07 · in Show HN: SimSIMD vs SciPy: How AVX-512 and SVE make SIMD nicer and ML 10x faster -
…reported that they use it for brute force as well… where it performed 20x faster than FAISS. https://github.com/ashvardanian/simsimd
comment by ashvardanian · 2023-08-23 · in Show HN: Fast vector similarity using Rust and Python -
…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.…
comment by ashvardanian · 2023-07-31 · in USearch: Smaller and faster single-file vector search engine