libsvm icon indicating copy to clipboard operation
libsvm copied to clipboard

Show how to load the library with ESM

Open targos opened this issue 2 years ago • 2 comments

With node --experimental-wasm-modules, it should be possible to import libsvm from './build.wasm'

targos avatar Apr 04 '22 08:04 targos

That's only if we are able to build a standalone wasm file. I'm not sure it's possible, because of file io methods that are called to serialize the model.

https://github.com/emscripten-core/emscripten/wiki/WebAssembly-Standalone

stropitek avatar Apr 04 '22 12:04 stropitek

Node.js supports WASI for i/o

targos avatar Apr 04 '22 13:04 targos