Compile msieve with Emscripten to WebAssembly.
You can build the provided binaries using the provided build.sh
script.
Setup the Emscripten toolchain using the emsdk
tool.
Make sure emconfigure
, emmake
, and emcc
are available in your $PATH
and run the following command:
$ ./build.sh
On Windows, you might want to use the Docker variant instead.
If you don't want to set up Emscripten on your machine you can use docker with the following command:
$ docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) --platform linux/amd64 emscripten/emsdk /bin/bash ./build.sh
- The msieve source distribution is placed in the public domain by its author Jason Papadupoulos.
- The GNU Multiple Precision Arithmetic Library (GMP) is licensed either under the GNU LGPLv3 or GPLv2.
As a result, the provided binaries are in turn also licensed under the GNU LGPLv3. All other files are licensed under the Apache License v2. This mainly requests to keep the name of the original authors and give according credit to them if you change or redistribute the sources.