WASM Support
PeerMR supports WebAssembly (WASM) in compute jobs. This allows your job to run code written in languages like C, C++, and Rust.
To register WASM binaries for a job, add their source URLs to the wasmBinaries
field of the execution
object:
execution.wasmBinaries = ["https://unpkg.com/browse/@wllama/wllama@1.16.2/src/single-thread/wllama.wasm"];
Then the WASM binary can be loaded via context.getWebAssemblyURL
.
Please refer to WASM LERP C++ for an example.