On Sun, 24 May 2026, Tomas Volf <[email protected]> wrote: [...] > This was quite interesting read. The problem of generating identifiers > describe above seems non-trivial. I probably do not have anything novel > to add to the debate, but two questions popped up in my head. > > 1. What do other Schemes do? > 2. Would incorporating source location (if available) into the hash be > valid?
I've tried to hash the syntax instead of the datum in psyntax. Looking at the C code for hashing, hashing syntax seems to also include some metadata information. But it did not yield a fix. I think what we probably want is a strong collision resistant hash. A strong crypto hash would do the job for this. So the current core hash would not be impacted. I had some discussions related to this, i.e. crypto hash, in core guile, with Ludovic and Rob. I think that having core support for some the crypto hashing makes sense, especially if the compiler needs it. Thoughts? Thanks, Olivier -- Olivier Dion
