roaring icon indicating copy to clipboard operation
roaring copied to clipboard

WebAssembly support

Open maciej opened this issue 7 years ago • 2 comments

Go 1.11 will introduce experimental WebAssembly support. It might be a good idea to check if roaring can be compiled with WASM as target.

maciej avatar Jun 13 '18 09:06 maciej

Indeed, and it could be compared with https://github.com/SalvatorePreviti/roaring-wasm

cc @SalvatorePreviti

lemire avatar Jun 13 '18 19:06 lemire

Interesting. Didn't know this at all. The library compiles without any special effort and the wasm should work as it is everywhere is supported. Consider however that from my tests the WASM version is much slower than the native version, and it has no support for SSE4.2 and AVX2 of course and there is no integration with the host garbage collector. At the moment I am working on the NodeJS native port, I would like to go back and complete the wasm version in the future. You can already get the wasm from the npm package and try it out however.

SalvatorePreviti avatar Jun 14 '18 08:06 SalvatorePreviti