@liudonghua123/octave-wasm
v0.0.1
Published
GNU Octave compiled to WebAssembly for use in the browser and web workers.
Maintainers
Readme
octave-wasm
Build system for compiling GNU Octave into Web Assembly.
Usage
To build the Docker image run:
$ make buildThere are simple examples of how to interact with Octave from JavaScript in the test directory. The default targets a web environment, but most applications will want to run Octave in a Web Worker. Running the Docker container will serve the web example at http://localhost:8080
$ make runDevelopment
To update the build process to a newer version of the Emscripten SDK modify the SDK_VERSION and NODE_VER environment variables.
You may need to uncomment the #RUN sh ./emsdk_env.sh line to find the version of Node to use.
The build is currently based on GNU Octave 7.2.0. The vendored source code has various minor modifications that are required for it to compile. If you wish to update to a newer version of Octave you will likely have to make similar changes.
