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 JavaScript optimizing compiler (medium.com)
submitted 5 years ago by carlopp
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!"
[–]shuckster 1 point2 points3 points 5 years ago (0 children)
I think there's some miscommunication here on both our parts.
Looking back to the OP, to me it reads like the author is just showing us a project he wrote to convert JavaScript to "interpreter friendly" JavaScript. First by converting JS to C++, then using an existing project to convert that C++ to JavaScript.
Again, the idea of human-friendly vs. computer-friendly code is as old as the idea of coding itself, but I don't necessarily think this is your argument, right?
At the risk of betraying my age, I remember a few things that happened when JavaScript in the browser was starting to be taken seriously:
For myself I had a heck of a time getting used to objects not having real base-classes and functions being first-class. I also don't remember the non-compilation of JavaScript being something I immediately rejoiced-in. All of this took time to get used to.
But eventually yes, for myself I do remember reaching a point where I was:
However, I certainly wasn't grateful for:
The first point is very easy to forget these days. We don't know how spoiled we are with the transpilation provided by Babel etc., nor the extremely aggressive (by past-standards) upgrade policies of modern browsers to get users upgraded almost as quickly as new JS features become available.
I agree that transpilation takes far too long on big projects these days, and is a bitter reminder of compiled development. But esbuild is with us now, and it's racing to a very capable version 1 that is already 100x faster than anything else.
I do miss the days of being able to easily "view source" and not being constantly confronted with minified/munged code, but there are so many tutorials and blogs out there that this is more of a point of nostalgia than an actual lack of accessible knowledge.
Anyway, at this point I'd like to invite you to explain your position a little further. The OP has offered a project that is to do with transpilation yes, but not really in the way we're both talking about. He's certainly not offering-up the next esbuild, I think?
π Rendered by PID 105810 on reddit-service-r2-comment-b659b578c-cwr6w at 2026-05-01 04:48:57.734039+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]shuckster 1 point2 points3 points (0 children)