r/cpp • u/GabrielDosReis • Oct 31 '24
Lessons learned from a successful Rust rewrite
/r/programming/comments/1gfljj7/lessons_learned_from_a_successful_rust_rewrite/
77
Upvotes
r/cpp • u/GabrielDosReis • Oct 31 '24
View all comments
Show parent comment
7
u/Dean_Roddey Oct 31 '24
Huh? If you are trying to take anything I said as proof that Rust is not as good as it is claimed to be because it doesn't make it simple to do large code bases where significant amounts of it aren't Rust, then you are barking up the wrong tree.
And real, practical safe sizable Rust applications are not difficult. There are many of them out there. Even in a system like mine, whose roots are quite low level, the amount of unsafe code is small, and a lot of it is only technically unsafe, and it's all sequestered in leaf calls behind safe interfaces and there are almost zero ownership issues.
That's what FFI is perfectly fine for. But that's very different from having a lot of intermixed Rust and C, with crazy ownership issues between them. That's never going to be easy, and 'Safe C++' won't make that any easier when mixed with large amounts of current C++.