Hacker News new | ask | show | jobs
by qudat 3487 days ago
Yes you are missing something.

We web developers are stuck with javascript in the browser. Any proposed solution would be "bolted on" to javascript.

3 comments

Given the rise of transpilers targeting JavaScript, "stuck with javascript" doesn't mean quite as much as it may have in the past. You could argue that this is "bolted on", but given the current state of tooling and how quickly it's improving, I don't think it's a fair characterization. I suspect this trend will only continue.
Here here! This transpilation thing is something relatively unique about the JS world, namely that it mutates really fast with capabilities like transpilation. Yes, it's done in other languages in limited situations but JS is the only one I can think of where transpilation is normal and standard, i.e. writing in es6 and then babelizing it to es5 for legacy nodes.

Then you add things like flow, or TypeScript, and frankly I'm losing track of exactly what it means to write in JS anyway.

If it's as simple as "javascript because web" as you suggest, how does that jibe with things like Electron (js desktop apps) and back-end JS without a web facing component? None of those people had to pick JS.
None of them _had_ to pick JS, but many of them prefer it because they already know JS from building web apps.

The projects are different, but there's a lot of crossover in terms of the people behind them.

WASM will be here soon, and from that point on we can elegantly compile from any language to the browser platform.