Download Rey

Get the Rey compiler for your platform. Pre-built binaries for macOS arm64. Other platforms can build from source.

v0.2.0 — LatestSelf-hostingMIT License
R

Rey v0.2.0

Released April 2025 · macOS arm64 · Self-hosting compiler

The first self-hosted release. The compiler is now written in Rey itself.

Install ScriptRecommended
$ curl -fsSL https://get.reylang.dev | sh
Downloading rey v0.2.0 for macOS arm64...
✓ Installed to /usr/local/bin/rey
$ rey --version
rey 0.2.0 (self-hosted, LLVM backend)

Platform Support

PlatformArchitectureStatusDownload
macOSApple Silicon (arm64)LatestDownload →
macOSIntel (x86_64)Soon
Linuxx86_64Planned
Linuxarm64Planned
Windowsx86_64Planned

Build from Source

The bootstrap compiler is written in Rust. You need the Rust toolchain and LLVM installed.

Requirements

  • Rust toolchain (1.70+) — rustup.rs
  • LLVM 14+ (macOS: brew install llvm)
  • Git

Steps

$ git clone https://github.com/rey-language/rey-lang
$ cd rey-lang/compiler/v1
$ cargo build --release
Compiling rey-v0 v0.2.0
Finished release [optimized] target(s)
$ ./target/release/rey-v0 --version
rey 0.2.0 (self-hosted, LLVM backend)

What's in v0.2.0

🔄
Self-hosting compiler
The compiler now compiles itself. Written in Rey, for Rey.
📦
Full import system
File imports, module imports, visibility control, circular dependency detection.
🏗️
Enums with data
Enum variants can carry associated data. Pattern matched with match.
🔒
Type annotations
Optional type annotations with full compile-time enforcement.
📚
Vec & HashMap
Built-in collection types with functional methods (map, filter, fold).
LLVM optimizations
Release builds run through full LLVM optimization passes.

Ready to start building?

Quick Start Guide →