Hacker News new | ask | show | jobs
by andrewmcwatters 1206 days ago
The dumbest thing about people building JavaScript to me is that you burn all of the energy and labor of building with almost none of the meaningful benefits.

No one is building and ending up with bundles that are reducing the bloat of the web, you can’t tree-shake your way out of bad practices. Articles and real lived experiences show us that the web is still bloated.

And why are we transpiling anything? If people want to flirt with building, I wish JavaScript engineers would just build an implementation that compiles to machine code intermediate representation.

Which is it? Do you want to be a scripting language or a programming language that compiles to something? It’s so gross to me.

1 comments

> Which is it? Do you want to be a scripting language or a programming language that compiles to something? It’s so gross to me.

This is ridiculous. Just aesthetics. JS compiles to machine code when you run it "just in time". It's even relatively efficient considering it doesn't need static typing.

The "build step" is just for reducing the size of the payload. It is possible a binary representation would make it even smaller but not by much. Not worth the added complexity