And yet it had an issue for quite some time where animating the cursor flashing was taking an enormous percentage of CPU.
https://github.com/microsoft/vscode/issues/85971
Or how Rust is used for search via ripgrep.
Also do you consider that VSCode has higher performance requirements than XBox dashboard, or Office plugins?
Having a declarative rendering logic, a rendering runtime, the VDOM, diffing, re-rendering, update scheduling and everything else that React uses under the hood is always going to be slower than tailor-made imperative rendering.
And let's not even go down the rabbit hole which is concurrent mode and suspense, where React is going to be basically a black box more suited to quantum computing with the whole "render x times and settle on a result that it thinks is correct".
I'm not sure if it will take up more resources than the Xbox dashboard or office plugins, but I am willing to say "yes". The dashboard is quite simple compared to a full-fledged IDE which VScode is becoming, and I'm yet to see the whole Office suite, including the underlying logic, being ported to React Native.
Atom was ported to React at one point but they quickly abandoned it because of the bad performance. Microsoft followed suit and hasn't even bothered with React for VScode.
VSCode has a very technical user base that will complain a lot if there is any kind of sluggish performance when doing live debugging. It's not just to work on small JS projects anymore. I use it to debug CUDA kernels on several processes at the same time and a lot of people have similar push-it-to-the-limit use cases.
I work on very large and complex projects ... the current one I'm working with is a massive Angular 12 project.
The fact that it's Electron doesn't matter to me. I am not concerned with it "using much more memory than native" because that has no effect on me.
All I care about that it works, and that is is performant. It is both.
The rest of it is in hosting the processes and plug-ins for it. Microsoft also developed the Language Server Protocol that provides intellisense and other features for each language: https://microsoft.github.io/language-server-protocol/
So it's not so much the stack as the pure engineering time.
So...not a lot of Microsoft product in it. Ironic.
Anyways, try golang with imgui.
You can make imgui look like anything. Ontop of that, you get true cross platform binaries with native speeds with only a couple dozen lines of code and amazing dependancy management. If you've never done immediate mode front-ends, you'll be delighted.
Great point.
As a developer in the Windows sphere for decades, I'm used to change.
However, at this point I have no idea what I am supposed to be developing user interfaces in. Honestly, using VS Code daily as part of my stack I'm leaning towards just accepting that WebView2/Electron/etc is the future.
I have read the complaints, but VS Code is a solid piece of engineering and it "just works". If that's an example of what we can easily get cross-platform, so be it.