Re:Ask HN: Why would you ever use C++ for a new project over...
by madnirua on Tuesday April 02, 2024 @02:21PM
(#39909102)
Did you get a chance to check https://slint.dev?
Disclaimer: I work for Slint
Re:Ask HN: Why would you ever use C++ for a new project over...
by Avamander on Wednesday April 03, 2024 @05:34AM
(#39915198)
I like it in theory but the small demos I've played with lack a lot of the details that GUI toolkits have converged upon. Small behavioural things ingrained in usage patterns that have to be reimplemented.
First two that come to mind are tab/shift-tab navigation and being able to adjust sliders roughly with arrow keys.
It's really difficult to evaluate a hardware product with only a C(++) SDK using only Rust. There are of course ways around this but those are a significant amount of effort.
In terms of GUIs - there's simply no "Qt-Rust" that would work in a Rust-y way without causing massive headaches. Handling all that state is incredibly difficult in Rust, at least for me (but I recall others describing why as well).