News for hackers. Stuff that matters.
Re:Swiss Tables and absl::Hash by ryanworl on Wednesday October 24, 2018 @09:33AM (#18292225)
WASM has a popcnt instruction, and will eventually have SIMD. I think the bridging cost is less than calling something through NAPI or a native add-on because you're still in the VM.

Great hash table by the way!

Re:Swiss Tables and absl::Hash by flurrything on Wednesday October 24, 2018 @09:52AM (#18292394)
node, chrome, etc. already support the current WASM SIMD proposal
Re:Swiss Tables and absl::Hash by ryanworl on Wednesday October 24, 2018 @10:45AM (#18292837)
Do you know when this landed and/or if I need a flag to enable it in Node? I'm running Node 11 and get an error when trying to run a function with a SIMD instruction in it.

I hacked up a WAT file with this inside a function body and compiled it with wat2wasm --enable-simd

    (local $2 v128)
    (set_local $2
       (i8x16.splat (i32.const 8))
    )
And I get an error "invalid local type" when I try to run it within Node.