20080215

Ocaml and Extlib

At one point or another, you need to select an extension library for your Ocaml programs, or roll your won. For the past ~9 years I have been mostly satisfied with the standard libraries and for the rest, I usually rolled my own. I'm not talking of Netclient bindings or of PCRE, but pretty basic stuff like string splitting, wrapping file opening, and so on. But I needed some Unicode capabilities and I really wasn't in the mood to wrestle with UTF8 encodings, been there, done that, so I grabbed a copy of Extlib and started using it. I was a little bit disappointed since it is much less complete then what I expected, so I started patching it and sending it "upstream". Fortunately their developers are friendly and quickly integrated my change, rightfull asking for a unit test (which actually uncovered a bug!).

No comments: