News for hackers. Stuff that matters.
Re:Lightgallery: Electron and Node.js-based image viewer for... by mananvaghasiya on Thursday May 26, 2016 @05:20AM (#11776650)
This is good and all but anyone else see a problem with electron apps for everything? all these apps built with electron really clogging my ram.
Re:Lightgallery: Electron and Node.js-based image viewer for... by oblio on Thursday May 26, 2016 @06:11AM (#11776818)
If Electron means that people actually make cross platform apps, I'm all for it. Slightly suboptimal apps are better than no apps or discontinued apps.
Re:Lightgallery: Electron and Node.js-based image viewer for... by mananvaghasiya on Thursday May 26, 2016 @06:19AM (#11776848)
Me too, but there should be some way to share resources between them
Re:Lightgallery: Electron and Node.js-based image viewer for... by oblio on Thursday May 26, 2016 @06:49AM (#11776961)
Shouldn't that be the OS's task? My kernel knowledge is rusty but I remember reading about concepts such as DLL/SO sharing, memory page sharing, etc.
Re:Lightgallery: Electron and Node.js-based image viewer for... by szastupov on Thursday May 26, 2016 @07:04AM (#11777025)
This works for libraries/frameworks installed in a common place, like /usr/lib or /Library/Frameworks.

But, all those apps ship their own copy of Electron, so there is no simple way for OS to share pages.

Re:Lightgallery: Electron and Node.js-based image viewer for... by oblio on Thursday May 26, 2016 @07:07AM (#11777034)
Well, then this seems more of a packaging problem than an actual tech problem.

In an ideal world that would be the next step if the app reaches a large audience. I'm not sure that from the upstream developer's point of view the investment of limited resources into per-OS packaging is a good idea at this stage...

Re:Lightgallery: Electron and Node.js-based image viewer for... by yAnonymous on Thursday May 26, 2016 @06:00AM (#11776781)
It only uses slightly more memory than Eye Of Gnome. If that's the price I have to pay for desktop apps with a better UI, I'll pay it.
Re:Lightgallery: Electron and Node.js-based image viewer for... by mananvaghasiya on Thursday May 26, 2016 @06:15AM (#11776837)
slight you say? eog 8.1MB vs lightgallery 60MB for same image file.
Re:Lightgallery: Electron and Node.js-based image viewer for... by yAnonymous on Thursday May 26, 2016 @06:33AM (#11776906)
Even when opening EoG without any image, it uses 25MB here. Are you using the values from the system monitor? Pretty sure those are not very accurate.
Re:Lightgallery: Electron and Node.js-based image viewer for... by mananvaghasiya on Thursday May 26, 2016 @06:45AM (#11776945)
yup 6.1MB confirmed with top, without image
Re:Lightgallery: Electron and Node.js-based image viewer for... by mrmondo on Thursday May 26, 2016 @06:32AM (#11776902)
Javascript is the new Flash Player
Re:Lightgallery: Electron and Node.js-based image viewer for... by onion2k on Thursday May 26, 2016 @06:44AM (#11776941)
JavaScript is becoming what Java set out to do, but in a way that works for users.
Re:Lightgallery: Electron and Node.js-based image viewer for... by mrmondo on Thursday May 26, 2016 @07:12AM (#11777056)
And not in a way for engineers that want to host applications, or people who care about single threaded web-frame apps chewing up their laptops battery and RAM.
Re:Lightgallery: Electron and Node.js-based image viewer for... by mananvaghasiya on Thursday May 26, 2016 @06:43AM (#11776937)
I wouldn't blame JavaScript.
Re:Lightgallery: Electron and Node.js-based image viewer for... by mrmondo on Friday May 27, 2016 @02:17AM (#11784250)
Lots of people didn't blame Adobe either...
Re:Lightgallery: Electron and Node.js-based image viewer for... by tdkl on Thursday May 26, 2016 @06:21AM (#11776861)
It solves the problem of people not upgrading their PCs. /s
Re:Lightgallery: Electron and Node.js-based image viewer for... by mananvaghasiya on Thursday May 26, 2016 @06:25AM (#11776878)
for sure