News for hackers. Stuff that matters.

Maybe it's time to port VSCode to native?

Recently I decided to work on my gaming pc, installed vscode and setup everything. I was taken back how fast it felt. The experience was just an improvement all around. This is despite being pretty annoyed by having to relearn windows's flavor of shortcuts

My $3k macbook is also good, but nowhere near gaming pc. So that got me thinking this must be due to vscode being based on electron.

I think electron has crucial role, it allows for quick iteration and which is what's making vscode great right now.

However, vscode has also matured and many features have stabilized. So maybe it's not a bad idea to start creating natively built version that implements all of the stabilized functionality but comes with performance.

Technically speaking, how much speed can be expected from IDE built in C++/Rust from scratch vs Electron.

( 18 comments | 4 points | on HN )
Re:Maybe it's time to port VSCode to native? by jrogan993 on Friday February 05, 2021 @09:03AM (#26036402)
The VSCode team know performance is integral to it's success: https://twitter.com/robenkleene/status/1356276306237923330?s... .

I don't think it'd be worth porting over just yet, there's no other IDE/Text editor hybrid that comes close to it performance wise.

Re:Maybe it's time to port VSCode to native? by recov on Friday February 05, 2021 @03:42PM (#26040918)
Sublime + lsp with add-ons is pretty fast, but that probably strays too far from a real IDE. What ever a "Real" IDE is these days.
Re:Maybe it's time to port VSCode to native? by lifeplusplus on Saturday February 06, 2021 @12:36AM (#26044395)
purely for speed i used to use sublimetext but got real annoyed for buy now messages.. but it shows performance is very important feature.. if i had a choice between vscode as it's now vs soemthing as fast as sublime but with all vscode stuff, definitely going for faster one.
Re:Maybe it's time to port VSCode to native? by randomchars on Saturday February 06, 2021 @03:49AM (#26045229)
> but got real annoyed for buy now messages..

And have you considered buying it?

Re:Maybe it's time to port VSCode to native? by tuananh on Sunday February 07, 2021 @10:15PM (#26060368)
i bought sublimetext like 10 years ago. can't remember exactly. the license is still usable til now.

best $70 i have ever spent.

Re:Maybe it's time to port VSCode to native? by lifeplusplus on Saturday February 06, 2021 @12:33AM (#26044385)
I wanted to articulate what felt faster

- faster to switch files

- faster to type / input latency

- faster color coding of a file when you open it

- fast autocomplete (not type and wait)

- fast jumping to references (not click wait then new file opens up)

- fast startup time

- fast right clicks (not sure if i imagined it but right clicks felt instantaneous)

Re:Maybe it's time to port VSCode to native? by moistbar on Friday February 05, 2021 @10:12AM (#26037151)
Geany comes to mind, as does Vim. KDE's Kate is also quite fast and well-rounded.
Re:Maybe it's time to port VSCode to native? by speedgoose on Friday February 05, 2021 @10:39AM (#26037473)
Your gaming pc screen may have a better refresh rate, like 144hz or 240hz. It could explain a part of why you feel like vscode it more smooth and faster compared to your MacBook with a 60Hz display.
Re:Maybe it's time to port VSCode to native? by randomchars on Saturday February 06, 2021 @03:51AM (#26045239)
I've recently had a similar experience. Clean install of vscode after using the same profile for years, and the performance was night and day.

A few days pass, and it's gone. The more extensions I installed, the slower everything became.

Re:Maybe it's time to port VSCode to native? by d--b on Friday February 05, 2021 @04:37PM (#26041524)
Maybe it’s time to create a good truly cross platform ui library that would allow people not to use electron...
Re:Maybe it's time to port VSCode to native? by karmakaze on Saturday February 06, 2021 @01:46PM (#26048781)
Which active ones do we have now?

  - Jvm: Eclipse, NetBeans, JavaFX (still a thing?), Swing/AWT
  - Flutter/Dart: not really/ready for desktop
  - C/C++: Qt (not really free), GTK+ (ugly non-Linux), others...?
  - Haxe
Here's a post[0] that describes the current state:

> People will say “But there’s WxWidgets, but there’s GTK, but there’s Qt” as if someone is looking for ice cream and everyone is going “But there’s frozen shoe leather, but there’s frozen peas, but there’s an empty refrigerator” -- /u/shawncplus

[0] https://blog.royalsloth.eu/posts/sad-state-of-cross-platform...

Re:Maybe it's time to port VSCode to native? by satvikpendem on Saturday February 06, 2021 @10:48AM (#26047282)
Flutter is great. Still unstable for web and desktop for now.
Re:Maybe it's time to port VSCode to native? by lifeplusplus on Saturday February 06, 2021 @12:34AM (#26044387)
isn't that what QT is
Re:Maybe it's time to port VSCode to native? by umen on Saturday February 06, 2021 @01:43AM (#26044663)
it is not "realy" free very confusing license , and in the future license can be changed again
Re:Maybe it's time to port VSCode to native? by icedchai on Friday February 05, 2021 @09:55AM (#26036925)
I'm running it on a 6 year old machine and it feels very fast. Seems unnecessary effort to port it.
Re:Maybe it's time to port VSCode to native? by lifeplusplus on Saturday February 06, 2021 @12:31AM (#26044376)
it's kind of a thing you only realize once you experience something better.
Re:Maybe it's time to port VSCode to native? by icedchai on Saturday February 06, 2021 @12:02PM (#26047830)
I'm sure! I'm going to replace my 2014 iMac with an M1 (or whatever) equivalent once they are released. It's amazing how this machine has held up though.
Re:Maybe it's time to port VSCode to native? by tuananh on Sunday February 07, 2021 @10:13PM (#26060353)
vscode is much more responsive on linux (manjaro) than on my beefier desktop rig. no idea why.

the setup is the same. i use the sync features to sync all the config and extensions i use