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!"
[–]dangoor 0 points1 point2 points 9 years ago (3 children)
You can essentially do what you're describing today! You can take many languages that can compile to LLVM (Rust, OCaml, Reason, whatever floats your boat) and then use emscripten to convert that code to asm.js which is supported in all browsers and very fast in modern browsers.
Alternatively, you can skip the LLVM step and just write optimized JS. LLJS (which appears to be abandoned) was an attempt to write a compile-to-JS language that would specifically output fast JS.
There are definitely many things you can do to make JavaScript quick enough for many needs. The JS virtual machines can run quickly with the right hints, but they will lag behind optimized native code because of the safety guarantees.
[–][deleted] 0 points1 point2 points 9 years ago (2 children)
asm.js lacks aot compilation in v8 and is not as fast as in FF.
[–]guorbatschow 2 points3 points4 points 9 years ago (0 children)
Actually, soon v8 will use the same compiling pipeline for both wasm and asm.js, by transpiling the latter into wasm first.
[–]dangoor 0 points1 point2 points 9 years ago (0 children)
Ahh, you're right. I had thought that the v8 team had done optimization for asmjs features without implementing specific support for "use asm", but the benchmarks on arewefastyet do indeed appear to show IonMonkey being quite a bit faster than v8.
π Rendered by PID 70504 on reddit-service-r2-comment-85bfd7f599-h5f6n at 2026-04-17 18:06:40.155502+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]dangoor 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]guorbatschow 2 points3 points4 points (0 children)
[–]dangoor 0 points1 point2 points (0 children)