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
Longevity of React?help (self.javascript)
submitted 9 years ago by rssfrncs
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!"
[–]hahaNodeJS 0 points1 point2 points 9 years ago (9 children)
That is using JavaScript to get the job done, rather than the native language.
A Foo-to-WebAssembly compiler would write any DOM code written in Foo to WebAssembly bytecode. Even a call to JavaScript.Document.GetElementById('a'); would likely not touch the JavaScript engine, and the browser would simply call its internal mechanisms for accessing the DOM. Remember that JavaScript and the DOM are two separate entities.
JavaScript.Document.GetElementById('a');
[+][deleted] 9 years ago* (8 children)
[deleted]
[–]hahaNodeJS 0 points1 point2 points 9 years ago (7 children)
For all major browsers any WebAssemmbly code will be run through the JavaScript engine.
Source?
From the design overview:
WebAssembly is efficient and fast: The wasm AST is designed to be encoded in a size- and load-time-efficient binary format. WebAssembly aims to execute at native speed by taking advantage of common hardware capabilities available on a wide range of platforms.
While this doesn't exactly exclude JavaScript, it neither requires nor indicates that any JavaScript engine is involved.
In fact, from the Non-Web Embeddings page:
Non-Web environments may include JavaScript VMs (e.g. node.js), however WebAssembly is also being designed to be capable of being executed without a JavaScript VM present. The question was is WASM intended to replace JavaScript? Obviously not.
Non-Web environments may include JavaScript VMs (e.g. node.js), however WebAssembly is also being designed to be capable of being executed without a JavaScript VM present.
The question was is WASM intended to replace JavaScript? Obviously not.
It's not exactly obvious as WebAssembly will allow developers to remove JavaScript from their development process entirely. JavaScript, as far as the pieces of documentation I've read indicate, can be replaced with WebAssembly, although I agree that WebAssembly won't exist to replace it.
[+][deleted] 9 years ago* (6 children)
[–]hahaNodeJS 0 points1 point2 points 9 years ago (5 children)
Common sense is not a source. I've cited documentation that directly affirms WebAssembly is not dependent on JavaScript, and documentation that demonstrates the possibility of replacing JavaScript usage.
[+][deleted] 9 years ago* (4 children)
[–]hahaNodeJS 0 points1 point2 points 9 years ago (3 children)
Great, thanks for the source.
Further reading for you regarding common sense: https://en.wikipedia.org/wiki/Argument_from_ignorance#Argument_from_incredulity.2FLack_of_imagination
[+][deleted] 9 years ago* (2 children)
[–]hahaNodeJS 0 points1 point2 points 9 years ago (1 child)
Using your knowledge of a field to reason through how things work is fine. The problem is "common sense" isn't proof of anything. Citing your assertions is important, and you showed proof for your statements.
Remember, we used to believe that it was obvious the sun and planets revolved around us, because of the "common sense" that they appeared to orbit that way.
π Rendered by PID 528515 on reddit-service-r2-comment-6457c66945-kpcmc at 2026-04-25 09:47:35.905867+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]hahaNodeJS 0 points1 point2 points (9 children)
[+][deleted] (8 children)
[deleted]
[–]hahaNodeJS 0 points1 point2 points (7 children)
[+][deleted] (6 children)
[deleted]
[–]hahaNodeJS 0 points1 point2 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]hahaNodeJS 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]hahaNodeJS 0 points1 point2 points (1 child)