News for hackers. Stuff that matters.
Re:Migrating Slack's Desktop App to BrowserView by brightball on Monday October 30, 2017 @02:11PM (#15587433)
As a Linux laptop user, I fully endorse Electron. There’s so much more available for Linux because of it that would have no client at all otherwise.

Between NVMe disks and the ability to have 64gb of RAM if I want...keep it coming. I’d rather have heavy software than no software.

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
Re:Migrating Slack's Desktop App to BrowserView by SteveNuts on Monday October 30, 2017 @02:19PM (#15587517)
Same here, it's really nice to have VSCode, atom, slack, etc.

RAM is pretty cheap, I'd rather put money towards a better Linux machine than give that money to Microsoft for the OS.

Re:Migrating Slack's Desktop App to BrowserView by m_fayer on Monday October 30, 2017 @04:38PM (#15588673)
Oh what a lovely cycle. Every dev knows 16gb is the new 8gb so sure, why not have every desktop app consist of 20 independent webview/node processes. Can't wait until 32gb is the new 16gb.

Eventually, when every single desktop app is like this, and we can no longer keep shoving more RAM into computers, we'll realise that the only way to manage such hogs is to pickle background apps to disk Android-style and to just have one foreground app in memory. And that's when we'll all realise we might as well switch to Chrome OS. Well played, web devs, Google says thanks.

Or maybe Electron is a conspiracy by someone heavily invested in RAM production?

Re:Migrating Slack's Desktop App to BrowserView by xwvvvvwx on Monday October 30, 2017 @06:17PM (#15589456)
32 is already the new 16.
Re:Migrating Slack's Desktop App to BrowserView by tedmiston on Tuesday October 31, 2017 @01:36AM (#15591301)
Too many devs are on MacBooks and Apple doesn't even offer a 32 GB option yet. It sounds like Intel will close the gap soon and we'll see it in the next year or two though. Maybe 32 will be the new 16 by then?
Re:Migrating Slack's Desktop App to BrowserView by yellowapple on Monday October 30, 2017 @06:34PM (#15589586)
That's horrifying.
Re:Migrating Slack's Desktop App to BrowserView by xwvvvvwx on Monday October 30, 2017 @06:35PM (#15589594)
That's progress.
Re:Migrating Slack's Desktop App to BrowserView by flukus on Tuesday October 31, 2017 @01:34AM (#15591295)
That's regression. Despite having vastly more memory than 20 years ago I'm not getting anything more done with it.
Re:Migrating Slack's Desktop App to BrowserView by trashcan on Thursday November 02, 2017 @11:02AM (#15611011)
What OS were you using in 1997? I believe I was using Windows 95 then and was definitely getting a lot less done with it.
Re:Migrating Slack's Desktop App to BrowserView by revelation on Monday October 30, 2017 @06:52PM (#15589705)
RAM is harmless. Even the most inept developers would struggle to waste as much of it as Slack Desktop.

No, the real casualty in this cycle have been spinning rust, good old hard disks. Their performance was never great but a sure fire way to kill it and make sure it never recovers is to trigger a full fucking unthrottled index scan at every boot that inevitably finds nothing changed. Looking at you Dropbox.

