News for hackers. Stuff that matters.
Re:Show HN: Discohash – Fast Hash by fantastisch on Saturday May 23, 2020 @02:31PM (#23285234)
Great question, and thank you, Salvatore!

Some reasons for that are: different hashes for s and s\0 (without explicitly using length) to make it harder to create collisions, related to as you say better distribution/avalanche for short strings, also design-wise I like the asymmetry that strings not perfectly divisible by 8 will be treated a little differently. I just think that makes it better overall.

Re:Show HN: Discohash – Fast Hash by antirez on Saturday May 23, 2020 @04:27PM (#23286106)
Thanks for the replies!
Re:Show HN: Discohash – Fast Hash by fantastisch on Sunday May 24, 2020 @12:36AM (#23289128)
No probs. I think your idea of unifying the two loops is a good one.

A new version that uses the idea and overcomes the challenges would be great, and would simplify the code even more.

If you had a way to make a start on it, I welcome your PR.