a stranger's program is drawing this · anything you type may be kept · ctrl+c ends it
Ln 1, Col 1 ctrl+s save · f1 help · esc close

      
    
Ouro, quickly

A program starts at fn main(): i64. Return 0 when it succeeds.

import gfx;

fn main(): i64 {
    print("hello\n");
    return 0;
}

Everyday syntax

variables
let n: i64 = 42;
conditions
if ok { ... } else { ... }
loops
while n > 0 { ... }
functions
fn add(a: i64, b: i64): i64
pointers
&value · ptr.* · null
comments
// until the end of the line

Useful packages

gfx
pixels, shapes, text and input
gpu
WebGL triangles, textures and depth
math
sqrt, sin, cos, atan2, exp, log, pow
proc
child programs, pipes and windows
net
ports between programs

Read package source with cat /lib/gfx/gfx.ouro. The full standard library is under /sys/std.