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
797 stars 42 forks source link

WIP: Fallback for node environments where the native package can't be built #62

Closed FlipFloop closed 5 months ago

ashvardanian commented 5 months ago

Thank you, @FlipFloop! Let's try merging it with @sroussey 's #59. Is it common to use two spaces for tabs in JS ecosystem? I use 4 spaces in most projects/languages?

FlipFloop commented 5 months ago

Thank you, @FlipFloop! Let's try merging it with @sroussey 's #59. Is it common to use two spaces for tabs in JS ecosystem? I use 4 spaces in most projects/languages?

For the tabs, it's just my default...

How does this run when the native build fails however?

sroussey commented 5 months ago

Just use npm not pnpm. I can pull this around and make the fallback switch with one

sroussey commented 5 months ago

I integrated this into mine and created https://github.com/ashvardanian/SimSIMD/pull/63

The fallback is missing a few, and I need to test how i fallback a bit more

FlipFloop commented 5 months ago

Just use npm not pnpm. I can pull this around and make the fallback switch with one

Wdym?

The fallback is missing a few, and I need to test how i fallback a bit more Yeah, I need to figure out how to implement those but I have lots of classes for the next couple days. Maybe if I have time or friday? Is there a good paper/code I can look at to implement those?

FlipFloop commented 5 months ago

What needs to be added here?