Learn OCaml
GET STARTED
Introduction To OCaml
Install OCaml and gain a high-level understanding of language features
Get Started
LANGUAGE
The OCaml Language
An in-depth explanation of language features and data structures from the Standard Library
- Values and Functions
- Basic Data Types and Pattern Matching
- Lists
- If Statements, Loops, and Recursions
GUIDES
Practical-Minded Tutorials and Guides
How to solve real-world problems in OCaml
See More Guides
PLATFORM
The OCaml Platform
Learn to leverage the tooling around OCaml and create your own projects and libraries
- Bootstrapping a Project
- Managing Dependencies
- Install a Specific Compiler Version
- Configuring Your Editor
BOOKS
Recommended For Beginners

Beginner
OCaml From the Very Beginning
Suitable for formal use within an academic curriculum, and for the interested amateur.

Advanced
OCaml Scientific Computing
BOOKS
For Intermediate Users

Intermediate
Real World OCaml
Suitable for people with some imperative programming experience. Hands-on code examples using real world scenerios.

Intermediate
More OCaml: Algorithms, Methods, & Diversions
This book covers topics like laziness, compression, generating PDFs, and more. A basic understanding of OCaml is required.
GUIDE
Language Manual
OCaml language manuals are comprehensive guides covering syntax, features, and usage. They assist developers and learners in understanding capabilities, best practices, and exploring functionalities.
Take Me TherePapers
Aspiring towards greater understanding of the language? Want to push the limits and discover brand new things?
Check out papers written by leading OCaml researchers:
Retrofitting Effect Handlers Onto OCaml
K. C. Sivaramakrishnan, Stephen Dolan, Leo White, Tom Kelly, Sadiq Jaffer, Anil Madhavapeddy
PLDI
effects
Extending OCaml's `open`
Runhang Li, Jeremy Yallop
ocaml-workshop
core
language
Bounding Data Races in Space and Time
Stephen Dolan, KC Sivaramakrishnan, Anil Madhavapeddy
PLDI
multicore