4 ms·
Causality and determinism are different, and it honestly makes sense to have it be random to tease out bugs as early as possible. For a prime example see hash
by Gwypaas 4y ago
Causality and determinism are different, and it honestly makes sense to have it be random to tease out bugs as early as possible.
For a prime example see hash maps in Go, which is specifically non-deterministic when iterating over them to prevent users from relying on any kind of implicit behavior.
> "When iterating over a map with a range loop, the iteration order is not specified and is not guaranteed to be the same from one iteration to the next."
https://go.dev/blog/maps https://go.dev/blog/maps
- jeffparsons 4y ago> [...] prevent users from relying on any kind of implicit behavior. Except now you just _know_ that somebody out there is using hash map iteration order as a source of entropy. ;)
- Gwypaas 4y agoHush! > "Is map iteration sufficiently random for randomly selecting keys?" https://stackoverflow.com/questions/41019703/is-map-iteration-sufficiently-random-for-randomly-selecting-keys https://stackoverflow.com/questions/41019703/is-map-iteratio...