News for hackers. Stuff that matters.
Re:The Cost of JavaScript in 2019 by derefr on Sunday June 30, 2019 @11:47AM (#20318795)
The parent’s point is that, if all these things were browser JS runtime features, there’d be no tradeoff to be made. They’d be “free.”

If every JS page in the world today includes the same line of code, isn’t it obviously the fault of browser makers for not making that line of code part of the JS prelude and thereby making it “free”?

Re:The Cost of JavaScript in 2019 by worble on Sunday June 30, 2019 @12:08PM (#20318899)
That's fine, and if they do end up being part of the JS runtime, then great! But right now they don't, so by including those you are actively having to pay the cost of doing so. My point of contention with the parent post is that these features are requirements for a webpage "to be barely useable". You can absolutely make great websites and webpages without these.
Re:The Cost of JavaScript in 2019 by moltar on Sunday June 30, 2019 @12:10PM (#20318906)
That’s a slippery slope. We’ll eventually turn the browser into an OS.

And more features = more surface area for bugs.

Re:The Cost of JavaScript in 2019 by mekoka on Sunday June 30, 2019 @02:05PM (#20319507)
An OS? An exaggeration maybe, but only slight. The browser is pretty much its own environment already. It's been the case for decades. It can display text, process a variety of media, and run programs (written in JavaScript). The main cause of frustration at this point is that, compared to other popular programmable environments (C, PHP, Python, node.js, etc), where some real focus is put into evolving the language along with a variety of primary development tools, people in charge of the browser's ecosystem seem to still be coming to terms with the programmable part of its identity.

All the dilly-dallying results in community efforts that pile on top of each other to create all this bloat that is carried from one tool to the next framework.

Re:The Cost of JavaScript in 2019 by kalleboo on Sunday June 30, 2019 @01:15PM (#20319237)
It's increasingly looking like our two options are either

1. Turning the browser into an OS (what Google is working toward)

2. Downloading an OS on each page load (What webassembly is working toward)