Hacker News new | ask | show | jobs
by amelius 3020 days ago
Isn't that simply because, until recently, JS had a "monopoly" on languages you could use inside a browser?
2 comments

If you look at it as "compilation tends to converge on the lowest-level possible output", it all fits pretty well. Dynamic scripting languages flouted that for a long time, but now there's enough JITs floating around that show that even they tend in that direction.

So if JS is the lowest possible level language, than that will be the compilation target for a program going into that context.

x86 has its many, many critics, but I've never heard any of them say that x86 is bad because so many things compile to it....

Yes, that's the only reason anyone has voluntarily used JavaScript.
This, is false. for many (some, if you prefer) use cases javascript is perfect.