News for hackers. Stuff that matters.
Re:Rust Cryptography Should Be Written in Rust by adwn on Saturday August 26, 2023 @02:38PM (#37275617)
For our client, we've developed a desktop application in Rust – with a thin GUI frontend in C++/Qt – to filter, process, and visualize sensor data streams (3D point cloud data from a Lidar). Each data stream was about 400-500 Mbit/s in 55k UDP packets per second, with support for at least 4 simultaneous streams. The focus was on high performance and development speed, security didn't matter at all.

We chose Rust for its unique position in the performance/productivity tradeoff space, and didn't regret it even for a second. There's no way we could have pulled this off with C++ in the same time, especially the bug-free parallelization.

Re:Rust Cryptography Should Be Written in Rust by jenadine on Saturday August 26, 2023 @02:46PM (#37275692)
Why use C++ for the front-end though?
Re:Rust Cryptography Should Be Written in Rust by adwn on Saturday August 26, 2023 @03:24PM (#37276006)
We selected Qt as a cross-platform solution. The C++/Rust interface is the clunkiest and ugliest part of the application, and rather complex because some state is shared between several windows in the GUI and several threads in the backend, and any component might modify that state at any time, and updates have to be transmitted to the other components without introducing inconsistencies. However, using cxx [1] helped a little.

The project began in 2020, and I'm not sure what I'd choose as a GUI framework today – definitely not Qt Widgets, though.

[1] https://cxx.rs/

Re:Rust Cryptography Should Be Written in Rust by agsgs on Wednesday August 30, 2023 @02:02PM (#37326241)
Have you considered this: https://pub.dev/packages/rust_in_flutter ? It really provides smooth connection between these two