Solux#
Solux is a RISC-V computer written as a Solana program. You give it an ordinary program, compiled for RISC-V. Solana runs it, a few thousand instructions per transaction, and anyone can check the result.
It is complete enough to boot Linux 6.1 and answer shell commands, and simple enough to run a 300-line Rust calculator in 12 transactions.
Status. The program runs in the real Solana runtime (LiteSVM, with the compiled program) and every recorded run ends byte-identical to a reference computer. It is not deployed on devnet or mainnet yet. Everything on these pages works today against
solux-localnet, the local validator in this repo.
How it works#
| Piece | On Solana |
|---|---|
| The processor | The Solux program: an RV32IMA core (32-bit RISC-V, multiply, atomics), with machine and user modes, a timer and a serial port. |
| The memory | One account, up to 10 MiB, owned by the program. Your program is copied into it before it starts. |
| The clock | Transactions. Each Step runs the next 25,000 instructions (about 1.3 M compute units). Anyone can send one. |
| The keyboard | Type transactions queue keys for the serial port. The program reads them like a terminal. |
| The screen | Every line the program prints is written to the transaction's logs, and the last 4 KB stay in the machine account. |
Nothing in the core depends on wall-clock time: its timer advances one tick per instruction. So the same transactions always produce the same machine, on any validator and on your laptop. That is what makes the answer checkable: verification replays a machine's history with the same core and compares the result byte for byte.
What people run on it#
- Calculations everyone must agree on. A loan schedule, an insurance payout, a fee split: the code a business already has, run once in public so every party can rerun it and get the same cents.
- Programs too big to rewrite. Anything that builds for RISC-V runs as it is: Rust, C, C++, Zig, Go. No Solana SDK inside, no rewrite.
- Linux itself. A whole kernel and BusyBox, booted in 2,381 transactions.
Where to go next#
- Quickstart: the browser playground, then your first machine in five commands.
- Write a program: the machine, its devices, and a Rust starter.
- TypeScript SDK: create, run, type into and verify machines from code.
- Program reference: accounts, instructions, layouts, errors.