News for hackers. Stuff that matters.
Re:WebAssembly Browser Preview by crudbug on Monday October 31, 2016 @01:17PM (#12838785)
Is there a plan to support WASM in NodeJS anytime soon ? I see multiple optimization points on the server side as well.
Re:WebAssembly Browser Preview by nkassis on Monday October 31, 2016 @01:54PM (#12839212)
I 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?
Re:WebAssembly Browser Preview by s3th on Monday October 31, 2016 @02:14PM (#12839428)
The 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).
Re:WebAssembly Browser Preview by imtringued on Tuesday November 01, 2016 @09:50AM (#12845678)
You can't run it on an arbitrary OS or ISA without explicitly creating a build for that specific ISA or OS.
Re:WebAssembly Browser Preview by singularity2001 on Monday October 31, 2016 @05:28PM (#12841069)
You can now simply do

node --expose-wasm

> buffer=fs.readFileSync('test.wasm')

> WebAssembly.compile(buffer)

Re:WebAssembly Browser Preview by andreypopp on Monday October 31, 2016 @01:35PM (#12838991)
FWIW you can already use AOT compiled code in Node.js (native modules). Will WASM provide more benefits over that?
Re:WebAssembly Browser Preview by dragonwriter on Monday October 31, 2016 @01:55PM (#12839220)
Portability for the AOT compiled modules?
Re:WebAssembly Browser Preview by crudbug on Monday October 31, 2016 @04:49PM (#12840796)
I haven't seen any official solution for AOT from NodeJS foundation. Having "Official" WASM support drives/drags the community in a standard direction.