ashvardanian / SimSIMD

Up to 200x Faster Dot Products & Similarity Metrics — for Python, Rust, C, JS, and Swift, supporting f64, f32, f16 real & complex, i8, and bit vectors using SIMD for both AVX2, AVX-512, NEON, SVE, & SVE2 📐
https://ashvardanian.com/posts/simsimd-faster-scipy/
Apache License 2.0
913 stars 51 forks source link

ESM and CommonJS release #59

Closed sroussey closed 8 months ago

sroussey commented 8 months ago

This does much better compatibility between ESM and CommonJS modules in the JS ecosystem. I also found some functions not getting exported correctly. Not sure how tests ever passed. Also, I have the test be ESM and the bench be CJS just to make sure they stay working. The source is TS now though.

I'm going to have a look at usearch next.

Please squash. :)

sroussey commented 8 months ago

Don't approve this just yet. I went to use this same logic on usearch and had issues. I think I may go to plain prebuild rather prebuildify.