⚠️ Early & ExperimentalVersion v0.3.1Architecture & Roadmap

About Rey & The Road Ahead

Rey is an open-source, compiled systems programming language combining native LLVM execution, predictable zero-GC latency, modern syntactic ergonomics, and a self-hosting compiler.

⚠️

Early & Experimental Status Notice

Rey is in active, rapid development. While the v0.3 core grammar is strictly specified in syntax.md and the native compiler targets LLVM 18+, minor API surfaces and standard library modules may adjust prior to our v1.0 LTS freeze. We actively encourage developers to test workloads, report compiler issues, and contribute to both Rey and Capybara.

DESIGN TENETS

Core Philosophy

Zero Hidden Allocations

Every memory boundary and execution cost is explicit. No unexpected garbage collection pauses or runtime background workers.

Spec-First Rigor

The syntax and semantics are codified in syntax.md and validated against reference suites rather than accidental compiler quirks.

Single-Tool Ergonomics

Capybara unifies project initialization, package resolution, fast compilation, testing, and system diagnostics into a single clean CLI.

Self-Hosting Target

The compiler is written in Rey itself (rey-compiler/), ensuring the language dogfoods its own expressiveness and performance.

VERIFIED BENCHMARKS

Speed Metrics & Technical Specs

Benchmark numbers recorded using standardized workloads from benchmarks/BENCHMARK_REPORT.md on Apple Silicon (macOS 15+).

Specification / MetricRey v0.3.1Python 3.14Node.js 25Comparative Advantage
Peak Memory RSS (math_bench)3.30 MiB14.52 MiB50.86 MiB15.4x leaner than Node, 4.4x leaner than Python
Binary Executable Size1.82 MiB66.2 MiB (with stdlib)63.0 MiBSingle self-contained binary distribution
Standard Library Disk Size1.49 MiB61.39 MiBN/A (built-in V8)Zero unnecessary bloat or unused symbols
IEEE-754 Precision Drift0 relative error0 error~1e-15 driftIdentical bit-level precision with Rust f64
STRATEGIC ROADMAP

Roadmap to Production v1.0

Our milestone pipeline derived from the canonical ROADMAP.md and standard_library_roadmap.md.

Completed

Phase 0: Foundations & Reference Core

v0.1 — v0.3.1

Establish foundational grammar, reference typechecker, AST evaluator, and core syntax primitives.

✓Lexer, token stream, and recursive descent parser for full v0.3 grammar
✓Hindley-Milner type inference, struct/enum checking, and exhaustiveness analysis
✓Compact core standard library (Vec, HashMap, Option, Result, Math, FS, Process)
✓CLI test harnesses and cross-platform verification
In Progress (Active)

Phase 1: Native Self-Hosted Compiler & LLVM

v0.4 target

Transition from reference runner to self-hosted native compilation pipeline.

✓Self-hosted compiler in rey-compiler/ compiling Rey source code
✓LLVM 18+ code generator backend emitting native Mach-O, ELF, and PE/COFF binaries
✓Capybara CLI (capy) front door with project initialization and build runner
✓WebAssembly browser compilation target for playground and web apps
Planned

Phase 2: Standard Library Expansion

v0.5 target

Comprehensive standard library coverage per standard_library_roadmap.md specification.

✓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
Planned

Phase 3: Tooling & Package Registry

v0.8 target

Community package management, IDE intelligence, and enterprise developer tools.

✓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
Goal

Phase 4: Production v1.0 LTS

v1.0 LTS

Guaranteed ABI stability, frozen standard syntax, and long-term production support.

✓Guaranteed ABI stability and backwards syntax compatibility
✓Formal language specification and conformance test suite
✓Enterprise production deployment guidelines and long-term support
JOIN THE EFFORT

Contribute to Capybara, Rey & Std

Whether you are passionate about compiler internals, package managers, language design, or standard library algorithms, your contributions make a massive difference.