Cyrus Logo Light

    Cyrus Programming Language

    Cyrus is a high-performance systems programming language with explicit syntax and semantics, minimal abstraction and runtime, and manual memory management.

    main.cyrus
    import (
        std::mem::arena{ArenaAllocator},
        std::mem::libc{LibcAllocator},
        std::mem{Allocator},
        std::libc{printf},
    );
    
    pub fn main() {
        const allocator: Allocator = dynamic LibcAllocator.new();
        
        var arena = ArenaAllocator.new(allocator, 16);
        defer arena.destroy();
    
        var x: int32* = arena.alloc(4);
        @assert(x, "allocation failed");
    
        *x = 10;
        
        printf("x: %d\n", *x);
    }

    Ancient Wisdom, Modern Power

    Discover the foundational capabilities that make Cyrus fast, predictable, and expressive.

    Explicitness

    Explicit, predictable, human-readable code built around a procedural paradigm.

    • Manual memory management
    • No hidden control flow
    • No hidden compiler rule resolution

    Effect System

    Track and manage side effects explicitly across your program, ensuring complete predictability and compile-time guarantees without hidden traps.

    • Compile-time effect tracking
    • Zero unexpected side-effect mutations
    • Transparent caller-callee contracts

    Comptime

    Execute logic at compile time with zero runtime overhead, enabling powerful metaprogramming, type-safe code generation, and advanced configuration.

    • Compile-time code execution
    • Zero runtime reflection cost
    • Type-safe template generation

    Build Time

    Lightning-fast ahead-of-time compilation powered by TinyC and CodegenC for debug builds.

    • Deterministic build performance
    • Fast debug builds
    • Ahead-of-time compilation

    Performance

    Designed for high-performance programs where you need control over every instruction, with the absolute minimum abstraction cost possible.

    • Manual memory management
    • Zero garbage collector pauses
    • Direct hardware-level efficiency

    C Interoperability

    Seamlessly call C functions and libraries directly from Cyrus, and vice versa, so you can take advantage of existing ecosystems or slowly move away from legacy C codebases easily.

    • Native C ABI compatibility
    • Bidirectional function calling
    • Smooth legacy project migration

    Get Started

    Start building with Cyrus in minutes. It's easy to install and comes with comprehensive documentation.

    1

    Download

    Get the latest version of Cyrus for your platform.

    2

    Install

    Follow the simple installation instructions for your system.

    3

    Code

    Start writing your first Cyrus program.

    Available on Windows, macOS, and Linux

    Join the Community

    Cyrus is open-source and community-driven. Get involved and help shape the future of the language.

    GitHub

    Explore the source code, report issues, and contribute to the project.

    Visit Repository

    Discord

    Join our Discord server to chat with other developers and get help.

    Join Discord

    Telegram

    Join our Telegram channel for announcements and discussions.

    Join Telegram

    Our Sponsors

    We deeply appreciate the valuable support of our sponsors. Their partnership empowers us to deliver a better experience for our users and continue our journey of growth and innovation. Having you by our side inspires us to build a brighter future.