Elektrine lite

← Feed

@slava@mathstodon.xyz

Post #3722207

2026-07-10 17:44 UTC

@zwarich@hachyderm.io @joe@f.duriansoftware.com Ideally in a compiler you wouldn’t have any hash functions that depend on the address of a value at all, because then it’s easy to introduce non-deterministic behavior. But I assume it’s not practical to ban this entirely

Replies (1)

  • @slava@mathstodon.xyz 2026-07-10 17:45

    @zwarich@hachyderm.io @joe@f.duriansoftware.com Maybe if you did everything Knuth-style with “pointers” being integers into one big continuously-allocated heap (or multiple heaps by kind, etc), you could guarantee determinism from run to run even if the behavior does depend on hashing order

    Open ##3722205