News for hackers. Stuff that matters.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by castis on Wednesday March 07, 2018 @04:30PM (#16540088)
They're not basically electron apps. they _are_ electron apps.

And it's completely absurd that mine is currently using 1514MB of memory.

If I weren't required to use Slack on a day-to-day basis, I absolutely wouldn't solely on principle.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by morganvachon on Wednesday March 07, 2018 @06:11PM (#16540855)
Indeed, the Windows app is horrid. One of our older workstations is a quad core i5 with 8GB, nothing special but no slouch either, and the Slack app completely chokes that machine. The employee has to run Slack on her iPhone to be able to get regular work done throughout the day. On our newer workstations it's not quite as bad but it's still noticeable. Our oldest in-service machine is a Core i7 laptop I use when I'm out in the warehouse; that one also chokes heavily with Slack.

It's still 100% an improvement over what we used for chat before (Skype), but I'd be much happier running IRC or XMPP hosted on one of our servers. The boss decided on Slack instead as it's less maintenance on my part. I don't mind the extra work involved with running something we control, but the company wants me on other projects.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by tannhaeuser on Wednesday March 07, 2018 @07:27PM (#16541258)
Out of interest, what's your concern with Skype? After a hiatus of ten years, I'm using it currently for a customer, and, maybe apart from cheesy emoticons and space inefficiency, so far it has worked well. Am I the only one to like a native (Linux) desktop client with notification integration etc. more than a bloated web/Electron app?
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by lokedhs on Wednesday March 07, 2018 @08:17PM (#16541487)
I'm not the original poster, but assuming you're referring to Skype for Business, the main problem with it is that they don't have a Linux client.

The only solution on Linux that implements audio, video and screen sharing is Sky (http://tel.red/), and it's incredibly flaky.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by shaklee3 on Thursday March 08, 2018 @12:28AM (#16542507)
Skype for business on Windows is very bad as well. Lots of scaling issues, incorrect status, freezing, etc.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by megaman22 on Thursday March 08, 2018 @12:48AM (#16542589)
As often as not, that's a result of shit infrastructure behind the Skype for Business deployment itself, rather than the client itself. There are a number of baffling restrictions baked into the server and protocol itself, and a real production-grade deployment is a byzantine mess that would give Cthulu nightmares.

It doesn't help that the client hasn't had much more than cosmetic changes in at least five years, and is largely abandoned for Microsoft's kludgey Slack competitor.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by pjmlp on Thursday March 08, 2018 @02:45AM (#16542971)
I use it daily and we never had issues with it.

When something bad happens, usually it is network infrastructure related or some IT experiment going on.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by a_bonobo on Wednesday March 07, 2018 @10:14PM (#16542017)
Not only is Sky shaky, but it's advertised as 'free as in beer', if you want to talk for more than 2 minutes you have to pay. Everybody wants to talk for more than 2 minutes.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by morganvachon on Wednesday March 07, 2018 @07:45PM (#16541327)
Mainly, reliability was an issue. There were times when the app would show a user logged in when they weren't, or logged out when they were, making it difficult to decide whether to send a message at that moment.

Sometimes when trying to log in it would say that the (saved) password was incorrect, the user would go change it in their Microsoft account and it still wouldn't take it, then a few hours later it was working fine again.

Slack also has much better search, and their support for attachments is dead-simple. Sending a file on Skype was always a chore that felt like it was 1999 all over again, but on Slack it's literally drag, drop, and collaborate.

As I said before, Slack wasn't my first choice but it's a good platform for what it is. I don't like that our conversations and files are stored on their servers, but I doubt anyone at the company is sifting through our stuff looking for dirt or valuable info on a small business with 10 employees.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by dingo_bat on Wednesday March 07, 2018 @07:51PM (#16541362)
If you had tried Skype on windows you'd know.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by yorwba on Thursday March 08, 2018 @12:37AM (#16542546)
The current iteration of Skype for Linux is a bloated web/Electron app. I really liked the bare-bones interface of the previous version and would have loved to opt out of animated emoji and the other UI changes, but not updating a program that's continuously connected to the internet didn't feel like a good idea.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by Kliment on Thursday March 08, 2018 @04:09AM (#16543260)
ghetto-skype is a less bloated version of same, works well, uses way less resources

https://github.com/stanfieldr/ghetto-skype

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by zeveb on Wednesday March 07, 2018 @05:44PM (#16540677)
I just use emacs-slack[0]; my entire emacs usage is currently a fraction of yours.

On X, this means emacs-slack displays images, emoji &c. just like the web or pseudo-native clients do.

[0] https://github.com/yuya373/emacs-slack

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by dangom on Wednesday March 07, 2018 @05:57PM (#16540768)
I guess this is about to break because of the current announcement?
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by anglebracket on Wednesday March 07, 2018 @06:05PM (#16540825)
I don't believe so. emacs-slack uses their official OAuth2 + Websocket integration https://github.com/yuya373/emacs-slack#how-to-get-token-the-...
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by eadmund on Wednesday March 07, 2018 @07:58PM (#16541380)
This is, incidentally, an argument about how a well-designed system like emacs can make writing a truly-native app easy: so easy that some random guy was able to take the API and write a client for a text editor (granted, the greatest & best text editor the world has ever known …).

If it's so hard to write native macOS, Windows, gtk+ or Qt apps — maybe that's a fault of those development environments. Granted, 'display sequences of text, optionally with some images' is kinda in emacs's wheelhouse.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by pseudalopex on Thursday March 08, 2018 @02:09AM (#16542862)
It isn't hard to write native apps, but if you already have a web app, wrapping it in Electron is a lot cheaper.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by RaycatRakittra on Wednesday March 07, 2018 @06:36PM (#16541000)
Correct. emacs-slack uses WebSockets and Slack's Real-Time Messaging API.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by Y_Y on Thursday March 08, 2018 @03:37AM (#16543167)
Oh great, now every lazy developer is going to write their app on top of emacs and distribute a crappy Emactron version that uses almost eight megs of RAM.

But seriously, how hard would it be for a sneaky dev to make emacs with emacs-slack into a normal person application with clicky buttons and no ugly gnu? Could be worth a lot of money, or at least github stars.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by zeveb on Thursday March 08, 2018 @10:17AM (#16544798)
> But seriously, how hard would it be for a sneaky dev to make emacs with emacs-slack into a normal person application with clicky buttons and no ugly gnu?

Well, out of the box emacs has a clicky-button toolbar: https://i.stack.imgur.com/ml0UE.png

And using the keybindings folks expect from Windows is part of modern emacs: https://www.emacswiki.org/emacs/CuaMode

As an aside, I absolutely love the idea of every new app being written atop emacs, but I'm an incorrigible emacs user. I use emacs for email, for git, for slack and (often but not always) for web browsing. Oh, and also to edit text.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by ninjakeyboard on Wednesday March 07, 2018 @07:28PM (#16541266)
I was going to make a comment about using Slack from emacs but of course I'm not the only one. :)
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.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by lttlrck on Wednesday March 07, 2018 @08:10PM (#16541453)
Animated images and emoji can be disabled in the Accessibility settings.

Spritesheets can be disabled under Advanced.

Maybe it helps, sorry I have no before/after but my Slack is sitting at 300MB right now and I deal with an high number of very active channels.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by rvanmil on Thursday March 08, 2018 @03:09AM (#16543063)
> but my Slack is sitting at 300MB right now

You must be overlooking all the helper processes.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by rplnt on Thursday March 08, 2018 @03:35AM (#16543158)
Animated emojis can eat 100% CPU on my MacBook Pro if someone spams enough of them. It's insane how demanding and bloated the app is for what it does.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by always_good on Thursday March 08, 2018 @10:21AM (#16544828)
Yeah, I noticed that too. Except one animated emoji tagged on someone's message will do it for me on a new Macbook Pro.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by ztoben on Wednesday March 07, 2018 @04:35PM (#16540134)
That's absurd. How is it so high? Mine uses around 700MB pretty consistently.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by walls on Wednesday March 07, 2018 @05:17PM (#16540485)
Are you insinuating 700MB for a chat app is sane?
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by jiggunjer on Wednesday March 07, 2018 @10:16PM (#16542032)
Implying more like. I see the word "insinuating" misused here often.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by dijit on Wednesday March 07, 2018 @04:43PM (#16540194)
Animated custom emojis seem to be a common thread, animated images in general cause my CPU and memory to spike when using slack. Our network engineer loves this dancing parrot emoji but it basically pins a core on my machine and adds 20-30% of memory to slacks process.

I've switched over to using mattermost, it can be (and is) self hosted so I'm not as worried about slack getting hacked (again) and leaking our info/taking control of our systems with chatops.

The downside is; mattermost is not a strong replacement. I wrote a bot to basically do a large part of my job for me, and coding against mattermosts websocket protocol and dealing with authentication has been messy to say the least.

Slack is a joy to code against and use from a UI perspective when compared. (sadly, as I don't like it for ideological reasons)

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by jsmthrowaway on Wednesday March 07, 2018 @04:47PM (#16540228)
Mattermost is also an example of how not to license software, including a promise not to enforce provisions of the license they have chosen. If one needs a promise, one has probably chosen the wrong licensing structure.

Here's a fun one: say I use the MIT binaries, then debug a problem by reading the AGPL source code. What legal position am I in? (If you have an answer for that rhetorical question, by the way, you haven't thought of the problem long enough.)

https://github.com/mattermost/mattermost-server/blob/master/...

They launched exclusively AGPL and then made MIT as a concession after discovering that a number of companies outright ban AGPL and won't pay for it unlike MongoDB, but licensing binaries differently than source code is not something you come across often.

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by __david__ on Wednesday March 07, 2018 @05:33PM (#16540609)
I must be slow because I'm not seeing the issue. Can you explain it how reading the source code affects your relationship with a binary you didn't build?
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by master-litty on Wednesday March 07, 2018 @05:08PM (#16540415)
For the curious, there's some history to that parrot emoji:

http://cultofthepartyparrot.com

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by Cogito on Wednesday March 07, 2018 @08:26PM (#16541531)
Perhaps a better source for 'history'[0]

On a side note, Last Chance to See is a great book (Douglas Adams) and show (Stephen Fry), highly recommend both of them.

[0] http://knowyourmeme.com/memes/party-parrot

Re:Tell HN: Slack decides to close down IRC and XMPP gateways by Semaphor on Wednesday March 07, 2018 @05:16PM (#16540483)
I wouldn't call that history. I only encountered a variant of this gif once, on a discord channel having the face of one of the two streamers. This site just shows me a lot of very similar gifs.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by master-litty on Wednesday March 07, 2018 @09:45PM (#16541870)
Towards the bottom it gives a little background, with links to more information.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by cdancette on Wednesday March 07, 2018 @04:40PM (#16540166)
Gifs, lot of gifs
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by dieterrams on Wednesday March 07, 2018 @04:37PM (#16540145)
GP said "basically electron tabs", as in the electron wrapper is functionally equivalent to a browser tab.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by DanCarvajal on Wednesday March 07, 2018 @04:45PM (#16540213)
Weird, my slack app on windows is currently using 54MB.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by Tushon on Wednesday March 07, 2018 @05:28PM (#16540563)
Cheeky response w/o actually understanding isn't correct here. Slack's active window sits around that amount on my computer as well, but under the hood it's actually using closer to 670MB with all processes.
Re:Tell HN: Slack decides to close down IRC and XMPP gateways by jxub on Wednesday March 07, 2018 @05:17PM (#16540484)
Maybe it's closed? ;p