News for hackers. Stuff that matters.
Re:Where’s all my CPU and memory gone? The answer: Slack by rco8786 on Thursday July 27, 2017 @04:34PM (#14869195)
I know right. Real "developers" only write in assembly with a completely separate codebase for each target platform. No code review or source control either, because they're not lazy.

Actual issues aside (yes slack takes up way too much memory and it's due to the platform they chose which is hugely bloaty but will undoubtedly get smaller/faster over time just as everything does) why would you choose to attack the developers for building a tool that millions of people use with great success? They're not lazy. They used the best tools available to them to deliver their product and they're reaching the limits of said tools. Now they have to address those limits. This is exactly how software is supposed to work.

Re:Where’s all my CPU and memory gone? The answer: Slack by Rjevski on Thursday July 27, 2017 @04:38PM (#14869227)
I choose to attack those developers because they're taking an easy path knowing that it will end up in a bad product, yet they still do it.

At the end of the day I don't care which technology is used as long as the end product is good, however a chat client that uses 1,5GB of memory is the total opposite of good. Come on, it's a f'ing chat client - a solved problem and existing implementations (look at any IRC client) take like 100MB's max. I would have no problems with Electron if they somehow managed to get the resource usage similar to a native app.

Re:Where’s all my CPU and memory gone? The answer: Slack by npizzolato on Thursday July 27, 2017 @04:47PM (#14869321)
Perhaps the attitude of measuring the good-ness of a chat client solely on how much memory it uses is one of the main contributors to the rise in popularity of Slack and the decline in popularity of IRC. I personally don't care if my chat client uses more ram than its competitors if it's easier to use. Judging by the amount of people using Slack, I don't think I'm alone.
Re:Where’s all my CPU and memory gone? The answer: Slack by kelnage on Thursday July 27, 2017 @04:49PM (#14869354)
If its a "solved problem" then why aren't users flocking to IRC over Slack?

The answer is likely multifaceted, but part of it is undoubtedly the usability of the client - which may be resource intensive, but that was likely a trade off for speed/ease of development.

Re:Where’s all my CPU and memory gone? The answer: Slack by omaranto on Thursday July 27, 2017 @05:17PM (#14869659)
Why would people flock from Slack to IRC? IRC is much older, it's probably more like people sticking with IRC and not trying Slack. Which presumably is happening in large numbers.
Re:Where’s all my CPU and memory gone? The answer: Slack by rhizome on Thursday July 27, 2017 @05:02PM (#14869487)
NIH Syndrome. You can't make a walled garden out of IRC.
Re:Where’s all my CPU and memory gone? The answer: Slack by cuckcuckspruce on Thursday July 27, 2017 @05:07PM (#14869549)
Why can't you? You just don't connect your IRC server to any other server.
Re:Where’s all my CPU and memory gone? The answer: Slack by rhizome on Thursday July 27, 2017 @05:16PM (#14869637)
True, so maybe they're also hoping for patents or other ancillary NIH benefit.
Re:Where’s all my CPU and memory gone? The answer: Slack by frgtpsswrdlame on Thursday July 27, 2017 @04:59PM (#14869457)
Marketing? IRC's not sexy like Slack is. Realistically, it's going to take what, 10 extra minutes for a dev to get IRC down versus Slack?
Re:Where’s all my CPU and memory gone? The answer: Slack by vintagedave on Thursday July 27, 2017 @05:07PM (#14869542)
There's an important realisation as a developer, or in fact as anyone whose work affects other people. Consider a bug or badly created feature that costs users ten seconds of their time. Let's assume a hundred thousand users, encountering that once a day, for a year. That's 4200 man-hours lost per year.

Is it user-focused to allow that bug to remain? How do you judge the importance of your users' time?

Slack - often Electron-based apps in general - are fast for the developers to create, but cause problems for the users. There are many more users than developers, and a good question is, is the value of users' time and money less than the developers, or the user's resources (such as memory) the developers' to freely use? Developers can't write their whole app in assembly, but at what point do the problems their choice of technology cause for users overbalance a reasonable standard of consideration for their users and user experience? An app with the problems Slack has is one that has largely prioritised the developer's time and resources over their users.

So your "real developers" comment is a straw man ;) But you're close, I think: better is to consider the balance of value developers ascribe to themselves vs their users and what use of Electron, and app behaviour like this, says.

Re:Where’s all my CPU and memory gone? The answer: Slack by rco8786 on Thursday July 27, 2017 @05:11PM (#14869590)
This is literally the same argument people were making when the JVM came out.
Re:Where’s all my CPU and memory gone? The answer: Slack by vintagedave on Thursday July 27, 2017 @05:13PM (#14869608)
But is it a true argument or a false argument? That's what matters.
Re:Where’s all my CPU and memory gone? The answer: Slack by rco8786 on Friday July 28, 2017 @02:27AM (#14872385)
What matters is that it's an argument against progress. It's an argument of good vs perfect.
Re:Where’s all my CPU and memory gone? The answer: Slack by pspeter3 on Thursday July 27, 2017 @05:10PM (#14869577)
Shouldn't this trade off be born by the market? If Electron is such a problem for Slack, users should be switching away to better engineered alternatives.
Re:Where’s all my CPU and memory gone? The answer: Slack by vintagedave on Thursday July 27, 2017 @05:12PM (#14869600)
Just because Slack is useful enough people use it, doesn't meant the tradeoff they've made when developing indicates a high regard for their users' machines or experience.
Re:Where’s all my CPU and memory gone? The answer: Slack by pspeter3 on Thursday July 27, 2017 @05:13PM (#14869609)
That's fair. I wonder if users actually care in practice.
Re:Where’s all my CPU and memory gone? The answer: Slack by vintagedave on Thursday July 27, 2017 @05:21PM (#14869696)
The other side to the market question is that this tradeoff may be why they're big in the market - because it allowed them to get to market quickly. So they made the trade-off knowingly, and for a reason that makes sense.

The question then becomes, once established, do they improve the app?

Re:Where’s all my CPU and memory gone? The answer: Slack by pspeter3 on Thursday July 27, 2017 @05:22PM (#14869711)
Yeah, I think that's a key question as well.
Re:Where’s all my CPU and memory gone? The answer: Slack by blep-arsh on Thursday July 27, 2017 @05:46PM (#14869913)
I'm seeing lots of people around me just giving up on Slack and switching to Telegram. It's not a shining example of good engineering, but it's still noticeably leaner and faster.
Re:Where’s all my CPU and memory gone? The answer: Slack by pspeter3 on Thursday July 27, 2017 @05:47PM (#14869926)
I haven't used Telegram in a professional setting but seems like a good solution. I'm hoping Matrix/Riot takes off and the open protocol enables a native experience.
Re:Where’s all my CPU and memory gone? The answer: Slack by dman on Thursday July 27, 2017 @04:46PM (#14869314)
Can you give me some examples of platforms whose memory usage has meaningfully gone down over time?
Re:Where’s all my CPU and memory gone? The answer: Slack by Rjevski on Thursday July 27, 2017 @04:52PM (#14869385)
Nope, but memory usage has increased in sync with how technology evolved - software that used to take X MB of memory now takes X*2 but at the same time your laptop now comes with 2x or 4x the memory it used to.

However Electron takes this to a new extreme - the memory usage of an Electron app is like 15x of that of a native app, and yet I can't buy a Macbook with 100GB of RAM.

Re:Where’s all my CPU and memory gone? The answer: Slack by dman on Thursday July 27, 2017 @05:47PM (#14869920)
Its not even the RAM that annoys me the most about Electron - its the hit to the battery life.