Skip to content

Languages / OCaml

OCaml

A functional-first language for typed data models, native applications and JavaScript frontends.

Learning and tools

Documentation, practical learning and development tools.

All OCaml resources →
Build system

Dune

Dune is an OCaml build system for applications and libraries. It coordinates compilation, dependencies, tests and documentation through project configuration files and integrates with the OCaml package ecosystem. Start with a small…

Explore project →
Unikernel toolkit

MirageOS

MirageOS is an OCaml library operating system for building specialised unikernels. Applications combine the libraries they need and compile into a small system suited to a chosen deployment target. The project's skeleton applications are…

Explore project →
File synchronization tool

Unison

Unison is a file synchronizer written in OCaml. It compares two replicas of files and directories, identifies changes and helps reconcile differences, including conflicting edits. It supports POSIX systems and Windows. Start with two…

Explore project →

Current & upcoming events

All language events →

FUN OCaml 2027

– January 26, 2027 · Bengaluru, India; talks livestreamed

Follow OCaml jobs with Atom → Get updates in your feed reader.

Why is Ocaml not popular?

r/ocaml subreddit · Published February 23, 2025

A February 2025 Reddit discussion on OCaml's limited popularity aggregated long-standing technical and ecosystem criticisms from experienced practitioners. Participants noted the historical QPL license, since changed to LGPL, and the late…

How we accidentally built a better build system for OCaml

Jane Street Blog · Published January 24, 2025

A small compatibility tool became Dune—and left its creators maintaining two build systems. Andrey Mokhov traces the unexpected adoption and eventual migration, including the work needed to support Jane Street’s large codebase. An…

8 months of OCaml after 8 years of Haskell in production

Haskell Discourse · Published December 23, 2023

A senior Haskell practitioner published an experience report after eight months using OCaml professionally at Bloomberg, contrasting it with eight prior years of Haskell. The author cited OCaml's "ergonomic mutability" and simpler,…

About OCaml and its ecosystem

OCaml combines functions, inferred static types and pattern matching with imperative programming when you need it. It is useful for modelling structured data, building language tools and writing native applications. Melange also brings OCaml to JavaScript frontends.

Start learning OCaml

  1. Try the language. Use Try OCaml to experiment in your browser, then follow the official getting-started documentation to install the tools and write a first program.
  2. Build something small. Write a command-line program that reads a file and transforms its contents. The official guides introduce opam for dependencies and Dune for building projects.
  3. Go deeper. Real World OCaml covers modules, error handling, command-line parsing and testing. It uses Jane Street libraries, so check which dependencies an example expects.

Explore OCaml in practice

The resources collection includes MirageOS and Ocsigen. The organization directory and OCaml jobs offer another view of the work people do with the language. Check which component or role uses OCaml when assessing a product or employer.

Ahrefs: OCaml in the browser

Ahrefs provides a documented example of OCaml reaching beyond backend services. In its May 2023 engineering account, the team describes migrating its frontend to Melange and improving integration with the Dune build system. The article explains the migration work and the tooling trade-offs involved.

A November 2023 follow-up discusses server-side rendering and plans for React Server Components. Read it as an account of the team's work at that time, with a distinction between shipped experiments and planned capabilities.

Explore Ahrefs on Beyond Tabs for its engineering links and available roles.

Suggest a project or resource

Share a useful OCaml project or resource.

Suggest a project →Suggest a resource →