ls lib/ocaml/
OCaml
Polymorphic compare and Hashtbl in the runtime.
- draft How OCaml's Hashtbl and polymorphic hash workOCaml 5.5.2's Hashtbl is a bucket array of linked cells that doubles at load factor 2, hashed by a C function that stops after 10 values, with polymorphic compare for equality and randomization you have to ask for.
- draft OCaml's polymorphic compare: convenient and slowHow OCaml 5.5.2's compare orders any two values by walking their memory, when the compiler quietly replaces it with an integer comparison, and what it costs when it doesn't.