Re:The computers are fast, but you don't know it
by bouke on Friday June 17, 2022 @01:05AM
(#31774310)
And things are slow as we waste all that processing power on running javascript one way or another. And everything requires a slow blocking connection to the mainframe. Nowadays the “always connected” mindset is really slowing us down.
Re:The computers are fast, but you don't know it
by onion2k on Friday June 17, 2022 @01:57AM
(#31774556)
That explains why Electron apps and Web pages are slow but the post you're replying to is about games...
Re:The computers are fast, but you don't know it
by bouke on Friday June 17, 2022 @02:03AM
(#31774589)
Ok fair enough, but the mindset is spreading: json (javascript) parsing is what caused GTA Online loading times to balloon and I dread playing Call of Duty online as it wants to download and install dozens of GBs every time I launch it.
Re:The computers are fast, but you don't know it
by wruza on Friday June 17, 2022 @03:11AM
(#31775024)
It wasn’t json parsing per se, but a buggy roll-your-own implementation that used a function (sscanf iirc) with a surprising nontrivial complexity on a long string. Fun part is, if they just outsourced that load to javascript and its JSON.parse, they’d never encounter that exponential slowdown. Javascript is a nice target to blame, but it isn’t the problem. CPUs got hundreds of times faster, javascript only divides it by N, which stays low and constant (at least) through decades. Do you really believe that if browsers only supported MSVC++-based DLLs without scripting, sites would run faster? That would be naive.
Re:The computers are fast, but you don't know it
by jiggawatts on Friday June 17, 2022 @06:52AM
(#31776383)
You may be thinking of GTA Online, but the point is still valid.
Re:The computers are fast, but you don't know it
by fennecfoxy on Friday June 17, 2022 @07:16AM
(#31776566)
Games do use JS, some UIs actually render using a webview (Unity etc is capable of this)
Re:The computers are fast, but you don't know it
by jcranberry on Friday June 17, 2022 @09:48AM
(#31778099)
I didn't see anyone complaining about games in the parent comments.
Re:The computers are fast, but you don't know it
by fennecfoxy on Friday June 17, 2022 @07:19AM
(#31776586)
Afaik much JS these days is optimised, see things like V8's turbofan https://v8.dev/blog/turbofan-jit
However there is definitely still less intrinsic optimisation from a dev perspective I think - people will iterate over the same array multiple times in different places rather than do it once.
I guess our industry has decided moving faster is better than running faster for a lot of stuff.
Re:The computers are fast, but you don't know it
by taneq on Friday June 17, 2022 @01:17AM
(#31774367)
Part of the reason computers seem slower than they did is that most programs (and most programmers) only use one of those cores. Most of the reason, though, is that programmers buy new computers, and also that programmers only optimise code that’s slow on their computer.
I used to play 3D games on Pentium-based machines and I thought of them as a "huge upgrade" from 486, which in turn were a huge upgrade from 286, etc...
Now, people with Ice Lake CPUs in their laptops and servers complain that things are slow.