News for hackers. Stuff that matters.
Re:Running the "Reflections on Trusting Trust" Compiler by vlovich123 on Wednesday October 25, 2023 @11:48PM (#38021399)
Not all containers right? Just unordered containers. It’s a bit weird of a strategy though - most other applications use a random seed for unordered hash tables.
Re:Running the "Reflections on Trusting Trust" Compiler by wyldfire on Thursday October 26, 2023 @12:07AM (#38021498)
Rather than change the implementation of the DenseMap/DenseSet/StringMap/StringSet containers to mask such codegen defects, the community opted to create a test strategy to find the defects instead.

I would guess that this may also end up favoring the execution performance of the compiler over other design choices, but I could be wrong about that one.

Re:Running the "Reflections on Trusting Trust" Compiler by JonChesterfield on Thursday October 26, 2023 @12:27PM (#38027921)
A random seed for unordered hash tables would make a mess of reproducibility. Bad thing in this context.
Re:Running the "Reflections on Trusting Trust" Compiler by vlovich123 on Thursday October 26, 2023 @12:51PM (#38028309)
The iteration order is undefined for these containers. The whole point of the reverse iteration is to find when reproducibility is dependent on undefined iteration order. If the reverse iteration accomplishes this, so would a random seed.