News for hackers. Stuff that matters.
Re:CXX-Qt: Safe Rust bindings for Qt by jcelerier on Wednesday March 02, 2022 @07:32AM (#30526614)
Which features are you talking about ? Even in c++23 there isn't yet a way to replicate moc, rcc, uic with the same ergonomy for the end user and the same efficiency.
Re:CXX-Qt: Safe Rust bindings for Qt by badsectoracula on Wednesday March 02, 2022 @07:38AM (#30526663)
I mean things like containers though in the context of a new language chances are the language itself may provide functionality that makes moc unnecessary.

Also you certainly do not need something like moc to make a GUI library, which comes back to what i originally wrote in that you do not need to replicate Qt to have a GUI library.

Re:CXX-Qt: Safe Rust bindings for Qt by ogoffart on Wednesday March 02, 2022 @08:15AM (#30526962)
"containers" was not in the list.

There sure is some overlap with what Qt offers that most language offers (Containers, Networking, Database, threading, ...). But purely in the context of making a UI library, there is still a huge amount of things that Qt offers that needs to be replicated.

Re:CXX-Qt: Safe Rust bindings for Qt by badsectoracula on Wednesday March 02, 2022 @08:25AM (#30527052)
The post i replied to was about how big Qt is, which includes containers, etc. That the specific examples given did not contain "containers" isn't relevant since they are part of the "2 million LOC" mentioned.

Yes, you need to implement similar functionality, like abstracting the window system, input handling, text, etc but you do not need to replicate what Qt does to have a GUI toolkit.

Qt is very complex and Qt is (among others) a GUI library but Qt being complex doesn't mean that GUI libraries have to be complex.

Re:CXX-Qt: Safe Rust bindings for Qt by rob74 on Wednesday March 02, 2022 @08:47AM (#30527246)
...but, as others have noted, even if you want to only support the "core" features that most people would take for granted for a GUI (cross-platform, all the "usual" widgets including complicated ones such as RichEdit, ListView, TreeView, text with Unicode support and subpixel rendering etc. etc.) it's already a massive undertaking.
Re:CXX-Qt: Safe Rust bindings for Qt by badsectoracula on Wednesday March 02, 2022 @12:05PM (#30529660)
That is another issue, yes, it is not trivial (though it isn't like making a browser or even a game engine - especially since game engines nowadays tend to have their own GUI toolkits :-P) but my point was that you do not need to replicate what Qt does to have a useful and usable library.