| ▲ | r_lee 2 days ago | ||||||||||||||||||||||||||||||||||||||||||||||
> 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 | |||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | debazel 2 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
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. | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | ogoffart 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
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. | |||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | amelius 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
QtQuick is quite good. | |||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | the__alchemist 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
Are you a web dev? | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | caspper69 2 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||
I have had excellent results running a back-end Rust process that communicates with a C# Avalonia front-end via protobufs over named pipes on Windows and Domain Sockets on Linux and MacOS. With C# AOT I’ve been able to create self-contained apps that run incredibly fast despite the ipc between the front end and the rust core. I’m getting full 6 platform coverage too (Win/Linux/macOS on both x64 and arm64). edit: Avalonia is quite mature, with accessibility to boot. | |||||||||||||||||||||||||||||||||||||||||||||||