Open links in new tab
  1. Welcome to a World of OCaml

    OCaml is a general-purpose, industrial-strength programming language with an emphasis on expressiveness and safety.

  2. Learn OCaml

    Getting started with the OCaml programming language. Read the official tutorials, exercices, and language manual.

  3. Why OCaml?

    OCaml is a mature, statically-typed, functional programming language. Learn more about its rich history and what makes it unique.

  4. A Tour of OCaml

    Hop on the OCaml sightseeing bus. This absolute beginner tutorial will drive you through the marvels and wonders of OCaml. We'll have a look at the most commonly used language features.

  5. Your First OCaml Program

    Voilà! You've just written your first OCaml program. In the rest of this tutorial, we will make more changes to this project in order to illustrate OCaml's tooling. Watch Mode Before we dive in, note that …

  6. OCaml - The OCaml Manual

    The OCaml system release 5.4 October, 2025 This manual is also available in PDF, plain text, as a bundle of HTML files, and as a bundle of Emacs Info files.

  7. Installing OCaml · OCaml Documentation

    This page will help you install OCaml and the OCaml Platform Tools. | These instructions work on Windows, and Unix systems like Linux, and macOS.

  8. Configuring Your Editor · OCaml Documentation

    The OCaml ecosystem provides ocaml-lsp-server, a Language Server Protocol (LSP) server that delivers editor features such as "jump to definition," "show type," autocompletion, and more.

  9. OCaml - Interfacing C with OCaml

    The OCaml FFI provides an alternative API to call OCaml code from C that returns a value of type caml_result instead of value. A C value of type caml_result is either an OCaml value returned …

  10. Operators · OCaml Documentation

    Binary and prefix operators, how to use and define them, how they are parsed and evaluated.