News for hackers. Stuff that matters.
Re:Where’s all my CPU and memory gone? The answer: Slack by Rjevski on Thursday July 27, 2017 @04:27PM (#14869151)
The answer: Electron and this new breed of lazy "developers" who can't be bothered to actually make decent native apps.
Re:Where’s all my CPU and memory gone? The answer: Slack by findjashua on Thursday July 27, 2017 @04:58PM (#14869452)
Given that Visual Studio Code is also built on Electron but poses none of the resource issues (in spite of being a much more complex application - ide v/s chat client), makes me think the problem lies with the application and not the platform
Re:Where’s all my CPU and memory gone? The answer: Slack by StevePerkins on Thursday July 27, 2017 @05:31PM (#14869793)
I like VS Code. However, people think it's "light" and "snappy" only because they're comparing it to Atom. IntelliJ feels pretty fast-loading and snappy when you put it head to head against Atom.

The reality is that Code takes multiple seconds to launch on my machine (a MacBook Pro with 16GB RAM), while GVim or Sublime or any native editor is subsecond. Granted, it does perform well enough once it's up and running. But startup time is probably an order of magnitude worse, and ongoing resource consumption even far less competitive.

Code shows that it's possible for a good Electron app to be better than a bad Electron app. But that's not a proof statement that Electron is in the same league is native.

Re:Where’s all my CPU and memory gone? The answer: Slack by abritinthebay on Thursday July 27, 2017 @06:29PM (#14870254)
> people think it's "light" and "snappy" only because they're comparing it to Atom

There's some truth to this, but I also prefer it to (my previous workhorse) Sublime. Which is a 100% native app, unlike Atom.

> The reality is that Code takes multiple seconds to launch on my machine (a MacBook Pro with 16GB RAM)

Something is wrong there, it really shouldn't. 1 second, maybe, if you're loading a large complex folder or something but unless you've got a crap ton of extensions I've never seen it be that slow.

Re:Where’s all my CPU and memory gone? The answer: Slack by reificator on Thursday July 27, 2017 @09:09PM (#14871137)
And aren't most extensions lazy loaded anyway?
Re:Where’s all my CPU and memory gone? The answer: Slack by abritinthebay on Friday July 28, 2017 @01:09PM (#14875767)
No idea but that would make sense.
Re:Where’s all my CPU and memory gone? The answer: Slack by quickthrower2 on Thursday July 27, 2017 @05:10PM (#14869576)
Yes but they probably worked their arses off and spent big bucks to get it to perform. And it's kind of a marketing product: one of Microsoft's catch-up-with-whats-hip initiatives. For the average shop just code native and get that performance for free.
Re:Where’s all my CPU and memory gone? The answer: Slack by int_19h on Thursday July 27, 2017 @05:56PM (#14869984)
It poses its own resource issues.

https://news.ycombinator.com/item?id=13940014

Re:Where’s all my CPU and memory gone? The answer: Slack by seretogis on Thursday July 27, 2017 @04:59PM (#14869453)
Please don't blame Electron. VS Code is an Electron-based application and it runs beautifully, with much less RAM/CPU hoarding than Slack.

I only run Slack in a Chrome tab now.

Re:Where’s all my CPU and memory gone? The answer: Slack by neilalexander on Thursday July 27, 2017 @05:10PM (#14869572)
I feel like it's still right to blame Electron - it coerces developers into being lazy as it stops them from having to actually think about how their apps behave and what resources they consume. Not to mention that it encourages platform-hostile user interface design in the name of "portability".

Damnit, HTML and JavaScript were never meant for this kind of abuse.

Re:Where’s all my CPU and memory gone? The answer: Slack by arthurcolle on Thursday July 27, 2017 @05:13PM (#14869610)
the users needs should be prioritized over the "platform" while I agree with the overall message here... I hate hate hate how my MacBook "Pro" regularly hits the 8gb limit. Very obnoxious
Re:Where’s all my CPU and memory gone? The answer: Slack by neilalexander on Thursday July 27, 2017 @05:18PM (#14869666)
By prioritising the platform, you also prioritise the user. As a macOS user, I am happy with how the average macOS application behaves and looks and feels and I feel like application developers should respect that.

Same for someone writing a UWP application for Windows 10, or an Android app. You don't win by degrading the experience on all of your target platforms because it's "easier", you win by carefully considering the people who actually will be using your software and the circumstances under which your application will run.

Re:Where’s all my CPU and memory gone? The answer: Slack by tomc1985 on Thursday July 27, 2017 @05:04PM (#14869513)
Not really... it's still considerably slower than Sublime, Gedit/Pluma (or anything gtksourceview), vim, and others, and VS Code got to where it is today due to much gnashing of teeth

I would love to see Electron abandoned...

Re:Where’s all my CPU and memory gone? The answer: Slack by abritinthebay on Thursday July 27, 2017 @06:29PM (#14870259)
> it's still considerably slower than Sublime

This does not match my experience. Sublime + Plugins to bring it to parity with VSCode === much slower than VSCode. Especially with larger files.

Re:Where’s all my CPU and memory gone? The answer: Slack by tomc1985 on Thursday July 27, 2017 @07:19PM (#14870611)
Wouldn't know, I don't use plugins. I would imagine that to be the case though, given that it's extra code from third parties. Similar slowdown is common in nearly all plugin systems.
Re:Where’s all my CPU and memory gone? The answer: Slack by abritinthebay on Thursday July 27, 2017 @08:41PM (#14871034)
Oh true. That's an issue for sure. That said - I value the extra bits that VSCode has over Sublime out of the box. Some may not.
Re:Where’s all my CPU and memory gone? The answer: Slack by pspeter3 on Thursday July 27, 2017 @05:06PM (#14869527)
What alternative would you propose?
Re:Where’s all my CPU and memory gone? The answer: Slack by tomc1985 on Thursday July 27, 2017 @05:08PM (#14869558)
I haven't played with QT's JS backend but that looks nice. (It's C++ native)

pyGTK is a good toolkit.

On the JVM side of things there's JavaFX

Almost anything is better than bundling webkit really... even WinForms. And the above list is mostly new stuff for new devs. For the real programmers amongst us there's QT, GTK, JVM's Swing...

Re:Where’s all my CPU and memory gone? The answer: Slack by pspeter3 on Thursday July 27, 2017 @05:11PM (#14869588)
Do you have an example app in production that cross compiles to all platforms? Also, what constitutes a real programmer?
Re:Where’s all my CPU and memory gone? The answer: Slack by tomc1985 on Thursday July 27, 2017 @05:12PM (#14869607)
> Also, what constitutes a real programmer?

People that aren't afraid of the hard stuff, and don't need software to wipe their ass?

As for software... IntelliJ IDEA (Swing), we use internal pyGTK stuff that runs on Win/Mac/Lin, Wireshark (QT), Mozilla Firefox (XUL ... another brilliant UI markup language which died for no good reason), pgAdmin III (wxWidgets)

On the music plugin side of things there is a lot of VSTs written in JUCE framework, another good cross-platform UI kit which focused on audio software.

Re:Where’s all my CPU and memory gone? The answer: Slack by matthewmacleod on Thursday July 27, 2017 @06:46PM (#14870380)
People that aren't afraid of the hard stuff, and don't need software to wipe their ass?

Exactly the sort of shitty attitude that will get us nowhere.

I have seen a plethora of QT, GTK and other cross-platform applications that weren't only laggy as shit, but riddled with UI bugs.

I fucking hate that Electron is now an accepted way to build applications, believe me – but the reason we ended up in this situation is because "real programmers" failed to develop a framework that effectively dealt with developer and user needs.

Re:Where’s all my CPU and memory gone? The answer: Slack by tomc1985 on Thursday July 27, 2017 @07:25PM (#14870658)
Well its the only attitude that is left after one's opinions and practices are continuously railroaded by excess industry profiteering and need for "change". Sure, nobody stands up to defend the bad attitude but how can one have anything else when all you see are perfectly good things thrown away because they're not shiny enough? I'm sick of watching this field serve shit for dinner and I have no problem with making people feel bad for their bad decisions. Don't want to get made fun of? Don't do things worthy of being made fun of. (The peanut gallery is always watching.)

Anyways, it shouldn't be the job of the toolset to prevent bad users from shooting themselves, therefore you are always going to have bad, laggy programs in any UI paradigm. It is the job of the toolset, and those that built it, to not take any one piece of tech too far (in this case, HTML rendering engines) when there are so many acceptable and superior substitutes.

Re:Where’s all my CPU and memory gone? The answer: Slack by skinnymuch on Thursday July 27, 2017 @05:23PM (#14869719)
Damn. I better change my info online and stop people I'm a programmer. Better notify all sorts of census and demographic departments. We have been over accounting programmers in the tens of millions, if not hundreds of millions!
Re:Where’s all my CPU and memory gone? The answer: Slack by jancsika on Thursday July 27, 2017 @06:31PM (#14870277)
> On the music plugin side of things there is a lot of VSTs written in JUCE framework, another good cross-platform UI kit which focused on audio software.

Real audio programmer here.

I used nw.js (essentially like Electron without the necessity to do IPC for intra-window communication) to port the frontend for a realtime audio engine written in C. Frontend and business logic speak over a socket.

No need for JUCE because the UI has no need for JUCE's audio tools.

Port could happen extremely fast because of the brilliance of Chromium devtools-- introspection and real time updating of styles/DOM state was a life saver. This was a port from tcl/tk which had (has?) a half-baked theme-ing engine and no easy way to introspect the contents of a Tk Canvas.

Qt would have been nice but the frontend is a visual diagram with boxes connected by Bezier curves. QML doesn't have an easy way to do that without the performance scaling with the size of the logical canvas (which is unacceptable because users sometimes want enormous logical canvas sizes).

Re:Where’s all my CPU and memory gone? The answer: Slack by jamescostian on Thursday July 27, 2017 @05:22PM (#14869704)
What if someone told you that using Swing, QT, and GTK were all bad, rsource-wasting things made for people that "need software to wipe their ass", and that "real programmers" use butterflies? Check this out to better understand the "no true scottsman" fallacy: https://www.xkcd.com/378/

You're just hating on something new and praising some old things, but in the past, those same things were also hated on for the same reasons (e.g. so many people hated on swing and java in general early on for wasting memory; "real programmers don't use Java")

Each electron app spawning up separate instances of chrome is totally wasting memory. Argue about that, instead of "real programmer" bs

Re:Where’s all my CPU and memory gone? The answer: Slack by tomc1985 on Thursday July 27, 2017 @05:25PM (#14869742)
What a novel concept! I feel so edumacated now. Surely my IQ rose by a few points.

And to follow-up edit, of course theres no one true scotsman. The assembly-reciting graybeards look down at GUI programmers, who look down on the webdevs, who really don't have anyone to look down upon because they still have so much to learn.

And why does the argument always have to be about resource consumption? Does anybody actually even truly care? I hate Electron because it is an incredibly poor use of existing resources and that it leverages tools very inappropriate for the task of creating cross-platform GUI applications. Entire industries are built out of this unholy Frankenstein of duct tape and chicken wire. Now, for the job of quickly banging out an app so the business fucks can make their $$$$$.... now that's different

Re:Where’s all my CPU and memory gone? The answer: Slack by matthewmacleod on Thursday July 27, 2017 @06:47PM (#14870386)
it is an incredibly poor use of existing resources and that it leverages tools very inappropriate for the task of creating cross-platform GUI applications

… because there aren't better tools.

Re:Where’s all my CPU and memory gone? The answer: Slack by tomc1985 on Thursday July 27, 2017 @07:01PM (#14870489)
There are, people just have to step outside their comfort zone to use them.
Re:Where’s all my CPU and memory gone? The answer: Slack by matthewmacleod on Friday July 28, 2017 @04:56AM (#14872918)
No. There aren't. There are no good cross-platform development environments. There are a handful which might be acceptable for some user-cases; Electron is unfortunately one of them.

If you think there are a plethora of amazing tools out there that people are using to build cross-platform apps, then you're wrong.

Re:Where’s all my CPU and memory gone? The answer: Slack by jamescostian on Thursday July 27, 2017 @05:40PM (#14869865)
Ok great! Expand on what spedifically makes it less appropriate and what makes alternatives more appropriate.
Re:Where’s all my CPU and memory gone? The answer: Slack by prewett on Thursday July 27, 2017 @08:42PM (#14871041)
Qt is C++ native, but if you start using JS you pull in WebKit (or Chrominum, not sure) again, just like Electron. JS and native performance are mutually exclusive.
Re:Where’s all my CPU and memory gone? The answer: Slack by jbverschoor on Thursday July 27, 2017 @05:19PM (#14869677)
NativeScript!
Re:Where’s all my CPU and memory gone? The answer: Slack by tomc1985 on Thursday July 27, 2017 @05:21PM (#14869698)
XUL 2.0? One can dream :/
Re:Where’s all my CPU and memory gone? The answer: Slack by pspeter3 on Thursday July 27, 2017 @05:20PM (#14869687)
NativeScript actually looks really cool. It seems mobile only right now though.
Re:Where’s all my CPU and memory gone? The answer: Slack by Deimorz on Thursday July 27, 2017 @06:42PM (#14870353)
> VS Code is an Electron-based application and it runs beautifully, with much less RAM/CPU hoarding than Slack.

Except for that time when it was constantly using 13% CPU to display the blinking cursor: https://github.com/Microsoft/vscode/issues/22900

Re:Where’s all my CPU and memory gone? The answer: Slack by chillee on Thursday July 27, 2017 @07:11PM (#14870564)
To be clear, that was a bug with chrome: https://news.ycombinator.com/item?id=13941293
Re:Where’s all my CPU and memory gone? The answer: Slack by FieryTransition on Thursday July 27, 2017 @04:53PM (#14869403)
personally I never had problems with discord (also made with electron), seems to me that you can make good and bad design decisions regardless of the stack you use. Don't think electron is alone on this. Choosing a stack makes some things easier and other things harder to accomplish though.
Re:Where’s all my CPU and memory gone? The answer: Slack by Mithaldu on Thursday July 27, 2017 @05:37PM (#14869842)
Discord performs pretty badly to be honest. I have it idling with no chats open and using as much resources as other chat clients with 50+ chats open.
Re:Where’s all my CPU and memory gone? The answer: Slack by notamy on Thursday July 27, 2017 @05:58PM (#14869998)
Are you in any guilds at all? If yes, it's handling all of them in the background, which would explain at least some of it.
Re:Where’s all my CPU and memory gone? The answer: Slack by TheSisb2 on Thursday July 27, 2017 @06:03PM (#14870051)
Are you using the Desktop client or the app through your browser? The client is more performant than through the webpage.
Re:Where’s all my CPU and memory gone? The answer: Slack by uniformlyrandom on Thursday July 27, 2017 @05:15PM (#14869631)
That is just silly, blaming the instrument rather than implementation. Electron is an excellent instrument, and you can leak memory and abuse CPU in any language.
Re:Where’s all my CPU and memory gone? The answer: Slack by mahyarm on Thursday July 27, 2017 @05:21PM (#14869691)
Some instruments are more prone on average to do so than others. Why are most flash games horrible on CPU usage but something made in pygame not nearly as much?
Re:Where’s all my CPU and memory gone? The answer: Slack by chillee on Thursday July 27, 2017 @07:25PM (#14870659)
Ah yes, all those great games made in pygame like...?
Re:Where’s all my CPU and memory gone? The answer: Slack by mahyarm on Friday July 28, 2017 @01:10PM (#14875777)
It can be actually pretty subtle since they tend to present themselves as standalone executable games and don't advertise the fact they used pygame, and this was the time before unity was much of anything. Nowadays everyone just uses unity.

One game I remember was a 2D space game that had pretty good graphics, digging into it's folders and being surprised at seeing pygame and python everywhere. But it's probably been 10 years since I've played it so I can't remember the name. The rest is google.

Re:Where’s all my CPU and memory gone? The answer: Slack by carlosrg on Thursday July 27, 2017 @04:47PM (#14869327)
Exactly. It's just bad engineering. Taking shortcuts to save money and not paying attention to important non-functional requirements.
Re:Where’s all my CPU and memory gone? The answer: Slack by iheart2code on Thursday July 27, 2017 @04:54PM (#14869405)
I wouldn't blame this on engineers -- they aren't necessarily the ones making the (albeit very attractive) business decision to use one codebase for multiple platforms.
Re:Where’s all my CPU and memory gone? The answer: Slack by skinnymuch on Thursday July 27, 2017 @05:25PM (#14869734)
He didn't really blame the engineers. He blamed the engineering. Unless you were just saying your statement and not implying he blamed engineers.
Re:Where’s all my CPU and memory gone? The answer: Slack by johnflan on Thursday July 27, 2017 @04:31PM (#14869178)
nailed it
Re:Where’s all my CPU and memory gone? The answer: Slack by pspeter3 on Thursday July 27, 2017 @05:01PM (#14869477)
This seems like an ad hominem attack based on developers making trade offs. Electron essentially seems to be born out of the trade off of engineering a web product and satisfying customer demands for a desktop app.

Edit: Removed commentary about most desktop apps based on https://news.ycombinator.com/item?id=14869864

Re:Where’s all my CPU and memory gone? The answer: Slack by dkersten on Thursday July 27, 2017 @05:10PM (#14869585)
> reliable cross platform experience

In my own personal experience, these applications have almost never provided me with a more pleasant experience than eg a Qt application.

Plus I've had Slack's CSS mess up giving me a weird messed up UI. This has NEVER happened with an actually native application. I've also had Slack consume 4 gigs of RAM, which is ridiculous for something that is never the main thing I use my computer for.

Quicker time to market perhaps, but "reliable cross platform experience".. not in my opinion, at least, unless you mean that its reliably equally bad on all platforms ;-)

EDIT: Cross platform is easy when you don't need a platform-native look and feel, which web-as-native often doesn't do anyway (or not perfectly at least)

Re:Where’s all my CPU and memory gone? The answer: Slack by pspeter3 on Thursday July 27, 2017 @05:14PM (#14869615)
Yeah, that makes a lot of sense. Do you feel the same way about rich web apps?
Re:Where’s all my CPU and memory gone? The answer: Slack by dkersten on Thursday July 27, 2017 @05:25PM (#14869740)
Yeah, in comparison to native apps anyway. At least they don't pretend to be native. But really, I think it depends on use case: most web apps I use aren't things that I need to leave open all day, while Slack is.
Re:Where’s all my CPU and memory gone? The answer: Slack by jpttsn on Thursday July 27, 2017 @05:25PM (#14869739)
Most? That sounds wrong to me, but I don't even know how you're counting.

Most by number of apps? Consider all little enterprise things built in Java or whatever.

Most by time spent? Browsers, AAA games and file managers aren't web apps, surely?

Most by HN hype and VC funding?

Re:Where’s all my CPU and memory gone? The answer: Slack by pspeter3 on Thursday July 27, 2017 @05:40PM (#14869864)
Fair. I was considering my own usage where I have very few desktop applications and tend to prefer web products. Apologies for the overstatement.
Re:Where’s all my CPU and memory gone? The answer: Slack by outworlder on Thursday July 27, 2017 @04:57PM (#14869440)
This is a very short-sighted comment.

Electron or not, you need a web browser to display content. Unless you want to replicate a browser's layout engine, poorly. History and the rich interface are the main appeals of Slack.

I guess you could create a QT app or something and embed a web widget inside. Not sure how much that would help.

Re:Where’s all my CPU and memory gone? The answer: Slack by pinum on Thursday July 27, 2017 @05:01PM (#14869483)
I might be confused. I thought Slack was a text chat client with extra features. Why does it need a browser engine for layout, instead of using the system's native layout tools like native software has always done?
Re:Where’s all my CPU and memory gone? The answer: Slack by outworlder on Thursday July 27, 2017 @05:14PM (#14869620)
It is a text chat client. However, it does not display only text. It can also display images and whatever else can be displayed by a web browser, including links and buttons.

You can replicate it with native widgets. Heck, you can draw everything yourself if you want. But why bother, if you already have a perfectly good way to display that sort of content?

The problem is not "lazy developers using Electron". The problem may actually be lazy developers, but not because of Electron alone.

Re:Where’s all my CPU and memory gone? The answer: Slack by jpttsn on Thursday July 27, 2017 @05:30PM (#14869789)
If what you want to display is a subset of what web tech can display, it's lazy to embed a big web engine.

To me it's like sending a word doc attachment because you want to use bold type in a mail, and you already know how to use word.

Re:Where’s all my CPU and memory gone? The answer: Slack by Rjevski on Thursday July 27, 2017 @05:04PM (#14869507)
Do I actually need to display web content? Unless I need some custom embeds which supply their own HTML and CSS, I don't, and I'm happy to do away with embeds and stuff if this means my client no longer makes my laptop go on fire.
Re:Where’s all my CPU and memory gone? The answer: Slack by zakk on Thursday July 27, 2017 @05:00PM (#14869460)
Since when you need a web browser to display content?

Slack could easily use native widgets, without embedding any HTML.

Re:Where’s all my CPU and memory gone? The answer: Slack by outworlder on Thursday July 27, 2017 @05:01PM (#14869484)
Have you used Slack? The rich interface is one of the main reasons people use it. It's not IRC.
Re:Where’s all my CPU and memory gone? The answer: Slack by zakk on Thursday July 27, 2017 @05:20PM (#14869683)
Yes I have, and I have used interfaces which were as rich, or even richer, for decades, without the need of embedding web content.

For instance GTK apps in the earlies 2000s were easily displaying content as rich.

Re:Where’s all my CPU and memory gone? The answer: Slack by outworlder on Thursday July 27, 2017 @05:34PM (#14869812)
I understand that. But we also have apps like Adium displaying their chat messages using HTML with no issues, just because they want to easily customize the themes.

Point is, native or not native, this should not matter for a well optimized code. We are not talking about a AAA game here, it's just a chat app. It should not be burning cycles when inactive.

Re:Where’s all my CPU and memory gone? The answer: Slack by Rjevski on Thursday July 27, 2017 @05:05PM (#14869523)
I feel like I've made a mistake mentioning IRC - that was just an example to say that a client that receives and sends messages over the network was a solved problem.

Rich interface doesn't mean HTML and CSS. Have you seen good iOS apps? Their interface is just as rich and yet it's pure Swift/Objective-C compiled down to native code.

Re:Where’s all my CPU and memory gone? The answer: Slack by jsjohnst on Thursday July 27, 2017 @05:32PM (#14869800)
There are plenty of chat apps with rich interfaces not implemented in HTML. Some of them far better than Slack.
Re:Where’s all my CPU and memory gone? The answer: Slack by outworlder on Thursday July 27, 2017 @05:41PM (#14869874)
Can you provide some examples?
Re:Where’s all my CPU and memory gone? The answer: Slack by gaadd33 on Thursday July 27, 2017 @06:27PM (#14870245)
Messages on OS X?
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.