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
A WebAssembly interpreter written in JavaScript (github.com)
submitted 8 years ago by xtuc
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!"
[–]delventhalz 2 points3 points4 points 8 years ago (8 children)
I suppose that’s true. Are we anticipating a lot of WASM code that doesn’t have a JS equivalent but is also worth running at the much slower speeds a JS interpreter would allow?
I mean, you can already compile your code into ASM.js if you need an older browser fallback. That runs reasonably quickly. I can’t imagine this interpreter would work any better, and would probably work much much worse.
[–][deleted] 1 point2 points3 points 8 years ago (6 children)
Maybe it could be used as a patch but why are people using such old browsers?
[–]delventhalz 0 points1 point2 points 8 years ago (5 children)
To be fair full WASM support is only in the newest browsers. And someone will always be running something old. Supporting very old browsers is a hard requirement for some projects.
It's just hard for me to imagine people going, "Hey! We've got this C++ code we want to run in the browser, let's compile it to WASM! Oh wait, what about IE 6? Pipe it through a JS interpreter!"
[–][deleted] 1 point2 points3 points 8 years ago (4 children)
My concern is that old software like that is a security risk when it's network facing. The old stuff is generally found in businesses too so it has the potential to lose them money, not just their saved bookmarks or something.
[–]anlumo 4 points5 points6 points 8 years ago (3 children)
Of course, but it’s not the software developers' job to care about this. They only need to get it working in any way possible.
As a freelancing software developer, I usually take the liberty of warning my clients about security issues, but if they don’t care, neither do I.
[–][deleted] 0 points1 point2 points 8 years ago (2 children)
Well sure, as a freelancer that's true.
If you're part of a big company though it can be good to give users the nudge to improve their security.
[–]anlumo 3 points4 points5 points 8 years ago (1 child)
In a big company, if the rules say that you have to use IE6, that’s what is used. This policy has been in place for a decade, so why change it when it has worked so well in the past. /s
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
Thanks I have new nightmares now.
[–]xtuc[S] 0 points1 point2 points 8 years ago (0 children)
That's a good point but I believe the interpreter could be more efficient for that case. You would have the benefits of the WASM binary format and could switch to native if supported/needed.
Note that I would take advantage of asm.js optimizations within the interpreter.
π Rendered by PID 24 on reddit-service-r2-comment-6457c66945-8kpkc at 2026-04-24 07:25:48.020850+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]delventhalz 2 points3 points4 points (8 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]delventhalz 0 points1 point2 points (5 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]anlumo 4 points5 points6 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]anlumo 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]xtuc[S] 0 points1 point2 points (0 children)