News for hackers. Stuff that matters.
Re:Migrating Slack's Desktop App to BrowserView by outworlder on Monday October 30, 2017 @06:58PM (#15589749)
Indeed.

Some posters seem to think that, because you CAN build a chat app consuming a few megabytes of RAM, it means you should and it's practical. It's like pointing to 64KB demoscene games and saying "see, you can write a game in 64KB, why does this one take multiple gigabytes".

Well, by all means, create a Slack competitor in hand-optimized assembly if you wish. Or whatever else you prefer (Rust?). If it's a better product, it may take over market share. Assuming your users even care about that. Hint: most are not obsessing over TOP, Activity Monitor, or whatever your OS uses.

Otherwise, don't whine. Electron makes it possible to create and ship apps very very quickly. Apps which would not exist otherwise. Every time you remove a barrier, you open up doors for more people.

While spinning up an entire browser for a single app has memory usage implications – namely, the baseline consumption is high, as is download size – the biggest issue is that it is easy to be wasteful when using web technologies. Look at Visual Studio Code, for instance. It's light and nimble compared to alternatives. It's true that a single one of its workers consume as much memory as a whole Emacs instance, but the development pace is staggering. And it still uses less memory than Slack...

Re:Migrating Slack's Desktop App to BrowserView by dijit on Monday October 30, 2017 @07:25PM (#15589906)
Why is it one extreme or the other?

I defend decisions made by IDE developers because those are niche markets, but slack is not a niche market. They're "IRC for normies" (yes, yes, they fix a lot of cruft too but, it's effectively the same system).

We're not talking about hand optimised assembly, but maybe assuming that I'm going to throw 1/8th-1/3rd of my system resources into your IRC clone is not healthy.

the highest tier macbook pro can only handle 16G of memory. I had to get a special laptop (precision 5520) in order to get 32G of ram, which I feel is the only option that is future-proof for the next 3 years, and if everyone follows the slack model then it will be the minimum in less than that.

Re:Migrating Slack's Desktop App to BrowserView by psy-q on Tuesday October 31, 2017 @04:15AM (#15591698)
Indeed, and if they'd spent their time creating a standard protocol for "modern" chat and implementing a native app per platform they could perhaps be the harbingers of the world's best new chat protocol with a host of good clients competing to see who's the best.

But that would encourage competition and open up the market, something that web 4.0 companies never want.

Re:Migrating Slack's Desktop App to BrowserView by flukus on Monday October 30, 2017 @08:44PM (#15590303)
> Hint: most are not obsessing over TOP, Activity Monitor, or whatever your OS uses.

Most users think their computer is broken, or they have a virus, or something along those lines because the perceive how slow their computer is but they don't have the knowledge to place the blame where it belongs.

Re:Migrating Slack's Desktop App to BrowserView by tedmiston on Tuesday October 31, 2017 @01:34AM (#15591294)
Slack is a multi-billion dollar company. They can afford to build performant dedicated native apps that don't eat resources for breakfast.
Re:Migrating Slack's Desktop App to BrowserView by CharlieHess on Monday October 30, 2017 @07:38PM (#15589981)
this comment is a breath of fresh air in a sea of armchair-architecting