Skip to content

Instantly share code, notes, and snippets.

@fredyr
Last active August 29, 2015 14:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredyr/eea36417b6c30817456f to your computer and use it in GitHub Desktop.
Save fredyr/eea36417b6c30817456f to your computer and use it in GitHub Desktop.

Learning OCaml

Similarly to what exists for Haskell, I wanted to make a curated collection of good resources for getting started with OCaml.

Installation and getting started

Follow the installation instructions from the Real World OCaml book available here. This will get you accustomed to

  • Opam, the package manager, which also gives to the possibility of switching between OCaml versions.
  • Utop, a modern interactive toplevel
  • Set up of your enviroment, in particular #use "topfind" so that Utop finds your packages installed by Opam.

Course material

  • Cornell's "CS 3110 - Data Structures and Functional Programming" have very good lecture notes available online. The programming assignments seem to be good quality overall but some depend on code and/or tools not available for download.
  • OCaml for the Skeptical, with course material found here.

Books

Tip: Focus on the material in Real World OCaml, and use the other resources as complementary material when you want more examples or alternative explanations of a concept.

Documentation

The OCaml website has got a lot of good material. Most notably:

Let me know if you have comments or other resources that should be added!

@Khady
Copy link

Khady commented May 11, 2015

https://github.com/rizo/awesome-ocaml can be a good starting point. And you can contribute. A "getting started" section may be a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment