← All Demos

Loom C REPL

Write C, compile to ISA, execute on a transformer: live in the browser

Loading Pyodide...
Loading...
Compiled ISA
Press Compile & Run to see instructions
Output
Ready. Write C code and press Compile & Run.
Instructions: -- Variables: -- Steps: -- Time: -- Result: --
Variables

How It Works

Your C code is compiled to Extended ISA instructions using Pyodide, Python running in the browser. The compiled program is loaded into the transformer's state tensor and executed via ONNX Runtime.

Supported: int variables (8-bit, -128..127), arrays, if/else, while, for, functions (no recursion), + - & | ^ comparisons, && || !, swap(a, b). No * / % pointers or structs.