Eric Lippert wrote an ocaml implementation and blogged about it
https://ericlippert.com/2016/02/03/north-of-house/