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 x86 AVX2 & AVX-512 and Arm NEON & SVE 📐
https://ashvardanian.com/posts/simsimd-faster-scipy/
Apache License 2.0
806 stars 42 forks source link

GoLang bindings #28

Open ashvardanian opened 8 months ago

ashvardanian commented 8 months ago

Initial implementation is very slow, due to the costs of cGo calls.

corani commented 5 months ago

I have no experience with this module, but it might be worth trying: https://github.com/ebitengine/purego

This apparently allows calling C-code without the CGo overhead.

ashvardanian commented 5 months ago

Great reference, @corani! Never seen it! I can try it later, but it's not a high priority right now. Feel free to open a PR if you ever have time 🤗