Live data from Hacker News

Electron 3.0.0

electronjs.org

11–20 of 141 posts

Re: Electron 3.0.0

#11
post #9

I really hope whatever the NativeWindow changes are allow Slack to finally stop rendering when the app goes to the background. My battery has been killed a couple times by the Slack renderer using ~30% cpu playing gifs while the app isn't visible, and their support says its because they don't have a notification hook for minimizing

I want to work at a company like that, where I can just blame the "stack" we're using and shrug my shoulders.

do you really though

Re: Electron 3.0.0

#12

I really hope whatever the NativeWindow changes are allow Slack to finally stop rendering when the app goes to the background. My battery has been killed a couple times by the Slack renderer using ~30% cpu playing gifs while the app isn't visible, and their support says its because they don't have a notification hook for minimizing

Is writing native apps honestly still so hard these days?

I can appreciate the concerns about maintaining multiple codebases and dealing with different delivery mechanisms and their rules, but modern iOS/macOS and Windows APIs (at least; I cannot speak for Android and Linux) seem just as easy, let you work in arguably better languages, evolve at a faster rate, and provide a better experience for users and their machines.

Re: Electron 3.0.0

#13

I really hope whatever the NativeWindow changes are allow Slack to finally stop rendering when the app goes to the background. My battery has been killed a couple times by the Slack renderer using ~30% cpu playing gifs while the app isn't visible, and their support says its because they don't have a notification hook for minimizing

Why is it taking 100% CPU to play gifs?

maybe not 100% from doing a quick test, more like 30% nowadays but that can use up power quick still

Re: Electron 3.0.0

#15
post #11
post #9

Earlier quoted context omitted.

I want to work at a company like that, where I can just blame the "stack" we're using and shrug my shoulders.

do you really though

If it makes for easier programming, yes.

Writing Slack as a native app would be a massive pain. Especially due to all the web-like features it has, the fact that it's one codebase (mainly) for desktop and web.

They also have to support Windows, Linux, Mac and mobile. Not an easy task

Re: Electron 3.0.0

#16

I really hope whatever the NativeWindow changes are allow Slack to finally stop rendering when the app goes to the background. My battery has been killed a couple times by the Slack renderer using ~30% cpu playing gifs while the app isn't visible, and their support says its because they don't have a notification hook for minimizing

Is writing native apps honestly still so hard these days? I can appreciate the concerns about maintaining multiple codebases and dealing with different delivery mechanisms and their rules, but modern iOS/macOS and Windows APIs (at least; I cannot speak for Android and Linux) seem just as easy, let you work in arguably better languages, evolve at a faster rate, and provide a better experience for users and their machi…

Shsh, or you’ll burst the web “devs” bubble of “write once, run nowhere, rewrite multiple times, run like shit here and maybe there”.

Re: Electron 3.0.0

#17
post #11

Earlier quoted context omitted.

do you really though

If it makes for easier programming, yes. Writing Slack as a native app would be a massive pain. Especially due to all the web-like features it has, the fact that it's one codebase (mainly) for desktop and web. They also have to support Windows, Linux, Mac and mobile. Not an easy task

For a billion dollar company? Give me a break.

Re: Electron 3.0.0

#18

I really hope whatever the NativeWindow changes are allow Slack to finally stop rendering when the app goes to the background. My battery has been killed a couple times by the Slack renderer using ~30% cpu playing gifs while the app isn't visible, and their support says its because they don't have a notification hook for minimizing

Is writing native apps honestly still so hard these days? I can appreciate the concerns about maintaining multiple codebases and dealing with different delivery mechanisms and their rules, but modern iOS/macOS and Windows APIs (at least; I cannot speak for Android and Linux) seem just as easy, let you work in arguably better languages, evolve at a faster rate, and provide a better experience for users and their machi…

It's still about twice the work. Or n-times, for n platforms.

Re: Electron 3.0.0

#19
post #2

I have eagerly waited for this release, as it uses Chrome 66. Previous stable version used Chrome 61, which lacked some nice additions to JS, most notably for me - the complete Intl API support.

Oh look, finally you are getting some API that has existed on proper frameworks for more than a decade.

Re: Electron 3.0.0

#20
post #7

Earlier quoted context omitted.

Assuming they update soon enough I suppose. I find using the browser window for Slack is easier, the main browsers I use let you pin tabs so it's even easier, plus I can put a darker theme on Slack, so sick of the bright white background.

I always recommend using the browser because you're likely to have one open anyway, so you might as well reuse that (and save resources) than run another one.

Are there any browsers which allow you to do your own electron-like wrapping of webapps? Would be nice to have your own native icon etc, but also be able to tune exactly what behaviour you want, for instance set per app caching levels, cookies, what happens when it goes to background, etc.

A good example is on mobile, where playing media on the web is a hassle because you never know what the background behaviour will be, whether it’ll carry on playing when you’re on another tab, or on another app, or with the screen off, or after five minutes. It seems to be a free for all now for the browsers, not much user control.

Post reply on HN