Webassembly
-
hayahash64: fast hashing without requiring SIMD or wide multiply
2026-08-02
I built a 64-bit hash whose algorithm requires only ordinary 64-bit multiplies, shifts, rotates, and XORs, and it passes all 188 default tests of a pinned SMHasher3 revision. On native CPUs that usually costs it the crown. In scalar WebAssembly the tables turn, and on Zen 5 a compiler-vectorized build reaches 61 GB/s from portable C. Here's how it works, and a browser playground where you can race it yourself.