Gruel

Exploring memory safety that's easier to use

Early Stage

Gruel is a research project, not ready for real use. We're still building the basics. Expect bugs, missing features, and breaking changes.

Familiar Syntax

If you know Rust, Go, or C, you'll feel at home. Gruel aims for a gentle learning curve without sacrificing clarity.

Native Compilation

Compiles to x86-64 and ARM64 machine code. No VM, no interpreter, no garbage collector.

What is Gruel?

The Question

Rust proved memory safety without garbage collection is possible. But its learning curve is steep. Can we find an easier path to the same destination?

We don't know yet. Gruel is an early-stage research project exploring that question. It's not ready for real projects, but you can follow along as we figure it out.

The Experiment

Gruel is also an experiment in human-AI collaboration. The language is designed by The Gruel Authors and implemented primarily by Claude, an AI assistant.

See It In Action

fn fib(n: i32) -> i32 {
    if n <= 1 {
        n
    } else {
        fib(n - 1) + fib(n - 2)
    }
}

fn main() -> i32 {
    // Print the first 10 Fibonacci numbers
    let mut i = 0;
    while i < 10 {
        @dbg(fib(i));
        i = i + 1;
    }
    0
}