News for hackers. Stuff that matters.
Re:Ask HN: What are some cool but obscure data structures yo... by andyferris on Thursday July 21, 2022 @10:53PM (#32187928)
Well, hard/impossible to predict perhaps. Iteration order can depend on the order things were inserted and deleted and may differ from computer to computer (for example in Julia the hash-based dictionary ordering differs between 32 and 64 bit systems, and might change between versions of Julia, etc - you’d see the same thing with C++ unordered maps, etc, etc).
Re:Ask HN: What are some cool but obscure data structures yo... by okennedy on Friday July 22, 2022 @01:26PM (#32194609)
The same thing was a huge issue in Python until somewhere around 3.6, until they canonicalized the sort order.