by PaulHoule · 7y ago · 0 comments
Really I don't know about JS Hell, but C++ compilers aren't slow because nobody has tried to speed them up, rather the nature of C++ is that it is slow to compile. Every so often somebody rage quits C++ and starts a language like Go because of this.
The real data point is that Clojurescript is only slightly slower to execute than real Clojure, but takes two orders of magnitude more time to compile.
He's right though that people have to move on past Electron. Lately I have been building applications in Python/tkinter and I still can't get over how fast it is on both my mac and PC both to start up and when running. There is none of the "spend 30 seconds watching a splash screen" that we're are accustomed to with advanced applications in Java and C++ (eg. PyCharm and Photoshop)
Another thing that impresses me is the size and speed of small GUI applications written in C for Windows such as this little utility:
https://docs.microsoft.com/en-us/sysinternals/downloads/disk...
I think MacOS is also part of the problem. Lately I added a new keyboard to my Mac and I thought I was having Bluetooth problems but the main reason it was unresponsive was that the spellchecking baked into the OS would cause keyboard input to lock up for a few seconds periodically.
Later on I noticed that web browsers on Mac OS (Safari/Firefox/Chrome) seem to "go to lunch" and not respond to mouse clicks for 5 seconds every so often. I imagine this impacts Electron apps.
I think people have been "frog boiled" into expecting computers to be slow.
Are your applications of similar size and complexity as these Java and C++ applications? Photoshop is a huge beast.
I ask because I’ve written C++ GUI applications that start up instantly (sub second). I’ve also written Python GUI applications that did not. It depends on what and how much you’re doing on startup. Most GUI applications aren’t as large as PyCharm or Photoshop and start up significantly faster, regardless of implementation language.
> Later on I noticed that web browsers on Mac OS (Safari/Firefox/Chrome) seem to "go to lunch" and not respond to mouse clicks for 5 seconds every so often.
I’ve not had this problem personally, but I have had Chrome lock up my entire system on Ubuntu (input including mouse clicks simply not doing anything, but if I happen to have another window open I can alt tab to that and then everything is good again, or at least I can kill Chrome).
I’ve used Qt, WxWidgets, FLTK, GTK+ and a FOX as my GUI toolkit over the years and, for my small applications, all of those start so fast I don’t notice it. The only slowdown I’ve noticed is with Qt when using QtQuick (I assume because it has to load, parse and then execute QML — essentially JavaScript — as well as the C++ code). It’s still faster starting up than PyCharm and Photoshop for anything that I’ve used it for.
The other part where Qt can really slow down is when you have to instantiate a 3D driver module. That can block absolutely everything.
Once it has warmed up, it's close to C however.
It's not really the application size though. It's whether you load/initialise things eagerly at startup, or do you do it as needed/in the background.
If you see a splash screen, you know it's the first option. The slash screen is visible and active after all - the app itself is loaded.
Worst thing is the Finder. Moving files between folders used to be instant. Now it sometimes takes a few seconds for files to appear in a folder after you drop them.
I have no clue why.
I tell myself that the problem is that the old, experienced programmers are leaving, and inexperienced young programmers are too busy adding new features (it works! good enough!) to make sure anything actually works well. And of course that never would have happened if Steve Jobs was still alive. (Just kidding. Steve Jobs loved fancy graphics that made everything slow)
You joke, but this is a real issue. It's hard to find any other explanation for why the quality of commonly-used software has taken such a massive nosedive in the latest 15 years, outside the FLOSS world (CADT syndrome notwithstanding!) even as software was supposed to be "eating the world" by now! Windows Vista, anyone? (Or, as some folks in Microsoft marketing used to call it rather presciently, Windows "Mojave"?) I guess it just goes to show that, yes, systems programming still matters, as do projects that attempt to open it up to a far broader audience while keeping and even strengthening its focus on rigor, performance and correctness.
Now, the average user has to totally relearn every few years how to do less of the things they could do before. There’s an obsession with reinventing the wheel that takes precedence to stability.
Commercial software is generally much better than it was 15 years ago.
Yes, Vista was bad but Win7 was good. You should have seen Win3 or 95 though. You’d expect to have the computer crash multiple times a day.
(Even Microsoft had to give up not only on Vista but on Windows 7 itself for "low-end platforms" - they ultimately promoted a "Starter" version of the latter that was specifically built to never even try to launch more than three apps at the same time! I won't bother to attempt even the most cursory comparison with what a proper, FLOSS alternative can still achieve on the same hardware, even today...that would be tedious and ultimately beside the point.)
https://piunikaweb.com/2018/03/01/google-blames-apple-for-dr...
Software Date Driven Development is a scourge, but shareholders (or potential purchasers) scream for their instant ROI, and this is what we get.
Has the GUI of tkinter apps improved over the past couple of years? I have yet to see an interface built with tk that doesn’t look like it was meant for Win95.
Reasonable or not, I have a hard time accepting workflows worse than what Microsoft Access or VB 6.0 had.
So much this!