News for hackers. Stuff that matters.
Re:Electron 11.0 released with support for Apple Silicon by mrtksn on Friday November 20, 2020 @02:50AM (#25158195)
That's something I wonder too. What VS Code does right that, let's say Slack, fails on?
Re:Electron 11.0 released with support for Apple Silicon by sime2009 on Friday November 20, 2020 @11:06AM (#25161696)
Slack allows my colleagues to chock it full of multi-megabyte animated gifs and cat images, but VSCode so far doesn't.

I'm not surprised that Slack's memory use tends to explode.

Re:Electron 11.0 released with support for Apple Silicon by mesid on Friday November 20, 2020 @03:20AM (#25158380)
Yeah I've also tried to understand this. Tried looking for blog posts on what VS Code is doing but couldn't find one. Can someone point out if there's any?
Re:Electron 11.0 released with support for Apple Silicon by brundolf on Friday November 20, 2020 @10:48AM (#25161530)
One thing is that they rely on DOM reflow - the automatic, dynamic sizing of elements - as little as possible: nearly everything in the VSCode UI has a fixed size and position. Reflow is arguably the most costly feature of the web when it comes to dynamic apps (though also one of its most valuable features).
Re:Electron 11.0 released with support for Apple Silicon by harrygeez on Friday November 20, 2020 @02:58AM (#25158237)
Delay loading everything until needed
Re:Electron 11.0 released with support for Apple Silicon by mixmastamyk on Friday November 20, 2020 @03:06AM (#25158298)
Parts are written in C/++ no?
Re:Electron 11.0 released with support for Apple Silicon by sime2009 on Friday November 20, 2020 @11:01AM (#25161658)
Nope.

The file search uses `ripgrep` which is written in Rust. But that is it as far as I know.

Re:Electron 11.0 released with support for Apple Silicon by cannedslime on Friday November 20, 2020 @02:59AM (#25158252)
Slack is a messy one page app developed by PHP programmers and vscode is open source and actually made by competent people.
Re:Electron 11.0 released with support for Apple Silicon by mrweasel on Friday November 20, 2020 @03:09AM (#25158316)
Slack is really weird. It seems like they would have the resources to do native applications. I can't fault anyone for doing an Electron app as a demo, prototype, MVP, that's seems completely reasonable.

What I don't get is why they don't want to make a native macOS client, or Windows client. For Linux I get that they don't necessarily know if it should be GTK, QT, should they adopt KDE standards or Gnome, something else maybe? I can see why they would like Electron in that case.

For something like the Mac... They could do a fantastic client, it would use very little memory, play nice with the OS and be fast. Their users would notice and love it.

Re:Electron 11.0 released with support for Apple Silicon by paxys on Friday November 20, 2020 @03:40AM (#25158517)
They have to build and maintain the web version regardless. Why also write individual clients for Windows, Mac and Linux when they can simply wrap the website in a thin desktop wrapper and call it a day?
Re:Electron 11.0 released with support for Apple Silicon by mrweasel on Friday November 20, 2020 @06:41AM (#25159517)
Because they care about the user experience and delivering the best possible product to their customers? Maybe not.
Re:Electron 11.0 released with support for Apple Silicon by Jare on Friday November 20, 2020 @01:48PM (#25163531)
Based on their success, that's exactly what they are already doing, presumably thanks to the choices they are making.
Re:Electron 11.0 released with support for Apple Silicon by mrtksn on Friday November 20, 2020 @03:40AM (#25158512)
Maybe it's easy to sell the "One codebase on all platform" idea to the managers and hard to justify the need for high quality app? People are using it anyway.
Re:Electron 11.0 released with support for Apple Silicon by ulfw on Friday November 20, 2020 @03:21AM (#25158390)
Especially considering they already have a good iOS Client with their iPad app!
Re:Electron 11.0 released with support for Apple Silicon by mrweasel on Friday November 20, 2020 @03:28AM (#25158425)
People could perhaps already use that on the M1 Macs and have a better experience.
Re:Electron 11.0 released with support for Apple Silicon by jonny383 on Friday November 20, 2020 @03:04AM (#25158283)
And I suppose Facebook is therefore also developed by incompetent PHP programmers despite being one of the largest technology companies in the world?
Re:Electron 11.0 released with support for Apple Silicon by cannedslime on Friday November 20, 2020 @03:11AM (#25158330)
Yes. I am not even joking. Facebook was so terrible that they had to literally reinvent their wheels (hiphop). Its not hard to become a large company when you have black budget backing as confirmed by Snowden.
Re:Electron 11.0 released with support for Apple Silicon by girvo on Friday November 20, 2020 @03:22AM (#25158393)
Your own sentence argues against itself: the team that built HHVM certainly are not "terrible PHP developers"...
Re:Electron 11.0 released with support for Apple Silicon by cannedslime on Friday November 20, 2020 @03:40AM (#25158508)
You don't think its strange that facebook hired PHP programmers to create the product and then have to hire competent people to fix that shit as far removed from company logic as possible?

Doesn't it kinda make you think, just a little?

Re:Electron 11.0 released with support for Apple Silicon by vagrantJin on Friday November 20, 2020 @04:24AM (#25158768)
I hope you are joking. Those people you call incompetent built arguably the best web application in the world propelling itself into a global corporate juggernaut and that qualifies as built by incompetent people?

The hubris is frightening.