Bootstrap Release

Shaft Programming Language

Rust-grade safety meets Zig-grade simplicity. Explicit memory semantics, zero lifecycles, and direct LLVM lowering for high-performance systems programming.

Shaft Logo

Rust-Grade Safety

Lexical borrow checker enforces exclusive writers (&mut) and shared readers (&), catching aliasing and use-after-move errors at compile time.

Zig-Grade Simplicity

No lifecycle hooks or complex lifetime annotations. Predictable, explicit memory semantics with automatic stack cleanup.

Output Tunnels

Functions communicate via output tunnels rather than direct returns, providing robust error handling and multi-value pass-through.

example.shaft
// C-ABI Interop & Modern Native Concurrency
cdec InitWindow(i32 width, i32 height, *i8 title);
cdec CloseWindow();

def add(i32 lhs, i32 rhs) -> i32 result {
    tunnel lhs + rhs -> i32 result;
}

def main() {
    InitWindow(640, 360, "Shaft Window");
    
    // Immutable by default
    mut u64 total = 0;
    String label = String::from_str("Systems Programming");

    CloseWindow();
}