Skip to main content

Introduction

Chuchu is a small, statically typed programming language built in Rust. Its compiler, Cheeku, turns .chuchu source files into native executables through LLVM.

The language combines readable statements with inferred local types, explicit function signatures, and checked numerical operations.

assign greeting_number to 42
show greeting_number
Output
42

A small vocabulary​

You want to…Write…
Declare a variableassign count to 0
Change its valuereassign count to count + 1
Print a valueshow count
Make a decisionif count > 0 { show count }
Repeat workwhile count < 5 { reassign count to count + 1 }
Define a functionfunction double(x: int) -> int { return x * 2 }

Choose a path​

Early development

These docs describe the current 0.1 codebase. Chuchu is evolving, and syntax and APIs may change. The validated native environment is macOS on Apple Silicon. See language status for supported features and limits.

Chuchu and Cheeku​

Chuchu is the language and the Rust library/package name (chuchu). Cheeku is the command-line compiler (cheeku). Compiling a program creates an executable; it does not run the program automatically.