Fast popcount using WebAssembly SIMD.
i8x16.popcntextadd_pairwise
import { popcount } from "https://code4fukui.github.io/popcount/popcount.js";
const data = new Uint8Array();
const cnt = popcount(data);
console.log(cnt);wat2wasm popcnt16.wat -o popcnt16.wasm
deno run -A https://code4fukui.github.io/bin2js/bin2js.js popcnt16.wasm