by xbpx · 5y ago · 0 comments
Still, I do wince sometimes at the Everest sized heaps created in JS to do even the most trivial of tasks. 10s of thousands or hundreds of thousands of objects being generated in a smallish React app.
It's fast enough, the VM is obscenely optimized, and it's readable. But what is all that stuff really _doing_?
It reminds me I recently had a company ship me a laptop with Win on it. I turned it on and logged in and the CPU was just a madhouse with Edge and 2 tabs open. What is the CPU even _doing_??? Does the company mine crypto on company laptops for cash flow... or, what?
Even in a VM, Windows is constantly doing things in the background, whether it's touching the disk, burning CPU cycles, or making network connections. The background services are both numerous and opaque, so who knows what it's actually doing.
But man, it only loads services I know about and it's sooooo fast. And best of all it shuts up when I stop working :)
For example, Google Closure Compiler can take
function hello({name}) {
alert('Hello, ' + name);
}
hello({name: 'World'});
and compile it into alert("Hello, World");Clojurescript made that choice, though in retrospect it kind of seems like they backed the wrong horse.
... for the developer with the latest, highest-specced machine and only an IDE their app open.
thats what i assume