10 ms·
Is there a plan to support WASM in NodeJS anytime soon ? I see multiple optimization points on the server side as well.
by crudbug 10y ago
Is there a plan to support WASM in NodeJS anytime soon ? I see multiple optimization points on the server side as well.
- andreypopp 10y agoFWIW you can already use AOT compiled code in Node.js (native modules). Will WASM provide more benefits over that?
- dragonwriter 10y agoPortability for the AOT compiled modules?
- crudbug 10y agoI haven't seen any official solution for AOT from NodeJS foundation. Having "Official" WASM support drives/drags the community in a standard direction.
- nkassis 10y agoI might be missing what you are trying to do but can't you get that optimization today with using FFI to use native modules in your server side code?
- s3th 10y agoThe main benefit would be shipping a single WebAssembly module to target client and server (e.g. the same benefit of sharing JS between the browser and Node).
- imtringued 10y agoYou can't run it on an arbitrary OS or ISA without explicitly creating a build for that specific ISA or OS.
- singularity2001 10y agoYou can now simply do node --expose-wasm > buffer=fs.readFileSync('test.wasm') > WebAssembly.compile(buffer)