←back to thread

50 points senfiaj | 1 comments | | HN request time: 0s | source
Show context
SurceBeats ◴[] No.45809221[source]
The article is kind of right about legitimate bloat, but "premature optimization is evil" has become an excuse to stop thinking about efficiency entirely. When we choose Electron for a simple app or pull in 200 dependencies for basic tasks, we're not being pragmatic, we're creating complexity debt that often takes more time to debug than writing leaner code would have. But somehow here we are, so...
replies(7): >>45809249 #>>45809272 #>>45809432 #>>45809461 #>>45809481 #>>45809606 #>>45809909 #
rossant ◴[] No.45809249[source]
Yes. Too many people seem to forget the word "premature." This quote has been grossly misused to justify the most egregious cases of bloat and unoptimized software.
replies(1): >>45809271 #
SurceBeats ◴[] No.45809271[source]
Yeah, somehow it went from don't micro optimize loops to 500MB Electron apps are just fine actually hahaha
replies(3): >>45809389 #>>45809477 #>>45809548 #
stared ◴[] No.45809477[source]
I hope Tauri gets some traction (https://v2.tauri.app/). The single biggest benefit it drastically smaller build size (https://www.levminer.com/blog/tauri-vs-electron).

A 500MB Electron app can be easily a 20MB Tauri app.

replies(1): >>45809712 #
brabel ◴[] No.45809712[source]
Not sure. Tauri apps run on the browser and browsers are absolute memory horders. At any time my browser is by far the biggest culprit of abusing available memory. Just look at all the processes it starts, it’s insane and I’ve tried all popular browsers, they are all memory hogs.
replies(3): >>45811682 #>>45811683 #>>45811778 #
1. peterfirefly ◴[] No.45811682[source]
Electron apps also run in a browser. They package an entire browser as part of the app.