Open source · Runs on Solana

Run ordinary programs on Solana. Even Linux. Type a command, Solana runs it, and anyone can check the answer.

Runs programs written in and boots

How it works. Three steps, nothing to learn.

  1. 1

    You bring a program

    Linux, or anything you already compile for a RISC-V chip. It runs as it is.

  2. 2

    Solana runs it

    Each transaction runs the next 25,000 instructions. You type, it answers.

    Type → Step → Step → …

  3. 3

    Anyone checks the result

    Same program, same keys, same answer on every validator, down to the last bit.

    identical to the reference

Watch it work. A real run, recorded in the Solana runtime. Every key typed and every answer is a transaction.

solux · linux-shell
1The programLinux
2Solana transactions0
    3What it printed0 lines
    Ready

    load: copies the program into memorytype: sends your keys#n: runs the next 25,000 instructions

    Built for numbers people need to trust. When customers can rerun the calculation, nobody has to take your word for it.

    Lenders

    Repayment schedules your borrowers can recompute.

    1,419.47 a month

    on $250,000 at 5.50% over 30 years, computed in 12 Solana transactions.

    Insurers and platforms

    Payouts, fees and rewards from a formula anyone can rerun.

    Publish the program once. Every result it produces can be checked by the person it affects.

    Disputes

    Do the heavy work off-chain. Settle on-chain.

    If someone challenges a result, replay only the contested step on Solana. Rollups such as Optimism and Arbitrum check their results this way.

    Under the hood. A computer has a processor, memory and a clock. Here, each one is a piece of Solana.

    Processor

    A Solana program that behaves like a RISC-V chip

    47 KB program

    Memory

    One Solana account that holds the program and its data

    10 MiB account

    Clock

    Transactions, each one running the next batch of instructions

    25,000 per transaction

    52

    compute units per instruction

    25,000

    instructions per transaction

    2,381

    transactions to boot Linux

    0

    bytes different from the reference emulator

    Try it yourself. Open the playground and type your own commands, or follow the quickstart: your first program on Solana, typed into and verified, in ten minutes.

    $ npm install @solux/sdk @solana/kit
    
    const machine = await solux.createMachine(elf)
    await solux.type(machine, "12.50\n7.25\n\n")
    const { lines } = await solux.crank(machine)
    // [..., "Total 19.75 (2 items)"]
    const check = await verifyMachine(rpc, machine.machine)
    // check.ok === true

    Every number on this page comes from runs recorded in the Solana runtime (LiteSVM) with the compiled program. The program is not deployed on a public cluster yet.