DEV Community

Discussion on: Minimalist browsing with Min browser

Collapse
 
ben profile image
Ben Halpern

Something still bothers me about a browser written in Electron. Like, if minimalism is the goal, why not also be minimal about resource hogging?

I think Mozilla is on the right path with their emphasis on performance, and frankly their innovation in fostering Rust and pushing WebAssembly.

I appreciate things like Min as a proof of concept, and it's maybe unrealistic for indie projects like this to not go this direction.

Anyway, just some grumblings. I still think it's cool. It's also open source. Anyone could take what they've done and port it to more native if they felt like it. πŸ™‚

Collapse
 
wangonya profile image
Kelvin Wangonya

Interesting point. What's wrong with software written in Electron? Or is it that it just might have been better in terms of performance if it were native?

Collapse
 
ben profile image
Ben Halpern

It just uses a lot of memory and system resources. Each instance of Electron is "bloated" by the fact that it's JavaScript running in a browser instance. Memory management is really an afterthought in this regard. The app itself can still be fast and responsive, but it's always going to hog more than things built with better resource management.

Electron is a practical approach, but it's still less than ideal IMO. I'd consider building in Electron myself, but there's something about core apps like browsers that feel like they should be built more from the ground up with better resource management.

(I could probably say the same thing about code editors, and yet I use VS Code)

Thread Thread
 
wangonya profile image
Kelvin Wangonya • Edited

Haha yeah, code editors were the first thing that came in mind when I read your first comment. I used to use Atom (which first introduced me to Electron) before I switched to VS Code.

You make a good point though. Good thing is that its open source so I'm sure someone who uses it and really likes it might do something about it if they have the skills to do so (I'm not there yet πŸ˜…)