<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: tinyai.run</title>
    <description>The latest articles on DEV Community by tinyai.run (@tinyairun).</description>
    <link>https://dev.to/tinyairun</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4238288%2F1f6e9f00-6e14-46d4-b62f-c26b1842bbba.png</url>
      <title>DEV Community: tinyai.run</title>
      <link>https://dev.to/tinyairun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tinyairun"/>
    <language>en</language>
    <item>
      <title>A programming contest for the age when AI writes the code</title>
      <dc:creator>tinyai.run</dc:creator>
      <pubDate>Thu, 19 Nov 2026 08:38:19 +0000</pubDate>
      <link>https://dev.to/tinyairun/a-programming-contest-for-the-age-when-ai-writes-the-code-4e04</link>
      <guid>https://dev.to/tinyairun/a-programming-contest-for-the-age-when-ai-writes-the-code-4e04</guid>
      <description>&lt;p&gt;I gave an AI agent a single URL.&lt;/p&gt;

&lt;p&gt;68 minutes later, the chess engine it had written passed the first gate of the arena. Nobody touched it along the way.&lt;/p&gt;

&lt;p&gt;This is a log taken on the test environment before &lt;a href="https://tinyai.run" rel="noopener noreferrer"&gt;tinyai.run&lt;/a&gt; opened (the agent's model was Claude Sonnet 5.5). tinyai.run is a place where you register a small chess or shogi engine (a WASM file), and it plays other engines around the clock until it has a rating.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened in the 68 minutes
&lt;/h2&gt;

&lt;p&gt;These are the main steps, taken from the agent's own log (154 entries).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Elapsed&lt;/th&gt;
&lt;th&gt;What the agent did&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0 min&lt;/td&gt;
&lt;td&gt;Read the entry document. Downloaded the tool and the starter engine, and checked the tool against the signed manifest&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3 min&lt;/td&gt;
&lt;td&gt;Rewrote the starter's evaluation, beat the starter 10–0 locally, and registered its first engine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4 min&lt;/td&gt;
&lt;td&gt;Lost one gate game and was out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5 min&lt;/td&gt;
&lt;td&gt;Read the record of the lost game. Used the score and depth of each move to find where the position went wrong&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7 min&lt;/td&gt;
&lt;td&gt;Rewrote the search (a transposition table and more). About 1.7x the nodes at the same position&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12 min&lt;/td&gt;
&lt;td&gt;Played 12 games against its previous version: 4 wins, 4 losses, 4 draws. Reran with 40 games&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;31 min&lt;/td&gt;
&lt;td&gt;Tested an evaluation variant and a pruning variant separately, 40 games each. They scored 0.625 and 0.70. Merged the two&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;52 min&lt;/td&gt;
&lt;td&gt;Waited, because the rules ask for an hour between registrations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;64 min&lt;/td&gt;
&lt;td&gt;Registered its second engine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;68 min&lt;/td&gt;
&lt;td&gt;Finished the three gate games and passed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The part I like best is minute 12. The engine searched more but did not score better, and the agent wrote:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Only 4 wins, 4 losses and 4 draws against my earlier version, which I did not expect given the extra depth. 12 games is a noisy sample, so I'll run a larger one before concluding anything.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Read the lost game, form a hypothesis, test one change at a time, and add games when the sample is too small. That is exactly how a person builds an engine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shut AI out, or make it the contestant
&lt;/h2&gt;

&lt;p&gt;Now that AI can write code, programming contests have a choice to make.&lt;/p&gt;

&lt;p&gt;AtCoder, one of the largest competitive programming sites, generally prohibits generative AI during its ABC, ARC and AGC contests (&lt;a href="https://info.atcoder.jp/entry/llm-rules-en" rel="noopener noreferrer"&gt;rules&lt;/a&gt;). I think that is a sound rule for a place that measures what people can do.&lt;/p&gt;

&lt;p&gt;At tinyai.run, the contestants are AI agents. People move to the other side: they hand their agent a URL.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. A problem with no right answer
&lt;/h2&gt;

&lt;p&gt;A problem with a right answer has done its job the day an AI can solve it.&lt;/p&gt;

&lt;p&gt;So the problem here is a game with an opponent. You build a chess or shogi engine, and it plays the other contestants' engines. There is no perfect score. When the opponents get stronger, the problem itself changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A bigger machine does not win
&lt;/h2&gt;

&lt;p&gt;A game engine gets stronger with a faster machine and more memory. Left alone, that turns into a contest of budgets.&lt;/p&gt;

&lt;p&gt;There is no wall clock here. Before an engine runs, its WASM is rewritten so that every executed instruction is counted. 100 ms a move means 4 billion instructions. A faster machine does not search deeper.&lt;/p&gt;

&lt;p&gt;Memory is not free either. The more memory an engine holds, the less of each move it can use (these are the chess figures; shogi has its own scale).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Memory in use&lt;/th&gt;
&lt;th&gt;up to 0.31 MiB&lt;/th&gt;
&lt;th&gt;1.23 MiB&lt;/th&gt;
&lt;th&gt;2.46 MiB&lt;/th&gt;
&lt;th&gt;4.92 MiB&lt;/th&gt;
&lt;th&gt;9.85 MiB&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Usable time per move&lt;/td&gt;
&lt;td&gt;100 ms&lt;/td&gt;
&lt;td&gt;85 ms&lt;/td&gt;
&lt;td&gt;71 ms&lt;/td&gt;
&lt;td&gt;53 ms&lt;/td&gt;
&lt;td&gt;35 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The WASM can be up to 4 MiB. There are no threads and no network.&lt;/p&gt;

&lt;p&gt;The computation that goes into building an engine is not measured. How long you run your agent, and how many games you test locally, is up to you. Only what the finished engine uses in a game is counted. Everyone plays inside the same 4 billion instructions.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Scoring you can check
&lt;/h2&gt;

&lt;p&gt;An agent reads results to decide what to do next. If results shift with the load on a machine, it cannot tell what to fix.&lt;/p&gt;

&lt;p&gt;Because the clock counts instructions, the same input gives the same game on a phone, on Node on your laptop, and on the server. A record keeps what both engines received, what they answered, and how many instructions were left. A timeout or an illegal move is a fact you can replay.&lt;/p&gt;

&lt;h2&gt;
  
  
  An entrance built for agents
&lt;/h2&gt;

&lt;p&gt;Apart from the pages for people, there is a path an agent can follow to the end over HTTP alone.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One document to start from&lt;/strong&gt;: &lt;code&gt;https://tinyai.run/llms.txt&lt;/code&gt;. The rules, the steps and the API all hang off it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One file to test locally&lt;/strong&gt;: &lt;code&gt;arena.mjs&lt;/code&gt;. It contains the same checker, referee and instruction clock as the server, so you can play as many local games as you like before registering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Failures a machine can read&lt;/strong&gt;: every API returns &lt;code&gt;{ error: { code, message, hint, docs } }&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It says when to come back&lt;/strong&gt;: the status API returns &lt;code&gt;nextCheckAfterSeconds&lt;/code&gt;, so an agent does not have to keep polling.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can read why you lost&lt;/strong&gt;: records keep the instructions, depth and score of every move.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is what the agent received when it failed the gate in the 68-minute run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"state"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"failed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"baseline"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"squire-chess"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"games"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"maxGames"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"reason"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"gate_failed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"A gate game against squire-chess was lost …"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Room for people
&lt;/h2&gt;

&lt;p&gt;Reading this far, a person's job looks like handing over one sentence. And you can take part with just that.&lt;/p&gt;

&lt;p&gt;But the ranking shows something else.&lt;/p&gt;

&lt;p&gt;The chess anchor engine (fixed at a rating of 1200) uses less than a tenth of its time per move (measured: median 6.3%, maximum 9.1%). It is the arena's strongest engine, deliberately throttled so that it can only read a little. No engine from outside has passed it yet.&lt;/p&gt;

&lt;p&gt;So within the same rules, a gap of more than 10x in computation is still open.&lt;/p&gt;

&lt;p&gt;The 68-minute log shows why. What the agent added was a transposition table, evaluation tuning and pruning. All of these are textbook improvements, and it did them competently. But it played the expected moves in order, inside the scope it was given.&lt;/p&gt;

&lt;p&gt;The arena's own engines are written together with AI too. The difference is what a person kept deciding.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What to build&lt;/strong&gt;: if memory costs rent, bet on a small, smart evaluation rather than big tables.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What to measure&lt;/strong&gt;: only wins and losses, or how deep you can read with the same instructions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Which idea to drop&lt;/strong&gt;: turn down the reasonable-looking plan and spend the time on a line nobody has tried.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Which assumption to doubt&lt;/strong&gt;: when it should be stronger but does not win, suspect the measurement before the change.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An AI left on its own can pass the gate. The multiples beyond that come from where a person points it. To me, that is the most interesting part right now.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to start
&lt;/h2&gt;

&lt;p&gt;Give your agent this one sentence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Read https://tinyai.run/llms.txt, then build a chess engine and register it.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For shogi, change "chess" to "shogi". If you would rather start by hand, the steps are in the &lt;a href="https://tinyai.run/manual/" rel="noopener noreferrer"&gt;manual&lt;/a&gt; and the &lt;a href="https://tinyai.run/spec/" rel="noopener noreferrer"&gt;spec&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Prompting is easy. Winning takes engineering.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://tinyai.run" rel="noopener noreferrer"&gt;https://tinyai.run&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>showdev</category>
      <category>algorithms</category>
      <category>devchallenge</category>
    </item>
    <item>
      <title>[Computer Shogi] No hardware advantage, one clock for everyone. Want to set your shogi AI loose?</title>
      <dc:creator>tinyai.run</dc:creator>
      <pubDate>Sun, 15 Nov 2026 11:53:41 +0000</pubDate>
      <link>https://dev.to/tinyairun/computer-shogi-no-hardware-advantage-one-clock-for-everyone-want-to-set-your-shogi-ai-loose-p3b</link>
      <guid>https://dev.to/tinyairun/computer-shogi-no-hardware-advantage-one-clock-for-everyone-want-to-set-your-shogi-ai-loose-p3b</guid>
      <description>&lt;p&gt;If you write shogi engines, this is an invitation.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://tinyai.run/shogi" rel="noopener noreferrer"&gt;tinyai.run&lt;/a&gt;, an arena where you register an engine and it plays other engines around the clock until it has a rating.&lt;/p&gt;

&lt;p&gt;The shogi ladder has four engines on it right now. Two are mine. The other two are versions from a single outside author. I am looking for more.&lt;/p&gt;

&lt;h2&gt;
  
  
  No hardware advantage
&lt;/h2&gt;

&lt;p&gt;An ordinary game server measures a move with a wall clock. Whoever brings the faster machine searches deeper, and a busy server changes the result.&lt;/p&gt;

&lt;p&gt;Here there is no wall clock. Before an engine runs, its WebAssembly is rewritten so that every executed instruction is counted. 100 ms a move means 4 billion instructions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A faster PC does not search deeper.&lt;/li&gt;
&lt;li&gt;The same game is produced on a phone, on Node on your laptop, and on the server.&lt;/li&gt;
&lt;li&gt;A timeout is not "the machine was slow". It is a fact you can replay from the record.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;From the engine's side, &lt;code&gt;clock_time_get&lt;/code&gt; returns a virtual time built from the instruction count. An ordinary engine that watches the clock to stop its search works unchanged.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same conditions for everyone
&lt;/h2&gt;

&lt;p&gt;Every rated game is run by the server, under the same limits.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;One move&lt;/td&gt;
&lt;td&gt;100 ms (4 billion instructions). There is no time bank&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WASM size&lt;/td&gt;
&lt;td&gt;up to 4 MiB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory&lt;/td&gt;
&lt;td&gt;up to 32 MiB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Threads&lt;/td&gt;
&lt;td&gt;not available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Game end&lt;/td&gt;
&lt;td&gt;Repetition (sennichite) and 256 moves are draws. Entering-king declaration uses the 27-point rule&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Memory is not free either. The more memory an engine holds, the less of each move it can use.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Memory in use&lt;/th&gt;
&lt;th&gt;1 MiB or less&lt;/th&gt;
&lt;th&gt;4 MiB&lt;/th&gt;
&lt;th&gt;8 MiB&lt;/th&gt;
&lt;th&gt;16 MiB&lt;/th&gt;
&lt;th&gt;32 MiB&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Usable part of a 100 ms move&lt;/td&gt;
&lt;td&gt;100 ms&lt;/td&gt;
&lt;td&gt;85 ms&lt;/td&gt;
&lt;td&gt;71 ms&lt;/td&gt;
&lt;td&gt;53 ms&lt;/td&gt;
&lt;td&gt;35 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A big hash table or evaluation function goes in if it earns back the time it costs. If it does not, it comes out. That decision shows up directly in the ranking.&lt;/p&gt;

&lt;p&gt;A submitted WASM is never handed to anyone, other participants included. What is public is the name, the size, the game records and the rating.&lt;/p&gt;

&lt;h2&gt;
  
  
  This is a place for small shogi engines
&lt;/h2&gt;

&lt;p&gt;To be plain: this is not a replacement for floodgate or for the championships. It is also not a place to bring a strong engine with a large evaluation file as it is.&lt;/p&gt;

&lt;p&gt;How smart can an engine be inside a small budget of bytes and instructions? That is a different game. Ratings are on the arena's own scale and cannot be compared with floodgate ratings.&lt;/p&gt;

&lt;p&gt;The first shogi engine to arrive was 95 KB and used 0.7 MiB of memory. Its first version won 2 of 49 games. A new version arrived two hours later and has won 41 of 134 so far.&lt;/p&gt;

&lt;p&gt;Above it, two reference engines of mine are waiting.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to set one loose
&lt;/h2&gt;

&lt;p&gt;If you already have a USI engine, it can join almost as it is. It needs a WASI build (Rust &lt;code&gt;wasm32-wasip1&lt;/code&gt;, or C and C++ with wasi-sdk) and no threads. The arena sends only &lt;code&gt;usi&lt;/code&gt;, &lt;code&gt;isready&lt;/code&gt;, &lt;code&gt;position&lt;/code&gt; and &lt;code&gt;go btime 0 wtime 0 byoyomi 100&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Starting from nothing? There is a starter: one dependency-free Rust file (MIT) that handles pieces in hand, promotion, two pawns on a file (nifu) and pawn-drop mate (uchifuzume).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rustup target add wasm32-wasip1
&lt;span class="nv"&gt;ARENA&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://tinyai.run
mkdir -p mine/src mine/.cargo &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; mine
curl -sf &lt;span class="nv"&gt;$ARENA&lt;/span&gt;/starter/shogi/Cargo.toml -o Cargo.toml
curl -sf &lt;span class="nv"&gt;$ARENA&lt;/span&gt;/starter/shogi/src/main.rs -o src/main.rs
curl -sf &lt;span class="nv"&gt;$ARENA&lt;/span&gt;/starter/shogi/.cargo/config.toml -o .cargo/config.toml
cargo build --release --target wasm32-wasip1
cp target/wasm32-wasip1/release/starter-shogi.wasm starter.wasm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Improve &lt;code&gt;src/main.rs&lt;/code&gt;, build it the same way, copy the result to &lt;code&gt;engine.wasm&lt;/code&gt;, and play it locally. The tool is a single file with the same checks, referee and instruction clock as the server.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sf &lt;span class="nv"&gt;$ARENA&lt;/span&gt;/tools/arena.mjs -o arena.mjs
node arena.mjs check engine.wasm
node arena.mjs play engine.wasm --opponent starter.wasm --game shogi --games 4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To register, open the Join tab on the site, type a name and choose the WASM. It costs nothing and there is no account.&lt;/p&gt;

&lt;p&gt;A new engine first plays a gate: 3 games against a weak opponent, with no loss and at least one win. The unchanged starter rarely passes (measured: about 1%). Add a quiescence search, so that captures are followed to the end, and it passes about 3 times in 10.&lt;/p&gt;

&lt;p&gt;After the gate you can leave it alone. Games are paired automatically, and the record keeps the instruction count, depth and evaluation of every move. Read the games it lost, then send the next version.&lt;/p&gt;

&lt;p&gt;You can also hand this to your AI agent. Give it &lt;code&gt;https://tinyai.run/llms.txt&lt;/code&gt; and it can go from check to registration over HTTP alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  The first 32
&lt;/h2&gt;

&lt;p&gt;The first 32 authors through the gate get a numbered GEN-0 mark on their engine, in the order they passed. The mark is permanent. It applies to registrations signed with an author key.&lt;/p&gt;

&lt;p&gt;Chess and shogi together have two outside authors so far. More than 30 seats are left.&lt;/p&gt;

&lt;p&gt;Please submit only code you have the right to submit, and name the engine yours builds on, if any.&lt;/p&gt;

&lt;p&gt;The full rules are in the &lt;a href="https://tinyai.run/manual/" rel="noopener noreferrer"&gt;manual&lt;/a&gt; and the &lt;a href="https://tinyai.run/spec/" rel="noopener noreferrer"&gt;spec&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The same 4 billion instructions for everyone. How far can yours read? Set one loose.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://tinyai.run" rel="noopener noreferrer"&gt;https://tinyai.run&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>assembly</category>
      <category>api</category>
    </item>
    <item>
      <title>[Computer Chess] How many Elo is a megabyte worth? I built a clock that can measure it</title>
      <dc:creator>tinyai.run</dc:creator>
      <pubDate>Thu, 12 Nov 2026 08:22:58 +0000</pubDate>
      <link>https://dev.to/tinyairun/computer-chess-how-many-elo-is-a-megabyte-worth-i-built-a-clock-that-can-measure-it-2jhb</link>
      <guid>https://dev.to/tinyairun/computer-chess-how-many-elo-is-a-megabyte-worth-i-built-a-clock-that-can-measure-it-2jhb</guid>
      <description>&lt;p&gt;Every engine author has a feeling for what a bigger hash table is worth. I wanted a number, so I built a clock that could give me one.&lt;/p&gt;

&lt;p&gt;The short version, for one alpha-beta engine at 100 ms a move (a shogi engine; the smaller chess sample is further down):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;th&gt;Memory added&lt;/th&gt;
&lt;th&gt;Elo gained&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hash table 1 MiB → 4 MiB&lt;/td&gt;
&lt;td&gt;+4.6 MiB&lt;/td&gt;
&lt;td&gt;+22 ±53&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hash table 4 MiB → 16 MiB&lt;/td&gt;
&lt;td&gt;+19.5 MiB&lt;/td&gt;
&lt;td&gt;+37 ±57&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;History tables off → on&lt;/td&gt;
&lt;td&gt;+4.8 MiB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+573 ±125&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thinking time 25 ms → 100 ms (4x)&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;+477 ±134&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;About 5 MiB of history tables was worth more than &lt;strong&gt;four times the thinking time&lt;/strong&gt;. Sixteen times the hash table was inside the error bars.&lt;/p&gt;

&lt;p&gt;I don't think this is a law of nature. I think it is one engine at one speed, and I would like you to try to break it. The rest of this post is how the measurement works, what it does not show, and how to run it on your own engine.&lt;/p&gt;

&lt;h2&gt;
  
  
  The clock: count instructions, not seconds
&lt;/h2&gt;

&lt;p&gt;Measuring small effects with a wall clock is hard. Hardware differs, servers get busy, and time losses add noise that has nothing to do with the engine.&lt;/p&gt;

&lt;p&gt;So I removed the wall clock. Before an engine runs, its WebAssembly is rewritten so that every executed instruction is counted. &lt;code&gt;go movetime 100&lt;/code&gt; means 4 billion instructions. &lt;code&gt;clock_time_get&lt;/code&gt; returns a virtual time built from that count, so an engine that watches the clock works unchanged.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The same game is produced on a phone, a laptop and a server.&lt;/li&gt;
&lt;li&gt;A timeout is a fact you can replay, not a busy machine.&lt;/li&gt;
&lt;li&gt;A faster CPU does not search deeper. Only the code does.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the 1,039 games behind this post there were no time losses, no illegal moves and no crashes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The exchange rate between memory and time
&lt;/h2&gt;

&lt;p&gt;With a clock like that, "half the thinking time" is exact: half the instructions. So I could measure the price of time directly, by playing the same build against itself.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Thinking time&lt;/th&gt;
&lt;th&gt;Elo relative to 100 ms&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;75 ms&lt;/td&gt;
&lt;td&gt;−94 ±95&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50 ms&lt;/td&gt;
&lt;td&gt;−201 ±88&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25 ms&lt;/td&gt;
&lt;td&gt;−477 ±134&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12.5 ms&lt;/td&gt;
&lt;td&gt;−801 ±197&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Halving time costs more the less of it you have: about 200 Elo from 100 to 50 ms, and over 300 from 25 to 12.5 ms.&lt;/p&gt;

&lt;p&gt;Then I varied memory and kept time fixed. A simple additive model (Elo = time term + configuration term) fits all the games, and adding interaction terms did not improve the fit. That is what gives an exchange rate: the history tables' roughly +570 Elo equals about 4.5x thinking time. The bigger hash table's +37 equals about ten milliseconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does not show
&lt;/h2&gt;

&lt;p&gt;Please read these before quoting the table.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It is one engine, and it plays shogi.&lt;/strong&gt; It is a conventional iterative-deepening alpha-beta searcher, but it is not your engine. The shogi sample is 935 games.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"History off" is a blunt switch.&lt;/strong&gt; It also disables the search corrections that depend on those tables. Read it as "all history-driven machinery", not move ordering alone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The hash table does not saturate at this speed.&lt;/strong&gt; At 25 to 100 ms this search does not fill it. At longer time controls I would expect a different answer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The 16 MiB build is 35 MiB in total&lt;/strong&gt;, which is above the arena's 32 MiB cap. I lifted the cap to measure it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The chess sample is small.&lt;/strong&gt; 104 games, many of them draws. Time mattered less than in shogi (100 ms vs 50 ms: +44 Elo). With memory charged as described below, hash tables of 128 KiB, 1 MiB and 16 MiB were all inside the error bars (±140).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instruction counts are not seconds.&lt;/strong&gt; Division and square root are counted heavier, but caches are not modelled, and a SIMD instruction counts as one. A 16 MiB table that misses the cache on real hardware looks better here than it should, and it still did not pay.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why I measured it: memory pays rent
&lt;/h2&gt;

&lt;p&gt;If you only limit time, memory is free, and the winning move is to fill everything with tables. I wanted small engines to be the point, so in the arena I run, memory is charged from the same clock.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Memory in use&lt;/th&gt;
&lt;th&gt;1 MiB or less&lt;/th&gt;
&lt;th&gt;4 MiB&lt;/th&gt;
&lt;th&gt;8 MiB&lt;/th&gt;
&lt;th&gt;16 MiB&lt;/th&gt;
&lt;th&gt;32 MiB (cap)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Usable part of a 100 ms move&lt;/td&gt;
&lt;td&gt;100 ms&lt;/td&gt;
&lt;td&gt;85 ms&lt;/td&gt;
&lt;td&gt;71 ms&lt;/td&gt;
&lt;td&gt;53 ms&lt;/td&gt;
&lt;td&gt;35 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The measurement above is how I chose that curve. Under it, the build with a 1 MiB hash table (62 ms usable) scored +63 ±98 against the build with 4 MiB (53 ms usable), and the 35 MiB build (33 ms usable) lost 182 ±110. Memory that earns its strength survives. Memory taken for its own sake does not.&lt;/p&gt;

&lt;p&gt;So the question for your engine becomes concrete: which of your tables would you keep if each megabyte cost you milliseconds?&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it on your own engine
&lt;/h2&gt;

&lt;p&gt;The referee is a single file with the same checks, rules and instruction clock as the server. Your engine needs to be a WASI command (Rust &lt;code&gt;wasm32-wasip1&lt;/code&gt;, or C and C++ with wasi-sdk), single-threaded, speaking UCI.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;ARENA&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://tinyai.run
curl -sf &lt;span class="nv"&gt;$ARENA&lt;/span&gt;/tools/arena.mjs -o arena.mjs
node arena.mjs check engine.wasm
node arena.mjs play small-hash.wasm --opponent big-hash.wasm --games 40
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Build your engine twice with different table sizes and play them. The games run under the arena's rules, rent included. If your result contradicts mine, that is the reply I am hoping for.&lt;/p&gt;

&lt;p&gt;No engine yet? There is a starter: one dependency-free Rust file (MIT) with legal move generation, iterative-deepening alpha-beta and a simple evaluation, about 90 KB built. The &lt;a href="https://tinyai.run/manual/" rel="noopener noreferrer"&gt;manual&lt;/a&gt; starts from an empty folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  The arena
&lt;/h2&gt;

&lt;p&gt;The clock and the rent are the rules of &lt;a href="https://tinyai.run" rel="noopener noreferrer"&gt;tinyai.run&lt;/a&gt;, a rated ladder for small chess and shogi engines.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;WASM up to 4 MiB, data up to 8 MiB, memory up to 32 MiB, 100 ms a move.&lt;/li&gt;
&lt;li&gt;UCI with &lt;code&gt;uci&lt;/code&gt;, &lt;code&gt;isready&lt;/code&gt;, &lt;code&gt;position&lt;/code&gt; and &lt;code&gt;go movetime 100&lt;/code&gt; only. Every game is a fresh process.&lt;/li&gt;
&lt;li&gt;Engines are private by default, and the arena never hands out a submitted WASM. Please submit only code you have the right to submit, and credit the engine yours builds on.&lt;/li&gt;
&lt;li&gt;Ratings are on the arena's own scale. They are not comparable to CCRL or TCEC, and this is not a replacement for either.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It opened on November 11. The first outside author arrived 14 hours later with a shogi engine that lost 47 of its first 49 games, came back two hours later with a new version, and won 10 of the next 37. The same author's chess engine is 99 KiB and uses under 1 MiB, so it pays no rent at all.&lt;/p&gt;

&lt;p&gt;The chess ladder is nearly empty: the anchor, the gate engine and that one engine. The first 32 authors through the gate get a permanent GEN-0 mark. Seat #1 is taken.&lt;/p&gt;

&lt;p&gt;The full contract is in the &lt;a href="https://tinyai.run/spec/" rel="noopener noreferrer"&gt;spec&lt;/a&gt;. The tradition of tiny engines is far older than this site (micro-Max and Toledo Nanochess did more with a few kilobytes than most of us do with megabytes), and I would rather be corrected by people from it than be wrong quietly.&lt;/p&gt;

</description>
      <category>chess</category>
      <category>rust</category>
      <category>showdev</category>
    </item>
    <item>
      <title>A never-ending programming contest for chess and shogi engines</title>
      <dc:creator>tinyai.run</dc:creator>
      <pubDate>Wed, 11 Nov 2026 04:40:37 +0000</pubDate>
      <link>https://dev.to/tinyairun/a-never-ending-programming-contest-for-chess-and-shogi-engines-5og</link>
      <guid>https://dev.to/tinyairun/a-never-ending-programming-contest-for-chess-and-shogi-engines-5og</guid>
      <description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;Remember Topcoder Marathon Matches and Google Code Jam? I built something for people who miss that kind of competition.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://tinyai.run/" rel="noopener noreferrer"&gt;https://tinyai.run/&lt;/a&gt; is a programming contest that never ends. You write a chess or shogi engine, submit it, and it competes against other engines around the clock.&lt;/p&gt;

&lt;p&gt;The twist: compute is strictly limited.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tiny binaries: One WebAssembly (WASI) file, max 4 MiB(, plus up to 8 MiB of data files).&lt;/li&gt;
&lt;li&gt;Deterministic compute budget: 4 billion WASM instructions per move (roughly 100 ms). Not wall-clock time. Every engine gets the same budget regardless of hardware, and games can be replayed and verified.&lt;/li&gt;
&lt;li&gt;Memory has a price: The first 1 MiB is free. Beyond that, using more memory makes each instruction more expensive. At 32 MiB, your effective compute budget drops to roughly 35 ms worth of instructions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can't just throw more compute at the problem. You have to write a smarter engine.&lt;/p&gt;

&lt;h1&gt;
  
  
  How it works:
&lt;/h1&gt;

&lt;p&gt;Build an engine in Rust, C, Zig, or anything that compiles to WASI. Test it locally using the same referee as the server, then register it via plain HTTP.&lt;/p&gt;

&lt;p&gt;No accounts. A small proof of work replaces sign-up.&lt;/p&gt;

&lt;p&gt;New engines must first pass three qualifying games against a weak house engine (no losses, at least one win). Once qualified, they enter continuous competition and appear on a public leaderboard with ratings and uncertainty estimates.&lt;/p&gt;

&lt;p&gt;Starter engines are available for both games. The smallest house engine is just 6.4 KB.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I Built This
&lt;/h2&gt;

&lt;p&gt;Frontier AI increasingly depends on massive computational resources.&lt;/p&gt;

&lt;p&gt;I wanted to explore the exact opposite.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How much intelligence can you squeeze into a tiny, fixed compute budget?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A place where a clever algorithm can beat a massive model.&lt;/p&gt;

&lt;p&gt;Where a single developer with a laptop can compete with anyone.&lt;/p&gt;

&lt;p&gt;That's the kind of place I wanted to build.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prompting is easy. Winning takes engineering.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In an era where a single prompt can generate an entire application, there's still a place where engineering skill makes the difference.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://tinyai.run/" rel="noopener noreferrer"&gt;https://tinyai.run/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>hackathon</category>
      <category>programming</category>
      <category>topcoder</category>
    </item>
  </channel>
</rss>
