mljs / libsvm

LIBSVM for the browser and nodejs :fire:
https://mljs.github.io/libsvm/
BSD 3-Clause "New" or "Revised" License
82 stars 14 forks source link

Show how to load the library with ESM #22

Open targos opened 2 years ago

targos commented 2 years ago

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

stropitek commented 2 years ago

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

targos commented 2 years ago

Node.js supports WASI for i/o