OnyxOS

Rules and ledger

Every number on this page comes from the server that runs the rounds, so the rules you read are the rules that run. ← Back to the round

How a round works

  1. A round lasts 20 minutes and has one task. The editor opens with a correct, plain program for it: its score is par.
  2. Run builds your C in your browser (the same compiler, assembler and CPU as the judge) and checks it on an example test.
  3. Submit sends it to the judge. It runs on 3 hidden tests; your score is the total number of RISC-V instructions it executes. A wrong answer on any test scores nothing. The board keeps your best.
  4. At the bell the best 40 players' programs (up to three each) run again on fresh tests that nobody has seen. That run decides the places, so a program must solve the task, not remember the round's tests. A tie goes to whoever submitted first.
  5. The top ten are paid, then the next round opens with the next task.

The prize

A round's prize is 40% of the pot when the round ends, all of it once 6 or more people have a right answer on the board (fewer, a smaller share; one network address counts once). It is split between the places like this:

It is sent in SOL to the address you give under Your entry: no sign-up, no wallet connection. A place worth less than ◎0.0007 is kept for you and sent with your next prize. One address is paid once per round. Paid out so far: ◎0 in 0 payouts.

Where the money comes from

The coin's creator fees fill the pool. 2% of every fee buys the coin back and burns it. The rest fills the pool: 60% can sit in the pot at once, and the reserve refills it at 25% an hour, so however many rounds run, no more than the pot can leave.

Pot now◎0
Reserve◎0
Fees in◎0
Paid out◎0
Burned◎0
Trades counted0

OnyxOS: the computer on pump.fun

Every app window on the home page is its own computer. Its clock runs at 1 MHz for every SOL of the coin's market cap, read live from the coin's own trades (25 MHz until the coin is live). A program gets that many instructions a second and no more, so every app runs faster when the coin is higher.

The chain is a device. Four system calls next to the original six:

  • chain_next(&e) hands the program the next pump.fun event since it last asked: a new coin, a buy, a sell or a coin leaving the curve, with ticker, name, address, SOL amount and market cap. It returns 0 when nothing new has come. Trades under 0.05 SOL are left out.
  • coin_mcap(): the coin's market cap in SOL. cpu_mhz(): the clock. chain_stat(n): new coins, trades and SOL traded in the last minute, and the SOL price.

The feed is the site's own live stream of pump.fun, read on this server: nothing is faked and nothing is replayed.

The App Store pays builders

Anybody writes an app in Studio and publishes it; the server builds it and test-runs it first. Every 24 hours is a payday: the apps the most people ran are paid like a round, 40% of the pot split between the top ten (all of it once 6 or more apps have users), sent to each author's address. A user counts once per network per payday, after 20 seconds with the app open, never the author, and an app needs 3 users to be paid.

The machine

OnyxOS is a 32-bit RISC-V computer (RV32IMF) with 16 MB of memory, a 320×240 screen and a four-voice sound chip, plus a C compiler and an assembler, all written from scratch and running in the page. A program can only compute: it has no network, no files and no way out of the machine. Open the computer with its eight demo programs →

Ledger

Every fee, payout and burn, newest first. Payouts and burns link to their transactions.