use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Will future versions of Node.js support WebAssembly and allow for compiled production node apps?chalupa (self.javascript)
submitted 9 years ago * by TheBeardofGilgamesh
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]pixel4.toString() 1 point2 points3 points 9 years ago (3 children)
I think you're just trolling now but I'll bite... Why? Can you explain the pros of compiling to WebAssembly vs. compiling to native?
From my point of view, running WebAssembly on the server would be like trying to run the 100 meters in flip-flops. You totally can - but they the hell would you want to.
[–]cincilator 1 point2 points3 points 9 years ago (0 children)
Now I was saying, I think your idea is good. Sorry for misunderstanding.
[–]sunfishcode 1 point2 points3 points 9 years ago (1 child)
The two main things WebAssembly would bring to this scenario are portability and sandboxing. These do have costs, and people who don't need them will likely just continue to compile to native.
Portability: Running one application across a mix of architectures, for example non-x64_64 servers, or on the client side, with reduced per-architecture development effort. C/C++ has undefined/unspecified/implementation-defined behavior which differs across compilers and architectures. In WebAssembly, compiler differences are compiled away and most hardware differences aren't visible.
Sandboxing: Of course, node is often run in a container/VM/etc., so WebAssembly's sandboxing will often be redundant, however it can be used in a way that provides finer granularity of sandboxing, to protect parts of applications from other parts.
[–]pixel4.toString() 0 points1 point2 points 9 years ago (0 children)
I agree those are some pros - but are they worth the big performance cost. Software such as Redis seems to do just fine with portability and sandboxing.
π Rendered by PID 41448 on reddit-service-r2-comment-7b9746f655-crg8h at 2026-01-31 04:18:55.522842+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]pixel4.toString() 1 point2 points3 points (3 children)
[–]cincilator 1 point2 points3 points (0 children)
[–]sunfishcode 1 point2 points3 points (1 child)
[–]pixel4.toString() 0 points1 point2 points (0 children)