Re:Migrating Slack's Desktop App to BrowserView by wink on Monday October 30, 2017 @02:43PM (#15587753)
But all the fancy stuff still doesn't work, it's mostly just fluff. (NB: I don't use VS Code or Atom and the Slack App on Linux has literally zero upsides for me vs a pinned desktop chrome bookmark or using nativefier, screenhero still misses features.)
Re:Migrating Slack's Desktop App to BrowserView by krisdol on Monday October 30, 2017 @03:56PM (#15588347)
Spotify, Slack, and Atom work fine for me, though slack is probably the most annoying one on all platforms. Atom is far from fluff in terms of functionality, but it's fine if you don't use it.
Re:Migrating Slack's Desktop App to BrowserView by wink on Monday October 30, 2017 @07:36PM (#15589964)
the fluff was obviously directed at slack and other "apps that are just bundled websites" - I see that an editor is something different (and I do use VS Code on Windows at times, but not very often)
Re:Migrating Slack's Desktop App to BrowserView by ivm on Monday October 30, 2017 @04:46PM (#15588739)
> RAM is pretty cheap

Everything is cheap when you have a high salary even by your rich country's standards. There are other users outside of SV.

Re:Migrating Slack's Desktop App to BrowserView by Shorel on Monday October 30, 2017 @09:42PM (#15590550)
I paid for Sublime Text because to me it's better than the editors you mention.

I rather put money towards responsible developers than contributing to the waste of more computing power and more electricity than Bitcoin wastes, while doing basically nothing over what Sublime Text can do.

I mean, if there were no other way to code a text editor I could accept the idea of Atom. But with faster alternatives, it is just an exercise in consumerism. Wasting computing power for the sake of wasting computing power.

It's the rolling coal of computers.

Re:Migrating Slack's Desktop App to BrowserView by dingaling on Tuesday October 31, 2017 @03:42AM (#15591614)
> RAM is pretty cheap

There are many laptops which have fairly low total system RAM limits. Those in our workplace are 4GB and 8GB for example. Once you hit that limit the cheapness of RAM is irrelevant.

Re:Migrating Slack's Desktop App to BrowserView by peoplewindow on Monday October 30, 2017 @03:11PM (#15587973)
Why? Electron apps still have to be packaged for Linux. And cross platform apps can be written in Qt or Java too. Doesn't seem like Electron is the thing making the difference here.
Re:Migrating Slack's Desktop App to BrowserView by SomeCollegeBro on Monday October 30, 2017 @03:33PM (#15588155)
Have you actually written a large scale cross platform app for Linux and Windows? Sure, Qt components will show up on both platforms. But to get them to show up the same tends to be an incredible headache, especially if custom styling is applied.
Re:Migrating Slack's Desktop App to BrowserView by peoplewindow on Monday October 30, 2017 @04:36PM (#15588649)
Yes, I have. Well, I guess it depends what you mean by large scale. But I wrote and shipped a Windows/Mac/Linux cross platform app using JavaFX with native packaging for each platform. I didn't try and match native widgets. I styled it to look like a desktop app.

It was quite productive and straightforward. That said, Java likes to use as much RAM as it can get even if it could release a lot back to the OS. It looks at it, sees it's free and thinks "I might as well take that".

Re:Migrating Slack's Desktop App to BrowserView by chrisco255 on Monday October 30, 2017 @06:48PM (#15589679)
We're talking about Slack, for context. Non-trivial QA effort to build cross platform apps, even with Qt.
Re:Migrating Slack's Desktop App to BrowserView by t1o5 on Monday October 30, 2017 @05:24PM (#15589027)
Cant you put java apps on the leash with Xmax and Xmin memory ? I might be wrong, but I thought that was the case.
Re:Migrating Slack's Desktop App to BrowserView by sgift on Monday October 30, 2017 @05:51PM (#15589246)
Yes, but within that leashes it will prefer not releasing back what it has. E.g. if you say minimum 256, maximum 1G, if you used 1G for a short time it tends to hold onto it. This is a performance optimization iirc - it is far cheaper to wait a bit if you need that memory again than releasing it to the OS and then requesting it back again.
Re:Migrating Slack's Desktop App to BrowserView by yellowapple on Monday October 30, 2017 @06:31PM (#15589565)
"But to get them to show up the same"

That shouldn't be the goal. Linux and Windows have different norms when it comes to UI design, and (usually) have completely different widget appearances. You can save yourself a lot of headaches by just specifying the bare minimum (i.e. the widgets themselves) and letting the user/system remain in control of exactly how they appear.

In other words, if you're treating desktop GUI design as equivalent to web GUI design and expecting your app to look the same across all platforms, you're going to have a bad time.

Re:Migrating Slack's Desktop App to BrowserView by sidlls on Monday October 30, 2017 @04:29PM (#15588598)
Why would you want them to be the same? What percentage of people who use slack on both platforms and who care whether the appearance is the same on both?
Re:Migrating Slack's Desktop App to BrowserView by manigandham on Monday October 30, 2017 @05:56PM (#15589281)
Many people expect similar UIs for better branding and easier workflow.
Re:Migrating Slack's Desktop App to BrowserView by yellowapple on Monday October 30, 2017 @06:34PM (#15589582)
I'd sooner guess that most reasonable people would prefer the UI be consistent within their chosen platform. Yeah, Slack's UI is pretty, but it sticks out like a sore thumb on pretty much every platform because it looks nothing like any of the other applications running on one's machine.
Re:Migrating Slack's Desktop App to BrowserView by zeveb on Monday October 30, 2017 @03:55PM (#15588331)
> There’s so much more available for Linux because of it that would have no client at all otherwise.

https://github.com/yuya373/emacs-slack works on Linux, and doesn't chew up CPU, RAM & disk to do it.

Re:Migrating Slack's Desktop App to BrowserView by kentt on Monday October 30, 2017 @07:41PM (#15589999)
I'd be okay with Slack being sufficient but taking a gig of RAM. Instead it's really shitty and buggy and also take a gig of RAM. Any one of their problems doesn't make it a horrible product, that just the one most often pointed to as indicative of how horrible their engineering is.
Re:Migrating Slack's Desktop App to BrowserView by LeoNatan25 on Monday October 30, 2017 @03:20PM (#15588055)
Ah yes, let Windows and macOS users suffer from garbage so you can have "much more available for Linux". The year of Linux desktop is upon us.