←back to thread

16 points tones411 | 1 comments | | HN request time: 0.232s | source

Electron gets hate due to filesize and memory bloat. C++ gets hate for memory leaks. Rust with Tauri relies on a webview which could change versions underneath the app when the OS gets an update.

Which language and cross platform desktop GUI framework checks the boxes for being lightweight in terms of filesize and memory usage, has native controls, supports accessibility and uses retained mode rendering, and works the same ten years from now as the day it was installed?

If someone were to build an installable desktop app with buttons, checkboxes, inputs etc. (so not a video game) which language and GUI framework should they to use to please the memory and filesize conscious?

1. 0xCE0 ◴[] No.45578250[source]
The most obvious answer would be to use the OS's native UI widgets, e.g. in Windows maybe even Win32 widgets. With under 200 lines (!) of C/C++ code you get windows, buttons, text fields, lists, tables, whatever you need. The end result is an executable of size less than 8 kilobytes, and has been working last 20-30 years in the past, and most probably will work decades in the future.

Besides, there isn't really "cross-platform GUI", because not every platform has same kind of widgets and behaviors.