News for hackers. Stuff that matters.
Re:Electron 11.0 released with support for Apple Silicon by andy_ppp on Friday November 20, 2020 @02:43AM (#25158163)
Hang on, I use Visual Studio Code daily and it’s really fast? Certainly compared to XCode or Jet Brains IDEs.
Re:Electron 11.0 released with support for Apple Silicon by FlyingSnake on Friday November 20, 2020 @03:02AM (#25158264)
Apples to oranges comparison. VS Code is a text editor whereas Xcode and Jetbrains are IDEs. The real comparison should be with Sublime Text vs VS Code. Sublime Text blows VSCode out of water while opening the same project folder.

Here's a naive comparison

    ~/workspace/iOS Project(develop)
     time subl .
    
    ________________________________________________________
    Executed in   75.46 millis    fish           external
       usr time   21.45 millis  106.00 micros   21.34 millis
       sys time   14.84 millis  659.00 micros   14.18 millis
    
    
    ~/workspace/iOS Project(develop)
     time code .
    
    ________________________________________________________
    Executed in    4.18 secs   fish           external
       usr time  123.39 millis   99.00 micros  123.29 millis
       sys time  175.07 millis  585.00 micros  174.49 millis
Re:Electron 11.0 released with support for Apple Silicon by thiht on Friday November 20, 2020 @03:08AM (#25158312)
That's not a fair comparison either. VSCode does way more than Sublime Text. I actually found VSCode closer to Intellij than to Sublime Text.
Re:Electron 11.0 released with support for Apple Silicon by aaxa on Friday November 20, 2020 @03:20AM (#25158379)
How is VSCode anything similar to IntelliJ other than they both can edit text and has plugins?
Re:Electron 11.0 released with support for Apple Silicon by reissbaker on Friday November 20, 2020 @03:27AM (#25158415)
VSCode language plugins allow you to get autocomplete, go to definition, refactor support, debugging tools, etc.

Closer to IntelliJ than to Sublime, in my experience.

Re:Electron 11.0 released with support for Apple Silicon by Narretz on Friday November 20, 2020 @03:39AM (#25158498)
But such plugins exist for Sublime, too. Especially since the Language Server Protocol has been implemented.
Re:Electron 11.0 released with support for Apple Silicon by thiht on Friday November 20, 2020 @03:42AM (#25158525)
Plugins on VSCode are a whole order of magnitude better than on Sublime, mainly because Sublime's Python API is not great.

Is there something remotely comparable to VSCode's debugger view on Sublime for instance?

Re:Electron 11.0 released with support for Apple Silicon by sbergot on Friday November 20, 2020 @03:45AM (#25158543)
I cannot tell if this comment is sarcasm or not.
Re:Electron 11.0 released with support for Apple Silicon by andy_ppp on Friday November 20, 2020 @09:46AM (#25160886)
Which features of IntelliJ is VSCode lacking?
Re:Electron 11.0 released with support for Apple Silicon by hugi on Friday November 20, 2020 @03:38AM (#25158491)
IntelliJ is very slow so that's no surprise.
Re:Electron 11.0 released with support for Apple Silicon by flohofwoe on Friday November 20, 2020 @05:37AM (#25159142)
It's not really and apples to oranges comparison.

With the C/C++ and CMake Tools extensions installed, VSCode is an IDE that provides pretty much the same features as Xcode (for some features Xcode is ahead, and for others VSCode).

XCode needs about 12 seconds to start into a C/C++ project (on my mid-2014 13"MBP), while VSCode needs 3 (and yes I start into both fairly frequently from the command line). When actually working in the IDEs, for some things XCode feels slicker, for others VSCode. All in all, XCode really isn't a good argument in the whole "Electron vs Native debate" (and the same is true for VSCode vs Visual Studio btw).

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.

Re:Electron 11.0 released with support for Apple Silicon by krakatau1 on Friday November 20, 2020 @03:06AM (#25158294)
Visual Studio Code is fast on startup and that's it. It chokes on million LOC project while Eclipse and Intellij work fine.
Re:Electron 11.0 released with support for Apple Silicon by reissbaker on Friday November 20, 2020 @03:28AM (#25158418)
I use it daily on multi-million LOC projects and it's just fine...
Re:Electron 11.0 released with support for Apple Silicon by shrew on Friday November 20, 2020 @04:15AM (#25158726)
Out of interest, what language are your projects written in? I've had to work on C# .NET codebases of that size and have had the same issues as the previous response.

VSCode itself doesn't fall over, but code completion and error highlighting are painfully slow to catch up and several of the extensions that provide that functionality regularly crash out.

Re:Electron 11.0 released with support for Apple Silicon by reissbaker on Friday November 20, 2020 @07:05AM (#25159661)
Python β€” sad to hear that the C# tooling isn't great on large codebases though :(
Re:Electron 11.0 released with support for Apple Silicon by odshoifsdhfs on Friday November 20, 2020 @02:58PM (#25164273)
I work in multi-thousand LOC projects in TS in vscode. It lags.

It LAGS a lot. I work on Xcode Swift projects and the difference is amazing (and Xcode is quite crap). Auto-complete or sometimes just opening a file takes seconds. (I know my project has a bit more complexity that a normal react/node app, but still...)

Re:Electron 11.0 released with support for Apple Silicon by 3np on Friday November 20, 2020 @03:36AM (#25158478)
Add some extensions to VSCode to get the same functionality you have in JetBrains, and open a workspace with dozens of repos. I'll wait while you reboot because you went OoM (I'm only being half obtuse here).