Skip to content

TantuA small language with big ideas

Python-readable syntax, static types with no null, and Go-style concurrency, compiled to bytecode and run on a hand-built stack VM.

Tantu in thirty seconds

tantu
enum Shape:
    Circle(Float)
    Rect(Float, Float)

fn area(s: Shape) -> Float:
    match s:
        Circle(r)  => 3.14159 * r * r
        Rect(w, h) => w * h

fn main() -> Unit:
    print(area(Circle(2.0)))
    print(area(Rect(3.0, 4.0)))
Try it

Hover any code block and hit Try it to run it in the playground, the real interpreter, running in your browser. No install required.