Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show how to load the library with ESM #22

Open
targos opened this issue Apr 4, 2022 · 2 comments
Open

Show how to load the library with ESM #22

targos opened this issue Apr 4, 2022 · 2 comments

Comments

@targos
Copy link
Member

targos commented Apr 4, 2022

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

@stropitek
Copy link
Member

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
Copy link
Member Author

targos commented Apr 4, 2022

Node.js supports WASI for i/o

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants