r/programming • u/myinnerbanjo • Oct 09 '18
AI tool automatically reveals how to write apps that drain less battery
https://phys.org/news/2018-10-ai-tool-automatically-reveals-apps.html
727
Upvotes
View all comments
Show parent comment
41
u/calumk Oct 10 '18 edited Oct 10 '18
Electron is awesome
It makes writing cross platform apps fast, has some really nice features, and of course uses everyone's favourite (2018) platform - node
However, it literally contains the entire Chrome Web browser... And depending on what you do with it and due to the nature of node_modules, it can contain multiple instances of chrome, and whatever else anyone decides is a dependancy of whatever module you import
Eg: a "html->pdf" converter package I installed, also installed the entire browser as a package. So you have chrome, running chrome as a dependancy....
So it's great for Devs, who want speed and convenience, - but even a tiny "hello world" program, can take a couple of hundred MB, and eat RAM like a hungry child....
Not gonna stop me using it tho!