freenode/#sbcl - IRC Chatlog
Search
19:42:13
flip214
ouch. (SXHASH `((:key1 "string1") (:key2 "string2") . X)) collides even for different X'es. That's unexpected.
20:11:59
stassats
(SXHASH `((:key1 "string1") (:key2 "string2") . X)) and (SXHASH `((:key1 "string1") (:key2 "string2") . Y))
20:15:05
pfdietz
sxhash is more optimized for speed; not to be a crypto hash that depends on everything.
20:17:10
flip214
in the pastebin you can put comment markers on the lines beginning with %r14 and get the same result
20:21:47
flip214
stassats: because I don't care about the operands themselves - I don't even split them up.
20:22:57
flip214
no, I need to reproduce them later on. but isn't that completely tangential to the SXHASH collisions?
20:36:42
flip214
well, generating a text string via (format nil "~(~36,12,'0r~)" (SXHASH input)) was really convenient...
20:40:07
flip214
yeah, the function now pre-allocates a string, and writes character by character into it. could be done much shorter, I guess.
21:35:56
stassats
laying out elsewhere after the function that uses it (i.e. not at the end of a code object that has closures) is beneficial for code size
21:54:13
stassats
though even error jumps might require near jumps more often when the traps are after another function
21:54:43
stassats
or maybe it's time to turn all traps into CCs and fetch the parameters from the debug function