News for hackers. Stuff that matters.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by jsmthrowaway on Wednesday March 07, 2018 @04:40PM (#16540164)
I remember when Slack in a Chrome tab committed 3-4 GB. Sounds like they've made improvements.

Standalone client and its helpers are sitting on ~800MB committed on my install of High Sierra. Might be worth a shot.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by bartread on Wednesday March 07, 2018 @07:57PM (#16541374)
For the love of Pete! It's a frigging IM client: 800MB is absolutely not a reasonable amount of memory for it to be consuming, and I don't care how long your message history is.

A big part of why this occurs is Electron. Same with any app that's basically a browser app: memory usage is out of control relative to what the application does.

Case in point: https://arcade.ly/games/starcastle/ (disclaimer: I wrote this). Uses 284MB, for a version of a vector arcade game from 1980. Same issue with my version of Asteroids too: https://arcade.ly/games/asteroids/. Some of this is down to the idiotic way the Web Audio API handles compressed audio, but with Asteroids I have to pre-render a lot of images because canvas 2D performance isn't that great with drawing primitives. Even excluding these issues, and allowing for several canvas layers at 1366 x 768 x 32 bits per pixel, double-buffered, and the thing still seems to consume quite a bit of RAM.

Welcome to the wonderful world of JS/CSS/HTML5 apps.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by jsmthrowaway on Wednesday March 07, 2018 @08:40PM (#16541593)
Preaching to the choir, man. I was just saying the Slack bleeding could potentially be lessened by wielding a slightly different model of chainsaw. I certainly want my gig back.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by benbristow on Wednesday March 07, 2018 @10:06PM (#16541977)
Use a machine with more RAM then. If your machine doesn't have at least 8GB of RAM then you're doing it wrong.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by arbie on Thursday March 08, 2018 @12:10PM (#16545778)
I can't tell if you are being serious.

RAM prices have plateaued due to production shortages in the past few years, and many (high-volume) $200 laptops/Chromebooks do not come with 8GB of RAM.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by stordoff on Thursday March 08, 2018 @07:17PM (#16548867)
Regardless of how much RAM you have, 800MB for a chat app is ridiculous. If every common utility started using so much RAM, "[u]se a machine with more RAM" stops being viable - you can only cram so much RAM in current machines, and if you start peeling off a couple of GB because you need to run more than one chat client that's a huge loss.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by dijit on Wednesday March 07, 2018 @04:48PM (#16540237)
That's absolutely gargantuan. How can any general purpose application justify 4G of memory, half of a factory macbook pro's memory.

To put this in perspective, I was talking this week to a developer who was essentially apologising to me for a new feature that was going to require insane amounts of memory. This is for a process to handle literally millions of users.

How much memory was it? 3G. Per "instance" of which we need 2... Again, for millions of people.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by godot on Wednesday March 07, 2018 @05:57PM (#16540769)
I know most of this thread has been about making fun of Slack, but I wanted to write a somewhat serious response to this.

I think "team software engineering" plays a big part of this, if not even the main reason. When one developer is working on a program, the person tends to be able to keep track of program flow, memory usage in their head and know when things are about to go out of bound, memory shoots up, etc. When you have a whole team working on a huge piece of software, each person is working on one part of it at a time. If your feature grows memory usage by 100mb, it's not a big deal. 20 people doing that, memory usage just grew by 2gb. And then in modern software dev shops, you typically put devs on different features on a weekly basis. (unlike traditional, slow, non-agile development where a person owns a certain module/component and is the expert and works on it for years) When you move to a new feature, you need to pick up on all the details of how it works previously, and you build your stuff on top of it. You don't have context of the really nitty gritty details someone who wrote the original framework thought about. You're going to do something less than ideally efficient. Unfortunately, this is just the way modern team software engineering goes.

Or of course, you can still just say it's a Javascript problem and mock JS; which also has merits.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by astrobe_ on Thursday March 08, 2018 @04:44AM (#16543372)
> When you have a whole team working on a huge piece of software,

Then don't freaking do that. There's no reason to make one huge app with thousands of features that justifies teams of dozens of devs instead of tools that do just one thing (and can be used in a modular way) correctly and nothing more.

Actually, there's one terrible reason: the bigger the app, the higher the wall around the garden and that serves as a justification for the price tag. It's the wrong way of doing things because business. It's exactly the same evil principle as the one which is at work when the sugar or the tobacco industry do their slightly questionable stuff.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by salvar on Thursday March 08, 2018 @07:21AM (#16543890)
So when you say there's no reason, you mean that there are business reasons but you disagree with them?
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by ajeet_dhaliwal on Thursday March 08, 2018 @07:59PM (#16549093)
Couldn’t agree more. I see this all the time and it was echoed in that recent popular post by the guy who left Google after failing to get a promotion. Besides the modern software engineering approach this type of work (optimization) is also often not valued by leads. It’s all about visibility. Add new features fast and it’s visible. Good! Fix something, make sure your new feature isn’t hogging memory but take a little longer to complete the work? Bad. Added together no ‘owner’ for any specific part of the app and it’s like the public commons, the person who picks up the litter won’t be acknowledged. The incentives are screwed up. Ultimately though it’s also the customer, if they don’t care (and most of them don’t since Slack is highly popular) then why bother. In a market and business sense that makes complete sense too.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by eadmund on Wednesday March 07, 2018 @08:01PM (#16541392)
> I think "team software engineering" plays a big part of this, if not even the main reason.

You're not wrong, but perhaps that's an indication that software companies should use language & environments which enable them to have fewer developers, and enable those developers to keep track of things like resource usage?

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by badosu on Thursday March 08, 2018 @12:15PM (#16545835)
I think the point godot meant to convey is that modern software development practices disincentivize polishing and refactoring features for performance, as developers move around the application all the time; regardless of programming language.

Whereas traditionally you would have an engineer responsible for part of the application as time goes by, making sure that it works better while maintaining quality.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by arbie on Thursday March 08, 2018 @12:14PM (#16545808)
But then you end up with code sprints solely to optimize resource usage, handled by programmers that didn't code the original module(s). Inefficiencies get layered over inefficiencies.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by jodrellblank on Wednesday March 07, 2018 @05:12PM (#16540437)
It takes a lot of memory to slowly and jerkily send plain text over the internet, and not quite keep up with typing when autocomplete-ing usernames, you know. Stop expecting so much of your computers /s
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by StudentStuff on Wednesday March 07, 2018 @05:52PM (#16540738)
Things like IRC don't support embedded images, so lets build our own protocol with blackjack and everything else! Oh wait, its a slow morass :(
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by dijit on Thursday March 08, 2018 @03:18AM (#16543091)
Except; with IRC it's up to your client to do anything it wants.

Want inline pictures? Well, Textual has had that for a long time, irccloud's webUI too.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by aluhut on Wednesday March 07, 2018 @05:56PM (#16540766)
mIRC takes 24MB!
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by userbinator on Wednesday March 07, 2018 @08:32PM (#16541559)
I wrote an MSNP (Windows/MSN Messenger) client and used it for many years, all the way until Microsoft turned the protocol into a horrible XML-ised mess and then dropped support completely (as in, turned off the servers.) One standalone Win32 binary less than 32KB, usable from Win95 up to Win10; and over all the years I used it and noticed its memory usage, it was never more than 2-3MB. Yes, it had emoji support (though not very large ones, obviously.)

The amounts of memory that users are reporting for Slack are all several times higher than the entire RAM of the first computer I started using my MSNP client on.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by nasredin on Thursday March 08, 2018 @07:26AM (#16543909)
I feel like you post is missing:

I had to walk 10 miles to school in the snow! Barefoot! Uphill! Both ways!

or

GET OFF MY LAWN!

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by codedokode on Thursday March 08, 2018 @09:07AM (#16544363)
Classic version of Skype (with all the "improvements" ) takes about 200-250Mb on Windows XP after long use. Pre-Microsoft versions could take a half of this.