Preferences

Off-the-cuff thought:

Could you solve the empty string hashes to zero problem by just adding one when computing hash codes?


But then strings with the hash code HASH_MAX would wrap to 0 instead.
You could, but that would break backwards compatibility.

This item has no comments currently.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal