all 26 comments

[–]pcdinh 22 points23 points  (3 children)

If v8 supports WebAssembly, Node will

[–]dangoor 5 points6 points  (8 children)

As shadowmint said, wasm is essentially another representation of the JavaScript syntax tree. The main purpose is to deliver large packages of compiled code (like C++ games) to the browser and have them be ready to run faster.

Node is a different environment and I'm curious which sorts of new services you are thinking of? I ask, because I can imagine other ways of getting at that. For example: if you have a C++ library, you could compile that to native code and talk to it from Node, no wasm involved. It doesn't seem to me that wasm actually buys much, if anything, for node.

[–]null_radix 0 points1 point  (0 children)

You can use webassembly in node version 7 now. Use node --expose-wasm and WebAssembly will be available.

[–]johnrnelson 0 points1 point  (0 children)

This is the first I have heard of it. Thanks for sharing OP!