Install

Install Reef.

Reef v0.9.2 builds from source. The compiler is written in OCaml and the runtime in C99; both build with a standard toolchain. Prebuilt tarballs are on the Downloads page.

Quick start

The Reef source repository is being prepared for public release. Once it’s open, you’ll build the compiler and runtime from source with a standard toolchain — the prerequisites below are what you’ll need. Tarballs, when published, are on the Downloads page.

Prerequisites

OCaml 5.1+ & Dune 3.0

The compiler implementation and its build system. opam is the easiest way in.

Menhir

The parser generator (opam install dune menhir).

GCC 10+ or Clang 12+

Compiles the runtime and the C that Reef generates.

CMake 3.15 & Make

The runtime build system and top-level automation.

Optional support

Reef bundles no third-party libraries. TLS/HTTPS builds against the OS-provided OpenSSL (3.0 or newer) and TLS-using programs dynamically link the host's libssl/libcrypto at runtime — install libssl-dev (openssl-devel on Fedora/RHEL) for it. Without OpenSSL, Reef still builds, with TLS disabled. The X11 graphics backend needs libx11-dev.

Platforms

Linux · macOS · FreeBSD · OpenBSD · NetBSD · illumos

Read the docs