ilo 0.12.0

ilo - the token-minimal programming language AI agents write
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- Transcendental builtins: pow, sqrt, log, exp, sin, cos (radians).

-- 2D Euclidean distance: sqrt(x^2 + y^2)
dist x:n y:n>n;a=*x x;b=*y y;sqrt +a b

-- Compound interest: principal * (1 + rate)^years
ci p:n r:n y:n>n;g=+1 r;f=pow g y;*p f

-- Log/exp round-trip
rt x:n>n;e=exp x;log e

-- run: dist 3 4
-- out: 5
-- run: ci 1000 0.05 10
-- out: 1628.894626777442
-- run: rt 5
-- out: 5