News for hackers. Stuff that matters.
Re:C++ vs. Rust Build Times by strager on Friday January 06, 2023 @01:30AM (#34271650)
No.

If I was going to run sanitizers with the C++ code, for a fair comparison, I would also run the Rust code with Miri. (C++ sanitizers check unsafe code, but without Miri, rustc mostly checks only safe code.)

Re:C++ vs. Rust Build Times by vegerot on Friday January 06, 2023 @01:45AM (#34271734)
What about the other way around? Trying to cripple rustc until its features are closer to clang's? For example, removing some of the sanitizers or borrow checker in rustc?
Re:C++ vs. Rust Build Times by strager on Friday January 06, 2023 @01:57AM (#34271781)
That's a great idea! Unfortunately, I think there's no way to disable rustc's borrow checking or other safety features.
Re:C++ vs. Rust Build Times by insanitybit on Friday January 06, 2023 @02:20AM (#34271887)
Just fwiw you can run rust code with sanitizers, no need for miri, which works differently.
Re:C++ vs. Rust Build Times by strager on Friday January 06, 2023 @04:03AM (#34272578)
Oh, I did not know this.