singlestore-wasm-toolkit
singlestore-wasm-toolkit copied to clipboard
Create a SIMD example
Fixed SIMD is enabled by default in the wasmtime runtime.
A very straightforward example with few dependencies is desired before adding a more complex real-world use-case. For example multiply_arrays from https://v8.dev/features/simd might be a good place to start.
Some more interesting examples beyond neural networks could include:
- https://github.com/intel/hyperscan (C++)
- https://github.com/ermig1979/Simd/blob/master/src/Use/UseFaceDetection.cpp
- https://github.com/SnellerInc/sneller (golang)
- https://github.com/minio/sha256-simd (golang)
- https://github.com/echamudi/opencv-wasm
It looks like Rust's core library has wasm32-specific SIMD support that we should be able to utilize if we want to handwrite something. I'm going to dig a bit and see if I can find a project already out there using it that would make sense.