On Tuesday, 28 March 2023 at 21:23:25 UTC, Dadoum wrote:
> On Tuesday, 28 March 2023 at 20:39:34 UTC, Zealot wrote:
> On Sunday, 26 March 2023 at 15:56:50 UTC, Ogi wrote:
> On Saturday, 25 March 2023 at 13:11:58 UTC, Zealot wrote:
> On Saturday, 25 March 2023 at 13:01:44 UTC, Ogi wrote:
just use webview2/CEF and Vue.js (or whatever other framework you prefer).
Everything web-based runs like garbage and uses tons of RAM.
not if you write proper code. and RAM doesn't really matter much on the desktop anyway.
If you intend to write a big software, it matters a lot because they already require quite a lot of RAM. Look at most professional softs, they are native yet takes a big amount of RAM (Let's estimate it to 4 GB, for Visual Studio and light usage of Adobe software IIRC back when I was on Windows). Then look at Electron apps. They are taking a comparable amount of RAM (400 MB for Discord ~ 2 GB for Slack), while they offer almost nothing in comparison. If you make a web app you are already accepting to sacrifice a lot of performance while a native GUI framework would probably have allowed more flexibility (taking advantage of language features) while being way more efficient in resource.
'a lot of RAM' for systems from 20 years ago. in todays world of desktop computers it's really nothing.
also chances are the webui2 is already loaded on a windows system, so it will not take up any additional RAM.
in contrast you can ship a webui based D app with 2mb today and it will work on windows. QT requires you to also include 100mb of dlls, which will also consume memory.
"If you make a web app you are already accepting to sacrifice a lot of performance" is also simply not true.
a) i'm not suggesting you write your whole application in js. write it in D and only the
UI part in the browser.
b) have you ever actually measured it, because in all the tests i did, the vue.js UI was actually faster than the native (QT and MFC) versions.
"native GUI framework would probably have allowed allowed more flexibility", really? how? the webui runs an basically any device, remotely. HTML offers a lot more flexibility than T-widgets when it comes to customization, and it's 1000times simpler. QML is basically the same thing as a webapp, just with all the downsides.