by transcriptase · 3y ago · 0 comments
The sluggishness, absurd loading times, and RAM usage for even the simplest applications on blisteringly fast hardware is astonishing.
Here's to hoping that crystal/nim/golang/rust type languages start to get more popular with the kinds of people who would normally use electron.
A numerical Gaussian integration code I have written in 2017 or so can run at 1.7 million iterations per second, per core, on a stock, 3rd generation i7 3770K.
It's implemented in C++, and only written carefully. No fancy optimizations are done.
If programmers paid half the attention their code deserves, I bet most of the software we use would be 2x faster, on average.
It is about running a rebuild if Minecraft on late 90s early 2000s Macs and showing the huge performance differences.
Yes Minecraft is not a great example but it is visually striking.
I'm so sick hearing about "lazy devs." Because I was one! I left a programming career because JS is fun for me and I didn't want it to stop just being a fun hobby. (The money and prestige tricked me into thinking it was my life's calling.)
But I worked with many people who were way smarter and harder working. And we still had to ship shitty code sometimes. Money paid the bills, perfect code was a luxury.
There has to be an economic incentive for this to change. There's hundreds of millions of programmers but only a few dozen relevant tech CEOs.
However, there are also examples of very fast and nice software which are also closed source and sold for good money (OmniGraffle, BBEdit, Pixelmator, iA Writer, MindNode, etc.), and they work really fast and efficient for what they do, because while they're for profit, apparently their management understands that good code brings good money.
Let's not jump to conclusions from ambiguous sentences. I may have clarified it a bit, I guess, but it's very late here.
The tricky bit is finding the spot between “find a library” and “be lazy about it,” if you want to find tasks worth doing well.
I mean as a user everything seems fine to me. Things are getting better, not worse.
On that department, I was able to store two 3000x3000 double precision dense matrices and some big double precision vectors, plus the 3D model representing the object I'm working on in ~250MB IIRC. The code is a scientific materials simulator, BTW.
Eclipse (the IDE) uses ~1GB (after warming up) with my fat C++ config, and that thing is written in Java, and is a full blown IDE with an always on indexer + static analyzer.
VSCode uses 1GB for nothing. Atom used 1GB for nothing. Evernote uses ~900MB on start on macOS. That thing takes notes!
We have the resources and wizardry to keep bad programming in check, but we can do much better if we wanted to.