News for hackers. Stuff that matters.
Re:Speedy Desktop Apps with GTK and Rust by gmueckl on Saturday July 06, 2019 @09:44AM (#20369625)
The real problem isn't that C++ is that hard to bind. Writing a C style wrapper around the OO style code in Qt is easy. But Qt relies on compile time code generation for event handling, properties and such, and this part is hard to replicate in other languages. It can be done; PyQt, PySide, etc do it, but it takes quite some effort.
Re:Speedy Desktop Apps with GTK and Rust by 0815test on Saturday July 06, 2019 @03:25PM (#20371374)
Rust has excellent support for compile-time codegen.
Re:Speedy Desktop Apps with GTK and Rust by gmueckl on Saturday July 06, 2019 @04:18PM (#20371671)
You are welcome to try to duplicate the functionality of the moc tool somehow. If it was trivial, it would have been done already.
Re:Speedy Desktop Apps with GTK and Rust by ogoffart on Saturday July 06, 2019 @06:07PM (#20372309)
It has been done already: https://github.com/woboq/qmetaobject-rs
Re:Speedy Desktop Apps with GTK and Rust by gmueckl on Saturday July 06, 2019 @08:09PM (#20372813)
Hm... unless I am mistaken, this misses the ability to write arbitrary slots and connect them. If I am right, then a major part of what moc is responsible for - the whole signal/slot glue code - is not covered in this library.