News for hackers. Stuff that matters.
Re:Every Windows 11 app should kill Electron, and Discord ju... by r_lee on Saturday November 07, 2026 @07:35AM (#50404023)
> C++ with Dear ImGui

it would be absolutely awful

compared to chromium, it's really limited, like it's just always a compromise with these

we should instead figure out a way to do electron but better and make it easier to do the things you can do with e.g. React with native languages and frameworks

Re:Every Windows 11 app should kill Electron, and Discord ju... by amelius on Saturday November 07, 2026 @07:47AM (#50404096)
QtQuick is quite good.
Re:Every Windows 11 app should kill Electron, and Discord ju... by debazel on Saturday November 07, 2026 @08:07AM (#50404250)
The limitations are a large reason for why they're so resource efficient in the first place.

If you just reimplement Electron in a native language then you get... Chrome, which is already written in C++. The majority of RAM usage in Electron applications is from the native parts of Chrome itself and a decent ~40 MiB chunk for the Node.js runtime.

Re:Every Windows 11 app should kill Electron, and Discord ju... by hobo123 on Sunday November 08, 2026 @07:55AM (#50412870)
Name one feature that is a reason for a GUI framework to require lots of resources.

To me it seems like all frameworks and apps use much more memory than 10 years ago, but don't really offer more features.

Maybe a really young GPUI still has limitations, but I doubt it would suddenly need to use 5x as much memory if you added them.

Re:Every Windows 11 app should kill Electron, and Discord ju... by caspper69 on Saturday November 07, 2026 @08:13AM (#50404293)
[delayed]
Re:Every Windows 11 app should kill Electron, and Discord ju... by the__alchemist on Saturday November 07, 2026 @08:45AM (#50404483)
Are you a web dev?
Re:Every Windows 11 app should kill Electron, and Discord ju... by r_lee on Saturday November 07, 2026 @08:51AM (#50404527)
I use ImGui regularly, if you believe that it is on the same level as what you can do with React/HTML/CSS/etc. then I don't know what to tell you
Re:Every Windows 11 app should kill Electron, and Discord ju... by the__alchemist on Saturday November 07, 2026 @08:58AM (#50404577)
I have seen this assumption in recent GUI threads here (More so your upper post): Building a GUI is not equivalent to building a web browser. I didn't think I would need to write this statement, but I have here. Web languages, culture, and syntax have not been a value add to PC application development. Electron is the clearest example why. My model is that is the value add of Electron: Appealing to web devs through language and culture.
Re:Every Windows 11 app should kill Electron, and Discord ju... by r_lee on Saturday November 07, 2026 @09:23AM (#50404798)
it's not just about "appealing to web devs"

you simply just would stumble if you tried to do development like you can in React, constant "uhh... can't do that." while it just works in React.

I don't think anyone likes the look of Qt more than what you can achieve with webapps in terms of UI (style/etc. wise)

problem is the performance, I don't think many would be complaining if the performance was proper and the memory usage wasn't as terrible as it is now

you're talking about web browsers, I don't care what it runs on, if we have a way to run this in a lightweight way, would your complaints go away?

even Gnome uses JS etc.

you can do complex stuff in native UI, of course you can

what I'm talking about is the same kind of DX as with React. I really don't have faith in that, e.g. the new thing Discord is about to use, the css it tries to imitate just seems absolutely terrible.

the web technologies aren't perfect, in fact, far from it. however, when I see React vs whatever C/C++ alternative, I'd always go for React if it's about making the UI nice.

I've also shat on Electron before, but there's a reason as to why it's so popular. the tooling/UI capabilities are just much more powerful.

Re:Every Windows 11 app should kill Electron, and Discord ju... by bigstrat2003 on Saturday November 07, 2026 @03:05PM (#50407560)
> I don't think anyone likes the look of Qt more than what you can achieve with webapps in terms of UI

You are incorrect. In fact, us users hate that fact that UI designers keep making apps that look nothing like the rest of our system. Give me a nice native-looking app any day of the week.

Re:Every Windows 11 app should kill Electron, and Discord ju... by Telaneo on Saturday November 07, 2026 @03:22PM (#50407707)
> I don't think anyone likes the look of Qt more than what you can achieve with webapps in terms of UI (style/etc. wise)

I don't want web app UIs. They all look different for no good reason. I want native UIs. I like qt. Please just give me a stable UI that I learn and stick with for the next 20 years.

Re:Every Windows 11 app should kill Electron, and Discord ju... by baist0 on Sunday November 08, 2026 @12:33AM (#50410687)
Listen! The fact is, JavaScript/HTML/CSS are a holy cow, and the Web is a religion. And you will come up with any excuse just to protect your holy temple.
Re:Every Windows 11 app should kill Electron, and Discord ju... by ogoffart on Saturday November 07, 2026 @09:50AM (#50405026)
That’s what we’re trying to do with Slint (I work on it): a declarative, reactive UI like React, with the logic in Rust, C++, JS or Python. It needs no browser engine, so it uses a fraction of Electron’s memory.