This might be a hot take but I’ve noticed some complicated electron apps are faster than some simple native apps. The striking example to me is how Vs code runs better and has a lower startup time than the stock Windows 11 File manager.
A well written electron app is better than a poorly written native app sometimes.
The Windows File Manager is really just awful in that regard. You can get alternative file managers that start up in a fraction of that time, with more features.
Startup time isn’t really the worst of it. RAM usage is worse. And if a program uses lots of RAM, it will still appear quite performant. But it makes everything else on your system slower.
You can use C++ for web technology instead of JavaScript? I’m taking a class in C++ right now so I’d be happy to swap janky JavaScript for pedantic but speedy C++ in new projects.
This might be a hot take but I’ve noticed some complicated electron apps are faster than some simple native apps. The striking example to me is how Vs code runs better and has a lower startup time than the stock Windows 11 File manager.
A well written electron app is better than a poorly written native app sometimes.
I mean, sure, but:
The Windows File Manager is really just awful in that regard. You can get alternative file managers that start up in a fraction of that time, with more features.
Startup time isn’t really the worst of it. RAM usage is worse. And if a program uses lots of RAM, it will still appear quite performant. But it makes everything else on your system slower.
There’s also the added CPU overhead from using JavaScript for everything to contend with.
As long as the program is not bloated, JavaScript can be fast. Unfortunately that’s not the case with most programs.
especially if they’re proprietary…
That’s because all the important bits in VSCode are reimplemented in C++
You can use C++ for web technology instead of JavaScript? I’m taking a class in C++ right now so I’d be happy to swap janky JavaScript for pedantic but speedy C++ in new projects.
VSCode is a desktop app, hence using real languages is easy. For websites there is webassembly. Try this: https://www.rust-lang.org/what/wasm
It’s getting there!
https://webassembly.org/