• GarlicToast@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    4 days ago

    It is easier to safely optimize Rust than C, but that was not the point. The point was on correctness of code.

    It is not unheard of for code to run for weeks and months. I need the code to be as bug free as possible. For example, when converting one of our tools to Rust we found out a bug that will lead to the wrong results on big samples. It was found by the Rust compiler! Our tests didn’t cover the bug because it will only happen on very big sample. We can’t create a test file of hundreds of GB by hand and calculate the expected result. Our real data would have triggered the bug. So without moving to Rust we would have gotten the wrong results.