|
|
|
|
|
by CJefferson
1093 days ago
|
|
Looking at a couple of programs I work on: 9,500 lines of code, 8 are unsafe. 7,000 lines of code, 22 are unsafe. 14,000 lines of code, 140 are unsafe. As we follow the standard rust rule that "safe code should not be able to use unsafe code to do unsafe things", those unsafe bits of code have been very carefully checked, to the best of our abilities, to ensure they don't create memory safety issues. It is a lot easier to triple-check 170 lines of code than 30,000 lines. |
|
I use some published crates that have unsafe code, but my own programs start with
This is 60FPS 3D high-detail graphics stuff, where performance matters.