Why Rey?
Built from scratch to deliver the deterministic performance of C and Rust, combined with the syntactic elegance and developer velocity of modern languages.
Blistering Performance
Compiles directly to native machine code with zero garbage collector pauses. Minimal runtime overhead and predictable microsecond-level latency.
Memory & Type Safety
Strong static typing with inference, explicit nullable types (T?), algebraic enums with exhaustive pattern matching, and runtime-checked arithmetic.
Zero-Bloat Footprint
Rey programs launch in milliseconds with a tiny 1.82 MiB compiler binary and 1.49 MiB compact standard library—over 15x leaner than Node.js and 4x leaner than Python.
Self-Hosting Compiler
The modern Rey compiler is written directly in Rey itself. Code transforms through typed AST lowering, high-level IR, and native LLVM code generation.
Build it in Rey
Whether you need lightweight command-line executables, ultra-fast WebAssembly modules, or deterministic backend microservices.
CLI Tools & Utilities
Instant startup, standalone single-binary distribution, and rich standard library I/O primitives.
var args = sys.args();
println("Processing: " + args[1]);WebAssembly & Browser Apps
Zero-runtime sandbox execution in WebAssembly with instantaneous compilation in the browser.
var wasmResult = runReyWasm(code);
console.log(wasmResult.stdout);High-Throughput Services
Zero-GC pauses, low memory footprint, deterministic CPU cycles, and predictable concurrency.
for req in incomingQueue {
handleRequest(req);
}Data & Algorithmic Computing
Exact IEEE-754 precision, verified 0 relative error against C/Rust, and fast vector math.
var v = Vector3.new(1.0, 2.0, 3.0);
var norm = v.normalize();Speed Metrics & Specs
Measured on Apple Silicon M1 (macOS 15+) under strict deterministic conditions.
A modern Standard Library engineered for zero bloat.
Rey ships with essential high-performance data structures and system operations out of the box, without pulling in heavy runtime bloat.
// Functional collections & file operations
var numbers = Vec.new();
for i in 1..=5 {
numbers.push(i * 10);
}
// Higher-order pipeline
var doubled = numbers.map((n: int) => n * 2);
var total = doubled.reduce((acc: int, v: int) => acc + v, 0);
println("Total sum: {total}");
// Option & Result handling
var scores = HashMap.new();
scores.set("alice", 98);
scores.set("bob", 84);
if scores.has("alice") {
println("Alice's Score: " + scores.get("alice").toString());
}Meet Capybara: Your Rey Command Center
The official CLI front door. Project scaffolding, dependency management, fast builds, test running, and environment doctor all in one tool.
Scaffold a brand new Rey project with capy.toml and source tree.
Build and run your application with zero-config compilation.
Produce optimized, native standalone binaries via LLVM.
Verify Clang toolchain, environment paths, and Rey compiler readiness.
The Road to Rey v1.0
A transparent, phased development plan tracking our progression from reference interpreter to a battle-tested, self-hosting native language.
Phase 0: Foundations
- •Reference interpreter & recursive descent parser
- •Hindley-Milner inspired static typechecker with inference
- •Algebraic enums, structs, methods, and pattern matching
- •Compact standard library (Vec, HashMap, Option, Result, Math, FS)
Phase 1: Native Self-Hosted Compiler
- •Self-hosted compiler in rey-compiler/ compiling Rey source code
- •LLVM 18+ code generator backend emitting native binaries
- •Capybara CLI (capy) front door with project initialization and build runner
- •WebAssembly browser compilation target for playground and web apps
Phase 2: Standard Library Expansion
- •Non-blocking async/await and event loop runtime
- •High-performance HTTP/1.1 and HTTP/2 client & server modules
- •JSON serializer/deserializer with compile-time schema derivation
- •SIMD vector math intrinsics and cryptographic primitives
Phase 3: Tooling & Package Registry
- •Capybara central package repository and dependency solver
- •Language Server Protocol (LSP) engine with hover, completions, and refactoring
- •Interactive debugger (DWARF / LLDB integration)
- •Automated cross-compilation matrix for 12+ OS/architecture targets
Phase 4: Production v1.0 LTS
- •Guaranteed ABI stability and backwards syntax compatibility
- •Formal language specification and conformance test suite
- •Enterprise production deployment guidelines and long-term support
Shape the Future of Rey
Rey is free and open-source under the MIT license. We invite contributors of all skill levels to help build the compiler, standard library, and package manager.
Rey Compiler Core
Help write the self-hosted Rey compiler frontend, parser, type checker, LLVM IR lowerer, and WebAssembly code generator.
Capybara CLI & Build System
Build out project scaffolding, automated dependency resolution, lockfile generation, testing harnesses, and doctor diagnostics.
Standard Library (std)
Implement foundational data structures, networking, math routines, file manipulation, and serialization algorithms in pure Rey.