Resources for Learning OCaml
- Caml Trading
- Video of a lecture by Yaron Minsky where he explains why Ocaml is a good language
for printing money on Wall St.
- Introduction to Caml
- One long page which briefly touches on the core features of OCaml.
- OCaml for scientific computation
- Longer than the above tutorial, teaches you the basics of OCaml programming with code examples from scientific computing and compares how
given algorithms would be implemented in other languages.
- A port of the "Perl Cookbook" to OCaml. Every time you wonder "How do I <do some common task> in OCaml?", go here.
The offerings on Amazon are sparse and depressing. While we wait for someone to write
something like Real World Haskell
for OCaml, read these instead.
- Unix system programming in OCaml
- A guide to lower level programming (file manipulation, sockets, threads, etc..) by two prominent OCaml researchers.
- Developing Applications With Objective Caml
- It's not a perfect book (slightly outdated, ugly HTML formatting) but still
a good read. The book starts from language fundamentals (types, functions, control structures, modules)
and works up to some interesting applications (spelling correcter, minesweeper clone, alpha-beta pruning). Also
covers more advanced topics like concurrency, when to use modules vs. objects, and using some of the associated OCaml tools.
In addition to learning the language, it also helps to know about a few tools which will make your life easier.
For an example of a project with multiple source files and unit tests, check out ocaml_skeleton.
Advanced Stuff & Blogs