News for hackers. Stuff that matters.
Re:Ask HN: Is there still a place for native desktop apps? by outside1234 on Sunday May 17, 2020 @07:21PM (#23216460)
VSCode is indistinguishable from native, so not sure its Electron that's at fault here.
Re:Ask HN: Is there still a place for native desktop apps? by keb_ on Sunday May 17, 2020 @08:22PM (#23216845)
This gets said a lot, and granted VSCode is certainly one of the best performing Electron apps, but it definitely is not indistinguishable from native apps. Sublime, Notepad++, or TextAdept all fly compared to VSCode in terms of performance and RAM efficiency.
Re:Ask HN: Is there still a place for native desktop apps? by fiddlerwoaroof on Sunday May 17, 2020 @09:39PM (#23217301)
On Mac, VSCode does a better job than many apps at emulating the Cocoa text input systems but, like every electron app, it misses some of the obscure corners of cocoa text input system that I use frequently.

If we’re going to use JavaScript to write native apps, I’d really like to see things like React Native take off: with a good set of components implemented, it would be a first class environment.

Re:Ask HN: Is there still a place for native desktop apps? by AlchemistCamp on Sunday May 17, 2020 @07:32PM (#23216543)
No. I like VS Code but it's a hog.

I still use Macvim or even Sublime Text a lot for speed reasons, especially on large files.

Re:Ask HN: Is there still a place for native desktop apps? by andai on Sunday May 17, 2020 @07:31PM (#23216525)
If your native apps are indistinguishable from VSCode, they're doing something wrong.
Re:Ask HN: Is there still a place for native desktop apps? by voltagex_ on Sunday May 17, 2020 @08:16PM (#23216803)
Start Notepad++ or https://github.com/rxi/lite and then compare the startup speed with VSCode.
Re:Ask HN: Is there still a place for native desktop apps? by drngdds on Sunday May 17, 2020 @08:22PM (#23216843)
I use VS Code daily (because it seems to be the only full-featured editor that Just Works(TM) with WSL), but it can get pretty sluggish, especially with the Vim plugin.
Re:Ask HN: Is there still a place for native desktop apps? by dep_b on Monday May 18, 2020 @03:52AM (#23219548)
Try to use AppleScript or Accessibility. It's like VS Code doesn't even exists.
Re:Ask HN: Is there still a place for native desktop apps? by eyegor on Sunday May 17, 2020 @10:16PM (#23217522)
If I recall correctly, Microsoft forked their own version of electron to make vs code feel more snappy. Because normal electron runs like slack.
Re:Ask HN: Is there still a place for native desktop apps? by RMPR on Tuesday May 19, 2020 @05:10AM (#23232865)
I don't think so, Microsoft wanted to fork electron in the past to replace Chromium with edgeHTML, but it didn't happen. VSCode is powered by Monaco Editor github.com/microsoft/monaco-editor, and VSCode feels snappier than let's say Atom, probably because of Typescript.
Re:Ask HN: Is there still a place for native desktop apps? by meritt on Sunday May 17, 2020 @11:55PM (#23218158)
Try opening a moderately large (even 2MB) .json file in VSCode, and then do the same in sublime.

VSCode very quickly freezes because it cannot handle a file that size. Sublime not only opens it but syntax highlights immediately.

Re:Ask HN: Is there still a place for native desktop apps? by inapis on Monday May 18, 2020 @04:33AM (#23219856)
This is something with your configuration. OOB VSCode will immediately show you the file but disable tokenization and certain other features. I regularly open JSON files upto 10 MB in size without any problem. You probably have plugins which impede this process.