Nodes and Ports
An app in Raio is a set of nodes that exchange values through ports.
Timers and Logical Time
Logical Time
Connections
A connection sends every value of an output port to an input port. By default the value arrives at the timestamp at which it was sent.
Drawing an App
A diagram is a picture of an app: its nodes, their ports, and the connections between them. Raio draws it from the app itself, so the picture always matches the code.
Reactions
A reaction is a piece of a node that runs once at each timestamp at which one of its triggers has a value. A trigger is an input port or an action of the node.
Actions
An action is an input that is fed from outside the app: a sensor driver, a socket, the keyboard. It takes no connection. Instead, any thread of the node's own process can send a value to it.
Synchronizing Inputs
Robots combine data from several sources: a camera frame with a lidar scan, a command with a state estimate. In Raio, values that were sent at the same timestamp arrive at the same timestamp, so a node can combine them without buffers or matching by hand.
Waiting on Several Things
A task often has to wait for more than one thing: a value or a time limit, or two values at once.
Shutdown
There are four ways for an app to end:
Rust and Python in One App
One app can mix nodes written in Rust and nodes written in Python. Each node is a process of its own either way, so a Rust node can do the heavy work while Python nodes hold the rest together.