Documentation

Dudu is Python-shaped, statically typed, and native. These are the canonical language, compiler, and project references.

Start here

Language shape

Dudu source uses .dd. Types are static, declarations and control flow resemble Python, and the compiler rejects unsupported dynamic Python behavior rather than hiding it behind a runtime.

enum Result[T, E]:
    Ok(T)
    Err(E)

def divide(a: i32, b: i32) -> Result[i32, str]:
    if b == 0:
        return Result.Err("division by zero")
    return Result.Ok(a / b)

Architecture references