Top 5 Favorite OCaml Libraries?

Hello,

  • First, gsl (ocaml-gsl oandrieu and M. Mottl) because I am a numerical physicist, on the analysis side (integration, differential equations, etc).
    The GSL (Gnu Scientific Library) is a C library for numerical calculations.
    This may be not said very often but OCaml is great for numerical physics ! I switch to OCaml 20 years ago thanks to the existence of ocaml-gsl. I was using the GSL in C/Fortran and the OCaml wrapper is great to insure the correctness of the algorithm, for the readibility, etc. For example, in analysis basically everything is a float and OCaml allow to distinguish between them.

  • stdlib (I think it is a great standard library),

  • cmdliner

  • ppx_deriving

  • fmt (as Fprintf replacement)

6 Likes