Rio
Rio is a small, statically typed scripting language for embedding, from desktop apps down to microcontrollers: one C99 library that runs in a single block of memory, with no allocation, no garbage collector and no recursion.
Point :: [2]Float
Ball :: struct
pos, vel: Point
end
b := Ball{pos = {1, 2}, vel = {3, 4}}
b.pos += b.vel * 0.5
log("at", b.pos.x, b.pos.y)
at 2.5 4.0
- The tutorial shows Rio by example.
- The spec says what Rio programs mean, mostly with examples, which the tests run.
- The guide covers the C library and the
riocommand: embedding, memory, images, C output and native code on ARM.
Source: github.com/contextfreeinfo/rio.