Considering the insane memory consumption of claude code running in my terminal, electron was never really the problem, bad software was the culprit all along.
Likewise, Gnome has proven that you can write entire UIs in Javascript and have them be quite performant.
Electron (well, Node is a big sub-culprit) and Javascript in general just make it really easy to create a slow, bloated application.