News for hackers. Stuff that matters.
Re:Rust Qt Binding Generator by dman on Friday May 18, 2018 @10:08AM (#17101577)
What are the safety guarantees of the resulting program?
Re:Rust Qt Binding Generator by oever on Friday May 18, 2018 @11:38AM (#17102321)
The C++/Qt/QML code calls into Rust. The Rust parts are only calling to C++ with callbacks passed into Rust. Those callbacks are small and typical Qt. They do construction, destruction and (thread-safe) signaling.

So as per custom in Rust the safety rules of the C/C++ code is encoded in the Rust API which makes that part safe.

The C++ part calling Rust has the normal C++ safety guarantees, which are less strict than Rust. To have concurrency safety, it is recommended to only do the one GUI thread for C++ and do the multi-threading in Rust.

Re:Rust Qt Binding Generator by kazinator on Friday May 18, 2018 @10:11AM (#17101598)
The safety guarantees are precisely those of a program which calls reams of legacy C++ cruft.
Re:Rust Qt Binding Generator by dman on Friday May 18, 2018 @10:23AM (#17101678)
Would appreciate pointers to pure rust GUI libraries from any rust experts in this thread.
Re:Rust Qt Binding Generator by dagmx on Friday May 18, 2018 @10:50AM (#17101906)
The current state of UI in rust is very early.

Most of the mature UI libs are bindings to another language.

However there are some native UI libs

https://github.com/PistonDevelopers/conrod/blob/master/READM...