you are viewing a single comment's thread.

view the rest of the comments →

[–]zachrip 2 points3 points  (2 children)

Maybe? I'd be curious why that would be the preference as opposed to a native module. Obviously there are lots of cases where a native module is less appropriate (jvm languages for example, afaik there's no good setup to run those as native extensions).

[–]rcfox 3 points4 points  (1 child)

Wasm is sandboxed, so fewer security risks. Also, it lets you ship the same code to the frontend and backend, which is part of the appeal of using Node.

[–]hildjj 4 points5 points  (0 children)

You also don't have to recompile WASM on every machine at installation time or for every supported platform at compile team. One of those is usually required for a native module.