R/MRatCalcpowered by RiX

RiX walkthrough 10 a

RiX scripts

Imports, interface bindings, and capability frames.

Orientation

A RiX script can bind inputs, export outputs, and import another script through an explicit interface. Capability modifiers narrow what an imported script can do.

The browser cell can illustrate RiX evaluation, while imports require a host-visible script file.

A worked example

Runnable RiX

The final line is the displayed value; the earlier lines set up the experiment. Keep the setup visible so you can tell whether a name, a cell, or a collection is being reused when the expression changes.

Read the result

Use the command-line runner for real file imports; RatCalc can still prototype the script body.

Sketch an interface with explicit inputs and outputs before adding file or capability dependencies.

Keep going

Continue with JavaScript modules only when a host needs JavaScript behavior.