by matheusmoreira · 3mo ago · 0 comments
I'm also very impressed by part 2. I have my own lisp but I haven't managed to implement a compiler or code generation yet. Really enjoyed reading about the hashmap too. The textbook solution to collisions is probing and comparison. It never occurred to me that I could just resize the underlying array until the collisions disappear altogether.
He researched different methods. My favourite for elegance is to recursively hash the hash n times.