News for hackers. Stuff that matters.
Re:Safety vs. Performance. A case study of C, C++ and Rust s... by Voultapher on Friday October 06, 2023 @03:24AM (#37788048)
I'm not sure enumerating the entire domain is even possible in this setting, as the comparison function could return random values for each call.

The idea is that the implementation doesn't promise it will detect a strict weak ordering violation, but it has code that will detect the effects of such violations with a high probability. It's not a sampled approach, but rather as part of the small-sort a bi-directional merge is performed and if the pointers don't line up, the only explanation is a strict weak ordering violation, the result of the merge is discarded and a panic is raised.

There are no comments on this comment yet.