carlos / todomvc-bakeoff Public

Clone
git clone https://amadan.net/carlos/todomvc-bakeoff

Plain git — no account needed to clone.

Download

Download this file

1<!doctype html>
2<html lang="en">
3<head>
4<meta charset="utf-8">
5<meta name="viewport" content="width=device-width, initial-scale=1">
6<title>One TodoMVC, nine languages, one platform</title>
7<style>
8:root {
9 color-scheme: light;
10 --plane: #f9f9f7; --surface: #fcfcfb; --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781;
11 --grid: #e1e0d9; --axis: #c3c2b7; --ring: rgba(11,11,11,0.10);
12 --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a;
13}
14@media (prefers-color-scheme: dark) {
15 :root {
16 color-scheme: dark;
17 --plane: #0d0d0d; --surface: #1a1a19; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
18 --grid: #2c2c2a; --axis: #383835; --ring: rgba(255,255,255,0.10);
19 --s1: #3987e5; --s2: #d95926; --s3: #199e70;
20 }
21}
22* { box-sizing: border-box; }
23body { margin: 0; background: var(--plane); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
24main { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
25h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 16px; }
26h2 { font-size: 1.35rem; margin: 56px 0 12px; }
27h3 { font-size: 1.05rem; margin: 0 0 4px; }
28p, li { color: var(--ink-2); }
29a { color: inherit; }
30code { font-size: .9em; }
31.card { background: var(--surface); border: 1px solid var(--ring); border-radius: 10px; padding: 18px 20px; margin: 16px 0; }
32.note { color: var(--muted); font-size: .9rem; margin: 2px 0 8px; }
33.chart { width: 100%; height: auto; display: block; }
34.chart .label { fill: var(--ink-2); font-size: 13px; text-anchor: end; }
35.chart .value { fill: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
36.chart .missing { fill: var(--muted); font-size: 13px; font-style: italic; }
37.chart .axis { stroke: var(--axis); stroke-width: 1; }
38.chart .s1 { fill: var(--s1); } .chart .s2 { fill: var(--s2); } .chart .s3 { fill: var(--s3); }
39.legend { display: flex; gap: 16px; font-size: .85rem; color: var(--ink-2); margin: 4px 0 0; padding: 0; list-style: none; }
40.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--k); }
41.scroll { overflow-x: auto; }
42table { border-collapse: collapse; width: 100%; font-size: .85rem; font-variant-numeric: tabular-nums; }
43th, td { padding: 6px 8px; border-bottom: 1px solid var(--grid); text-align: right; white-space: nowrap; }
44th:first-child, td:first-child { text-align: left; }
45th { color: var(--ink-2); font-weight: 600; }
46.blocked td:not(:first-child) { color: var(--muted); text-align: left; white-space: normal; }
47.prose table { margin: 16px 0; }
48.prose td, .prose th { white-space: normal; text-align: left; vertical-align: top; }
49.prose h2 { margin-top: 40px; }
50dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; font-size: .92rem; }
51dt { color: var(--muted); } dd { margin: 0; color: var(--ink-2); }
52</style>
53</head>
54<body>
55<main>
56<h1>One TodoMVC, nine languages, one platform</h1>
57<p>We built the same small app nine times, once in each of nine language setups, and put every one on Carloku, the hosted CARLOS Platform. The app is <a href="https://todomvc.com">TodoMVC</a>: a to-do list. Here it&#39;s a page the server builds, which works with JavaScript switched off, plus a little JavaScript on top so it feels like the familiar TodoMVC.</p>
58<p>The point is to show that CARLOS apps, and the platform they run on, aren&#39;t tied to Go. So this page compares the nine; it doesn&#39;t rank them.</p>
59<p>One AI model, Opus 5.5, built every app from the same brief. A second, Astra, reviewed each one. A third, Fable, scored how readable the code is without being told which app it was reading. All nine apps are live, and their code is public at <a href="https://amadan.net/carlos/todomvc-bakeoff">amadan.net/carlos/todomvc-bakeoff</a>.</p>
60
61<p><a href="writeup.html">Read the write-up: what the numbers mean and what we conclude</a></p>
62
63<h2>What stood out</h2>
64<ul><li><strong>All nine pass every shared test</strong> on Carloku: 67 of 67, with JavaScript on and with it off.<li><strong>Nim and Zig handled the most traffic</strong> on Carloku&#39;s default size: about 1,400 to 1,500 page loads a second, and 3,100 to 3,600 toggles. They also made the smallest programs (under 2 MB) and used the least memory at rest (2.5 to 3.5 MB).<li><strong>Go builds fastest.</strong> About 10 seconds from scratch and under a second to rebuild, with or without Rastrillo.<li><strong>Waking up costs about the same everywhere.</strong> Every app answered its first request after sleeping in 1.2 to 1.5 seconds; about one second of that is Carloku starting the program.<li><strong>Build costs ranged from $2.92 to $10.70.</strong> Rust was the cheapest. Spinel was the most expensive, mostly because getting it to compile for ARM took the builder 77 minutes.<li><strong>Spinel restarted under heavy load.</strong> Its server process exited 16 times during the load test, and Carloku started it again each time. In one 10-second step, no request completed at all.</ul>
65
66
67<h2>At a glance</h2>
68<div class="card scroll">
69<table>
70<thead><tr><th>Setup</th><th>Tests (JS on · off)</th><th>First byte</th><th>Wake</th><th>Peak reads/s</th><th>Binary</th><th>Cold build / one-line change</th><th>Lines</th><th>Deps</th><th>Cost</th><th>Readability</th></tr></thead>
71<tbody>
72<tr><td>Go</td>
73<td>35/35 · 32/32</td>
74<td>95.9 ms</td><td>1267 ms</td><td>349</td>
75<td>12.3 MB</td><td>10.3 s / 0.1 s</td>
76<td>880</td><td>1</td><td>$3.69</td><td>8/10</td></tr>
77<tr><td>Go &#43; Rastrillo</td>
78<td>35/35 · 32/32</td>
79<td>56.6 ms</td><td>1369 ms</td><td>336</td>
80<td>14.1 MB</td><td>10.4 s / 0.1 s</td>
81<td>797</td><td>3</td><td>$4.67</td><td>8/10</td></tr>
82<tr><td>Rust</td>
83<td>35/35 · 32/32</td>
84<td>93.2 ms</td><td>1245 ms</td><td>904</td>
85<td>3.2 MB</td><td>49.6 s / 5.8 s</td>
86<td>815</td><td>7</td><td>$2.92</td><td>8/10</td></tr>
87<tr><td>Zig</td>
88<td>35/35 · 32/32</td>
89<td>50.2 ms</td><td>1238 ms</td><td>1,382</td>
90<td>1.9 MB</td><td>2.5 min / 5.4 s</td>
91<td>1058</td><td>1</td><td>$5.71</td><td>9/10</td></tr>
92<tr><td>OCaml</td>
93<td>35/35 · 32/32</td>
94<td>51.7 ms</td><td>1286 ms</td><td>992</td>
95<td>8.2 MB</td><td>18.3 min / 3.3 s</td>
96<td>697</td><td>9</td><td>$7.65</td><td>8/10</td></tr>
97<tr><td>Haskell</td>
98<td>35/35 · 32/32</td>
99<td>99.3 ms</td><td>1364 ms</td><td>400</td>
100<td>28.7 MB</td><td>19.1 min / 26.6 s</td>
101<td>798</td><td>10</td><td>$5.06</td><td>8/10</td></tr>
102<tr><td>Swift</td>
103<td>35/35 · 32/32</td>
104<td>58.7 ms</td><td>1445 ms</td><td>537</td>
105<td>22.0 MB</td><td>81.4 s / 3.9 s</td>
106<td>725</td><td>3</td><td>$4.60</td><td>8/10</td></tr>
107<tr><td>Nim</td>
108<td>35/35 · 32/32</td>
109<td>50.6 ms</td><td>1299 ms</td><td>1,491</td>
110<td>1.8 MB</td><td>33.9 s / 0.9 s</td>
111<td>1006</td><td>2</td><td>$4.84</td><td>8/10</td></tr>
112<tr><td>Spinel</td>
113<td>35/35 · 32/32</td>
114<td>94.6 ms</td><td>1285 ms</td><td>722</td>
115<td>8.7 MB</td><td>4.8 min / 104.0 s</td>
116<td>566</td><td>2</td><td>$10.70</td><td>7/10</td></tr>
117</tbody>
118</table>
119</div>
120
121
122<div class="card">
123<h3>Time to first byte, empty list</h3>
124<p class="note">Median of 30 page loads from our test machine, each on a new connection, so it includes the network.</p>
125<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Time to first byte, empty list"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H594.5Q598.5 15.0 598.5 19.0V27.0Q598.5 31.0 594.5 31.0H150.0Z"><title>Go: 95.9 ms</title></path><text class="value" x="604.5" y="28">95.9 ms</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H411.0Q415.0 45.0 415.0 49.0V57.0Q415.0 61.0 411.0 61.0H150.0Z"><title>Go + Rastrillo: 56.6 ms</title></path><text class="value" x="421.0" y="58">56.6 ms</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H582.2Q586.2 75.0 586.2 79.0V87.0Q586.2 91.0 582.2 91.0H150.0Z"><title>Rust: 93.2 ms</title></path><text class="value" x="592.2" y="88">93.2 ms</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H381.0Q385.0 105.0 385.0 109.0V117.0Q385.0 121.0 381.0 121.0H150.0Z"><title>Zig: 50.2 ms</title></path><text class="value" x="391.0" y="118">50.2 ms</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H387.7Q391.7 135.0 391.7 139.0V147.0Q391.7 151.0 387.7 151.0H150.0Z"><title>OCaml: 51.7 ms</title></path><text class="value" x="397.7" y="148">51.7 ms</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H610.8Q614.8 165.0 614.8 169.0V177.0Q614.8 181.0 610.8 181.0H150.0Z"><title>Haskell: 99.3 ms</title></path><text class="value" x="620.8" y="178">99.3 ms</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H420.7Q424.7 195.0 424.7 199.0V207.0Q424.7 211.0 420.7 211.0H150.0Z"><title>Swift: 58.7 ms</title></path><text class="value" x="430.7" y="208">58.7 ms</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H382.8Q386.8 225.0 386.8 229.0V237.0Q386.8 241.0 382.8 241.0H150.0Z"><title>Nim: 50.6 ms</title></path><text class="value" x="392.8" y="238">50.6 ms</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H588.5Q592.5 255.0 592.5 259.0V267.0Q592.5 271.0 588.5 271.0H150.0Z"><title>Spinel: 94.6 ms</title></path><text class="value" x="598.5" y="268">94.6 ms</text></svg>
126</div>
127
128<div class="card">
129<h3>Time to first byte, 50 items</h3>
130<p class="note">The same, with 50 todos on the list.</p>
131<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Time to first byte, 50 items"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H603.7Q607.7 15.0 607.7 19.0V27.0Q607.7 31.0 603.7 31.0H150.0Z"><title>Go: 97.0 ms</title></path><text class="value" x="613.7" y="28">97.0 ms</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H401.2Q405.2 45.0 405.2 49.0V57.0Q405.2 61.0 401.2 61.0H150.0Z"><title>Go + Rastrillo: 54.1 ms</title></path><text class="value" x="411.2" y="58">54.1 ms</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H598.0Q602.0 75.0 602.0 79.0V87.0Q602.0 91.0 598.0 91.0H150.0Z"><title>Rust: 95.8 ms</title></path><text class="value" x="608.0" y="88">95.8 ms</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H401.5Q405.5 105.0 405.5 109.0V117.0Q405.5 121.0 401.5 121.0H150.0Z"><title>Zig: 54.1 ms</title></path><text class="value" x="411.5" y="118">54.1 ms</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H395.7Q399.7 135.0 399.7 139.0V147.0Q399.7 151.0 395.7 151.0H150.0Z"><title>OCaml: 52.9 ms</title></path><text class="value" x="405.7" y="148">52.9 ms</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H610.8Q614.8 165.0 614.8 169.0V177.0Q614.8 181.0 610.8 181.0H150.0Z"><title>Haskell: 98.5 ms</title></path><text class="value" x="620.8" y="178">98.5 ms</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H411.8Q415.8 195.0 415.8 199.0V207.0Q415.8 211.0 411.8 211.0H150.0Z"><title>Swift: 56.3 ms</title></path><text class="value" x="421.8" y="208">56.3 ms</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H385.9Q389.9 225.0 389.9 229.0V237.0Q389.9 241.0 385.9 241.0H150.0Z"><title>Nim: 50.8 ms</title></path><text class="value" x="395.9" y="238">50.8 ms</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H584.2Q588.2 255.0 588.2 259.0V267.0Q588.2 271.0 584.2 271.0H150.0Z"><title>Spinel: 92.8 ms</title></path><text class="value" x="594.2" y="268">92.8 ms</text></svg>
132</div>
133
134<div class="card">
135<h3>Wake from sleep</h3>
136<p class="note">Time to the first byte when the app had gone to sleep after 15 idle minutes. Median of three.</p>
137<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Wake from sleep"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H553.4Q557.4 15.0 557.4 19.0V27.0Q557.4 31.0 553.4 31.0H150.0Z"><title>Go: 1267 ms</title></path><text class="value" x="563.4" y="28">1267 ms</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H586.5Q590.5 45.0 590.5 49.0V57.0Q590.5 61.0 586.5 61.0H150.0Z"><title>Go + Rastrillo: 1369 ms</title></path><text class="value" x="596.5" y="58">1369 ms</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H546.4Q550.4 75.0 550.4 79.0V87.0Q550.4 91.0 546.4 91.0H150.0Z"><title>Rust: 1245 ms</title></path><text class="value" x="556.4" y="88">1245 ms</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H544.1Q548.1 105.0 548.1 109.0V117.0Q548.1 121.0 544.1 121.0H150.0Z"><title>Zig: 1238 ms</title></path><text class="value" x="554.1" y="118">1238 ms</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H559.5Q563.5 135.0 563.5 139.0V147.0Q563.5 151.0 559.5 151.0H150.0Z"><title>OCaml: 1286 ms</title></path><text class="value" x="569.5" y="148">1286 ms</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H584.8Q588.8 165.0 588.8 169.0V177.0Q588.8 181.0 584.8 181.0H150.0Z"><title>Haskell: 1364 ms</title></path><text class="value" x="594.8" y="178">1364 ms</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H610.8Q614.8 195.0 614.8 199.0V207.0Q614.8 211.0 610.8 211.0H150.0Z"><title>Swift: 1445 ms</title></path><text class="value" x="620.8" y="208">1445 ms</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H564.0Q568.0 225.0 568.0 229.0V237.0Q568.0 241.0 564.0 241.0H150.0Z"><title>Nim: 1299 ms</title></path><text class="value" x="574.0" y="238">1299 ms</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H559.4Q563.4 255.0 563.4 259.0V267.0Q563.4 271.0 559.4 271.0H150.0Z"><title>Spinel: 1285 ms</title></path><text class="value" x="569.4" y="268">1285 ms</text></svg>
138</div>
139
140<div class="card">
141<h3>Peak page loads per second</h3>
142<p class="note">Loading a 50-item list, starting with one connection and doubling the number of simultaneous connections every 10 seconds.</p>
143<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Peak page loads per second"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H258.2Q262.2 15.0 262.2 19.0V27.0Q262.2 31.0 258.2 31.0H150.0Z"><title>Go: 349</title></path><text class="value" x="268.2" y="28">349</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H254.2Q258.2 45.0 258.2 49.0V57.0Q258.2 61.0 254.2 61.0H150.0Z"><title>Go + Rastrillo: 336</title></path><text class="value" x="264.2" y="58">336</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H437.1Q441.1 75.0 441.1 79.0V87.0Q441.1 91.0 437.1 91.0H150.0Z"><title>Rust: 904</title></path><text class="value" x="447.1" y="88">904</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H590.8Q594.8 105.0 594.8 109.0V117.0Q594.8 121.0 590.8 121.0H150.0Z"><title>Zig: 1,382</title></path><text class="value" x="600.8" y="118">1,382</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H465.2Q469.2 135.0 469.2 139.0V147.0Q469.2 151.0 465.2 151.0H150.0Z"><title>OCaml: 992</title></path><text class="value" x="475.2" y="148">992</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H274.8Q278.8 165.0 278.8 169.0V177.0Q278.8 181.0 274.8 181.0H150.0Z"><title>Haskell: 400</title></path><text class="value" x="284.8" y="178">400</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H318.7Q322.7 195.0 322.7 199.0V207.0Q322.7 211.0 318.7 211.0H150.0Z"><title>Swift: 537</title></path><text class="value" x="328.7" y="208">537</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H626.0Q630.0 225.0 630.0 229.0V237.0Q630.0 241.0 626.0 241.0H150.0Z"><title>Nim: 1,491</title></path><text class="value" x="636.0" y="238">1,491</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H378.3Q382.3 255.0 382.3 259.0V267.0Q382.3 271.0 378.3 271.0H150.0Z"><title>Spinel: 722</title></path><text class="value" x="388.3" y="268">722</text></svg>
144</div>
145
146<div class="card">
147<h3>Page loads: where it slows down</h3>
148<p class="note">The fewest simultaneous connections from which adding more never raised throughput by 10% or more.</p>
149<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Page loads: where it slows down"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H154.7Q158.7 15.0 158.7 19.0V27.0Q158.7 31.0 154.7 31.0H150.0Z"><title>Go: 8 connections</title></path><text class="value" x="164.7" y="28">8 connections</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H163.4Q167.4 45.0 167.4 49.0V57.0Q167.4 61.0 163.4 61.0H150.0Z"><title>Go + Rastrillo: 16 connections</title></path><text class="value" x="173.4" y="58">16 connections</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H215.6Q219.6 75.0 219.6 79.0V87.0Q219.6 91.0 215.6 91.0H150.0Z"><title>Rust: 64 connections</title></path><text class="value" x="225.6" y="88">64 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H180.8Q184.8 105.0 184.8 109.0V117.0Q184.8 121.0 180.8 121.0H150.0Z"><title>Zig: 32 connections</title></path><text class="value" x="190.8" y="118">32 connections</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H215.6Q219.6 135.0 219.6 139.0V147.0Q219.6 151.0 215.6 151.0H150.0Z"><title>OCaml: 64 connections</title></path><text class="value" x="225.6" y="148">64 connections · Carloku turned some requests away from 256</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H180.8Q184.8 165.0 184.8 169.0V177.0Q184.8 181.0 180.8 181.0H150.0Z"><title>Haskell: 32 connections</title></path><text class="value" x="190.8" y="178">32 connections</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H215.6Q219.6 195.0 219.6 199.0V207.0Q219.6 211.0 215.6 211.0H150.0Z"><title>Swift: 64 connections</title></path><text class="value" x="225.6" y="208">64 connections · requests started failing from 512</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H180.8Q184.8 225.0 184.8 229.0V237.0Q184.8 241.0 180.8 241.0H150.0Z"><title>Nim: 32 connections</title></path><text class="value" x="190.8" y="238">32 connections</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H215.6Q219.6 255.0 219.6 259.0V267.0Q219.6 271.0 215.6 271.0H150.0Z"><title>Spinel: 64 connections</title></path><text class="value" x="225.6" y="268">64 connections · Carloku turned some requests away from 128</text></svg>
150</div>
151
152<div class="card">
153<h3>Peak toggles per second</h3>
154<p class="note">Ticking one todo on and off, ramping the same way.</p>
155<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Peak toggles per second"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H255.1Q259.1 15.0 259.1 19.0V27.0Q259.1 31.0 255.1 31.0H150.0Z"><title>Go: 810</title></path><text class="value" x="265.1" y="28">810</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H187.6Q191.6 45.0 191.6 49.0V57.0Q191.6 61.0 187.6 61.0H150.0Z"><title>Go + Rastrillo: 309</title></path><text class="value" x="197.6" y="58">309</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H283.7Q287.7 75.0 287.7 79.0V87.0Q287.7 91.0 283.7 91.0H150.0Z"><title>Rust: 1,022</title></path><text class="value" x="293.7" y="88">1,022</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H565.6Q569.6 105.0 569.6 109.0V117.0Q569.6 121.0 565.6 121.0H150.0Z"><title>Zig: 3,113</title></path><text class="value" x="575.6" y="118">3,113</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H288.5Q292.5 135.0 292.5 139.0V147.0Q292.5 151.0 288.5 151.0H150.0Z"><title>OCaml: 1,058</title></path><text class="value" x="298.5" y="148">1,058</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H262.2Q266.2 165.0 266.2 169.0V177.0Q266.2 181.0 262.2 181.0H150.0Z"><title>Haskell: 862</title></path><text class="value" x="272.2" y="178">862</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H341.9Q345.9 195.0 345.9 199.0V207.0Q345.9 211.0 341.9 211.0H150.0Z"><title>Swift: 1,453</title></path><text class="value" x="351.9" y="208">1,453</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H626.0Q630.0 225.0 630.0 229.0V237.0Q630.0 241.0 626.0 241.0H150.0Z"><title>Nim: 3,561</title></path><text class="value" x="636.0" y="238">3,561</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H476.4Q480.4 255.0 480.4 259.0V267.0Q480.4 271.0 476.4 271.0H150.0Z"><title>Spinel: 2,451</title></path><text class="value" x="486.4" y="268">2,451</text></svg>
156</div>
157
158<div class="card">
159<h3>Toggles: where it slows down</h3>
160<p class="note">The same rule as for page loads.</p>
161<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Toggles: where it slows down"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H163.4Q167.4 15.0 167.4 19.0V27.0Q167.4 31.0 163.4 31.0H150.0Z"><title>Go: 32 connections</title></path><text class="value" x="173.4" y="28">32 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H154.7Q158.7 45.0 158.7 49.0V57.0Q158.7 61.0 154.7 61.0H150.0Z"><title>Go + Rastrillo: 16 connections</title></path><text class="value" x="164.7" y="58">16 connections</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H180.8Q184.8 75.0 184.8 79.0V87.0Q184.8 91.0 180.8 91.0H150.0Z"><title>Rust: 64 connections</title></path><text class="value" x="190.8" y="88">64 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H180.8Q184.8 105.0 184.8 109.0V117.0Q184.8 121.0 180.8 121.0H150.0Z"><title>Zig: 64 connections</title></path><text class="value" x="190.8" y="118">64 connections</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H180.8Q184.8 135.0 184.8 139.0V147.0Q184.8 151.0 180.8 151.0H150.0Z"><title>OCaml: 64 connections</title></path><text class="value" x="190.8" y="148">64 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H163.4Q167.4 165.0 167.4 169.0V177.0Q167.4 181.0 163.4 181.0H150.0Z"><title>Haskell: 32 connections</title></path><text class="value" x="173.4" y="178">32 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H215.6Q219.6 195.0 219.6 199.0V207.0Q219.6 211.0 215.6 211.0H150.0Z"><title>Swift: 128 connections</title></path><text class="value" x="225.6" y="208">128 connections</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H215.6Q219.6 225.0 219.6 229.0V237.0Q219.6 241.0 215.6 241.0H150.0Z"><title>Nim: 128 connections</title></path><text class="value" x="225.6" y="238">128 connections · requests started failing from 256</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H180.8Q184.8 255.0 184.8 259.0V267.0Q184.8 271.0 180.8 271.0H150.0Z"><title>Spinel: 64 connections</title></path><text class="value" x="190.8" y="268">64 connections · requests started failing from 256</text></svg>
162</div>
163
164<div class="card">
165<h3>Peak page loads per second, after the writes</h3>
166<p class="note">The read ramp again, straight after the toggle ramp, on the same database.</p>
167<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Peak page loads per second, after the writes"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H257.5Q261.5 15.0 261.5 19.0V27.0Q261.5 31.0 257.5 31.0H150.0Z"><title>Go: 343</title></path><text class="value" x="267.5" y="28">343</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H255.2Q259.2 45.0 259.2 49.0V57.0Q259.2 61.0 255.2 61.0H150.0Z"><title>Go + Rastrillo: 336</title></path><text class="value" x="265.2" y="58">336</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H599.8Q603.8 75.0 603.8 79.0V87.0Q603.8 91.0 599.8 91.0H150.0Z"><title>Rust: 1,398</title></path><text class="value" x="609.8" y="88">1,398</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H593.6Q597.6 105.0 597.6 109.0V117.0Q597.6 121.0 593.6 121.0H150.0Z"><title>Zig: 1,379</title></path><text class="value" x="603.6" y="118">1,379</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H387.1Q391.1 135.0 391.1 139.0V147.0Q391.1 151.0 387.1 151.0H150.0Z"><title>OCaml: 743</title></path><text class="value" x="397.1" y="148">743</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H272.8Q276.8 165.0 276.8 169.0V177.0Q276.8 181.0 272.8 181.0H150.0Z"><title>Haskell: 391</title></path><text class="value" x="282.8" y="178">391</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H318.6Q322.6 195.0 322.6 199.0V207.0Q322.6 211.0 318.6 211.0H150.0Z"><title>Swift: 532</title></path><text class="value" x="328.6" y="208">532</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H626.0Q630.0 225.0 630.0 229.0V237.0Q630.0 241.0 626.0 241.0H150.0Z"><title>Nim: 1,479</title></path><text class="value" x="636.0" y="238">1,479</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H335.8Q339.8 255.0 339.8 259.0V267.0Q339.8 271.0 335.8 271.0H150.0Z"><title>Spinel: 585</title></path><text class="value" x="345.8" y="268">585</text></svg>
168</div>
169
170<div class="card">
171<h3>Page loads after the writes: where it slows down</h3>
172<p class="note">The same rule, for the read ramp run straight after the writes.</p>
173<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Page loads after the writes: where it slows down"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H152.2Q154.3 15.0 154.3 17.2V28.8Q154.3 31.0 152.2 31.0H150.0Z"><title>Go: 8 connections</title></path><text class="value" x="160.3" y="28">8 connections</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H154.7Q158.7 45.0 158.7 49.0V57.0Q158.7 61.0 154.7 61.0H150.0Z"><title>Go + Rastrillo: 16 connections</title></path><text class="value" x="164.7" y="58">16 connections</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H215.6Q219.6 75.0 219.6 79.0V87.0Q219.6 91.0 215.6 91.0H150.0Z"><title>Rust: 128 connections</title></path><text class="value" x="225.6" y="88">128 connections</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H163.4Q167.4 105.0 167.4 109.0V117.0Q167.4 121.0 163.4 121.0H150.0Z"><title>Zig: 32 connections</title></path><text class="value" x="173.4" y="118">32 connections</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H163.4Q167.4 135.0 167.4 139.0V147.0Q167.4 151.0 163.4 151.0H150.0Z"><title>OCaml: 32 connections</title></path><text class="value" x="173.4" y="148">32 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H152.2Q154.3 165.0 154.3 167.2V178.8Q154.3 181.0 152.2 181.0H150.0Z"><title>Haskell: 8 connections</title></path><text class="value" x="160.3" y="178">8 connections</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H180.8Q184.8 195.0 184.8 199.0V207.0Q184.8 211.0 180.8 211.0H150.0Z"><title>Swift: 64 connections</title></path><text class="value" x="190.8" y="208">64 connections</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H163.4Q167.4 225.0 167.4 229.0V237.0Q167.4 241.0 163.4 241.0H150.0Z"><title>Nim: 32 connections</title></path><text class="value" x="173.4" y="238">32 connections</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H154.7Q158.7 255.0 158.7 259.0V267.0Q158.7 271.0 154.7 271.0H150.0Z"><title>Spinel: 16 connections</title></path><text class="value" x="164.7" y="268">16 connections · requests started failing from 32</text></svg>
174</div>
175
176<div class="card">
177<h3>Memory at rest</h3>
178<p class="note">Resident memory just after start, measured on our own machine because Carloku doesn&#39;t show members memory figures.</p>
179<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Memory at rest"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H479.3Q483.3 15.0 483.3 19.0V27.0Q483.3 31.0 479.3 31.0H150.0Z"><title>Go: 17.0 MB</title></path><text class="value" x="489.3" y="28">17.0 MB</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H513.2Q517.2 45.0 517.2 49.0V57.0Q517.2 61.0 513.2 61.0H150.0Z"><title>Go + Rastrillo: 18.7 MB</title></path><text class="value" x="523.2" y="58">18.7 MB</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H415.9Q419.9 75.0 419.9 79.0V87.0Q419.9 91.0 415.9 91.0H150.0Z"><title>Rust: 13.8 MB</title></path><text class="value" x="425.9" y="88">13.8 MB</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H194.1Q198.1 105.0 198.1 109.0V117.0Q198.1 121.0 194.1 121.0H150.0Z"><title>Zig: 2.5 MB</title></path><text class="value" x="204.1" y="118">2.5 MB</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H355.1Q359.1 135.0 359.1 139.0V147.0Q359.1 151.0 355.1 151.0H150.0Z"><title>OCaml: 10.7 MB</title></path><text class="value" x="365.1" y="148">10.7 MB</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H364.3Q368.3 165.0 368.3 169.0V177.0Q368.3 181.0 364.3 181.0H150.0Z"><title>Haskell: 11.1 MB</title></path><text class="value" x="374.3" y="178">11.1 MB</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H610.8Q614.8 195.0 614.8 199.0V207.0Q614.8 211.0 610.8 211.0H150.0Z"><title>Swift: 23.7 MB</title></path><text class="value" x="620.8" y="208">23.7 MB</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H214.2Q218.2 225.0 218.2 229.0V237.0Q218.2 241.0 214.2 241.0H150.0Z"><title>Nim: 3.5 MB</title></path><text class="value" x="224.2" y="238">3.5 MB</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H306.3Q310.3 255.0 310.3 259.0V267.0Q310.3 271.0 306.3 271.0H150.0Z"><title>Spinel: 8.2 MB</title></path><text class="value" x="316.3" y="268">8.2 MB</text></svg>
180</div>
181
182<div class="card">
183<h3>Memory under load</h3>
184<p class="note">The most resident memory each app used during 10 seconds of 64 simultaneous page loads and then 10 seconds of 64 simultaneous toggles, on our own machine.</p>
185<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Memory under load"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H575.0Q579.0 15.0 579.0 19.0V27.0Q579.0 31.0 575.0 31.0H150.0Z"><title>Go: 70.7 MB</title></path><text class="value" x="585.0" y="28">70.7 MB</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H529.7Q533.7 45.0 533.7 49.0V57.0Q533.7 61.0 529.7 61.0H150.0Z"><title>Go + Rastrillo: 63.3 MB</title></path><text class="value" x="539.7" y="58">63.3 MB</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H465.3Q469.3 75.0 469.3 79.0V87.0Q469.3 91.0 465.3 91.0H150.0Z"><title>Rust: 52.6 MB</title></path><text class="value" x="475.3" y="88">52.6 MB</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H299.3Q303.3 105.0 303.3 109.0V117.0Q303.3 121.0 299.3 121.0H150.0Z"><title>Zig: 25.3 MB</title></path><text class="value" x="309.3" y="118">25.3 MB</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H249.0Q253.0 135.0 253.0 139.0V147.0Q253.0 151.0 249.0 151.0H150.0Z"><title>OCaml: 17.0 MB</title></path><text class="value" x="259.0" y="148">17.0 MB</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H610.8Q614.8 165.0 614.8 169.0V177.0Q614.8 181.0 610.8 181.0H150.0Z"><title>Haskell: 76.6 MB</title></path><text class="value" x="620.8" y="178">76.6 MB</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H348.5Q352.5 195.0 352.5 199.0V207.0Q352.5 211.0 348.5 211.0H150.0Z"><title>Swift: 33.4 MB</title></path><text class="value" x="358.5" y="208">33.4 MB</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H215.5Q219.5 225.0 219.5 229.0V237.0Q219.5 241.0 215.5 241.0H150.0Z"><title>Nim: 11.5 MB</title></path><text class="value" x="225.5" y="238">11.5 MB</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H223.6Q227.6 255.0 227.6 259.0V267.0Q227.6 271.0 223.6 271.0H150.0Z"><title>Spinel: 12.8 MB</title></path><text class="value" x="233.6" y="268">12.8 MB</text></svg>
186</div>
187
188<div class="card">
189<h3>Binary size</h3>
190<p class="note">The linux-arm64 file that ships.</p>
191<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Binary size"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H345.4Q349.4 15.0 349.4 19.0V27.0Q349.4 31.0 345.4 31.0H150.0Z"><title>Go: 12.3 MB</title></path><text class="value" x="355.4" y="28">12.3 MB</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H374.0Q378.0 45.0 378.0 49.0V57.0Q378.0 61.0 374.0 61.0H150.0Z"><title>Go + Rastrillo: 14.1 MB</title></path><text class="value" x="384.0" y="58">14.1 MB</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H197.1Q201.1 75.0 201.1 79.0V87.0Q201.1 91.0 197.1 91.0H150.0Z"><title>Rust: 3.2 MB</title></path><text class="value" x="207.1" y="88">3.2 MB</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H177.0Q181.0 105.0 181.0 109.0V117.0Q181.0 121.0 177.0 121.0H150.0Z"><title>Zig: 1.9 MB</title></path><text class="value" x="187.0" y="118">1.9 MB</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H279.2Q283.2 135.0 283.2 139.0V147.0Q283.2 151.0 279.2 151.0H150.0Z"><title>OCaml: 8.2 MB</title></path><text class="value" x="289.2" y="148">8.2 MB</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H610.8Q614.8 165.0 614.8 169.0V177.0Q614.8 181.0 610.8 181.0H150.0Z"><title>Haskell: 28.7 MB</title></path><text class="value" x="620.8" y="178">28.7 MB</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H501.9Q505.9 195.0 505.9 199.0V207.0Q505.9 211.0 501.9 211.0H150.0Z"><title>Swift: 22.0 MB</title></path><text class="value" x="511.9" y="208">22.0 MB</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H174.5Q178.5 225.0 178.5 229.0V237.0Q178.5 241.0 174.5 241.0H150.0Z"><title>Nim: 1.8 MB</title></path><text class="value" x="184.5" y="238">1.8 MB</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H287.6Q291.6 255.0 291.6 259.0V267.0Q291.6 271.0 287.6 271.0H150.0Z"><title>Spinel: 8.7 MB</title></path><text class="value" x="297.6" y="268">8.7 MB</text></svg>
192</div>
193
194<div class="card">
195<h3>Cold build</h3>
196<p class="note">Every library compiled from already-downloaded sources. One run each, because some take close to an hour under emulation.</p>
197<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Cold build"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H152.1Q154.1 15.0 154.1 17.1V28.9Q154.1 31.0 152.1 31.0H150.0Z"><title>Go: 10.3 s</title></path><text class="value" x="160.1" y="28">10.3 s</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H152.1Q154.1 45.0 154.1 47.1V58.9Q154.1 61.0 152.1 61.0H150.0Z"><title>Go + Rastrillo: 10.4 s</title></path><text class="value" x="160.1" y="58">10.4 s</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H165.8Q169.8 75.0 169.8 79.0V87.0Q169.8 91.0 165.8 91.0H150.0Z"><title>Rust: 49.6 s</title></path><text class="value" x="175.8" y="88">49.6 s</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H206.5Q210.5 105.0 210.5 109.0V117.0Q210.5 121.0 206.5 121.0H150.0Z"><title>Zig: 2.5 min</title></path><text class="value" x="216.5" y="118">2.5 min</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H583.7Q587.7 135.0 587.7 139.0V147.0Q587.7 151.0 583.7 151.0H150.0Z"><title>OCaml: 18.3 min</title></path><text class="value" x="593.7" y="148">18.3 min</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H603.2Q607.2 165.0 607.2 169.0V177.0Q607.2 181.0 603.2 181.0H150.0Z"><title>Haskell: 19.1 min</title></path><text class="value" x="613.2" y="178">19.1 min</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H178.5Q182.5 195.0 182.5 199.0V207.0Q182.5 211.0 178.5 211.0H150.0Z"><title>Swift: 81.4 s</title></path><text class="value" x="188.5" y="208">81.4 s</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H159.5Q163.5 225.0 163.5 229.0V237.0Q163.5 241.0 159.5 241.0H150.0Z"><title>Nim: 33.9 s</title></path><text class="value" x="169.5" y="238">33.9 s</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H260.5Q264.5 255.0 264.5 259.0V267.0Q264.5 271.0 260.5 271.0H150.0Z"><title>Spinel: 4.8 min</title></path><text class="value" x="270.5" y="268">4.8 min</text></svg>
198</div>
199
200<div class="card">
201<h3>Rebuild after a one-line change</h3>
202<p class="note">Everything already compiled, then one line added to the code that serves the page (a unique comment, so no cache can skip the work). Median of three.</p>
203<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Rebuild after a one-line change"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H150.2Q150.4 15.0 150.4 15.2V30.8Q150.4 31.0 150.2 31.0H150.0Z"><title>Go: 0.1 s</title></path><text class="value" x="156.4" y="28">0.1 s</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H150.3Q150.6 45.0 150.6 45.3V60.7Q150.6 61.0 150.3 61.0H150.0Z"><title>Go + Rastrillo: 0.1 s</title></path><text class="value" x="156.6" y="58">0.1 s</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H171.7Q175.7 75.0 175.7 79.0V87.0Q175.7 91.0 171.7 91.0H150.0Z"><title>Rust: 5.8 s</title></path><text class="value" x="181.7" y="88">5.8 s</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H170.2Q174.2 105.0 174.2 109.0V117.0Q174.2 121.0 170.2 121.0H150.0Z"><title>Zig: 5.4 s</title></path><text class="value" x="180.2" y="118">5.4 s</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H160.8Q164.8 135.0 164.8 139.0V147.0Q164.8 151.0 160.8 151.0H150.0Z"><title>OCaml: 3.3 s</title></path><text class="value" x="170.8" y="148">3.3 s</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H265.1Q269.1 165.0 269.1 169.0V177.0Q269.1 181.0 265.1 181.0H150.0Z"><title>Haskell: 26.6 s</title></path><text class="value" x="275.1" y="178">26.6 s</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H163.2Q167.2 195.0 167.2 199.0V207.0Q167.2 211.0 163.2 211.0H150.0Z"><title>Swift: 3.9 s</title></path><text class="value" x="173.2" y="208">3.9 s</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H152.1Q154.2 225.0 154.2 227.1V238.9Q154.2 241.0 152.1 241.0H150.0Z"><title>Nim: 0.9 s</title></path><text class="value" x="160.2" y="238">0.9 s</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H610.8Q614.8 255.0 614.8 259.0V267.0Q614.8 271.0 610.8 271.0H150.0Z"><title>Spinel: 104.0 s</title></path><text class="value" x="620.8" y="268">104.0 s</text></svg>
204</div>
205
206<div class="card">
207<h3>Lines of code</h3>
208<p class="note">Non-blank lines of each app&#39;s own code. Tests are not counted.</p>
209<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Lines of code"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H451.7Q451.7 15.0 451.7 15.0V31.0Q451.7 31.0 451.7 31.0H150.0Z"><title>Go: server 665</title></path><path class="s2" d="M453.7 15.0H489.4Q489.4 15.0 489.4 15.0V31.0Q489.4 31.0 489.4 31.0H453.7Z"><title>Go: templates 83</title></path><path class="s3" d="M491.4 15.0H545.2Q549.2 15.0 549.2 19.0V27.0Q549.2 31.0 545.2 31.0H491.4Z"><title>Go: JavaScript 132</title></path><text class="value" x="555.2" y="28">880</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H426.3Q426.3 45.0 426.3 45.0V61.0Q426.3 61.0 426.3 61.0H150.0Z"><title>Go + Rastrillo: server 609</title></path><path class="s2" d="M428.3 45.0H472.6Q472.6 45.0 472.6 45.0V61.0Q472.6 61.0 472.6 61.0H428.3Z"><title>Go + Rastrillo: templates 102</title></path><path class="s3" d="M474.6 45.0H507.6Q511.6 45.0 511.6 49.0V57.0Q511.6 61.0 507.6 61.0H474.6Z"><title>Go + Rastrillo: JavaScript 86</title></path><text class="value" x="517.6" y="58">797</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H468.5Q468.5 75.0 468.5 75.0V91.0Q468.5 91.0 468.5 91.0H150.0Z"><title>Rust: server 702</title></path><path class="s3" d="M472.5 75.0H517.8Q521.8 75.0 521.8 79.0V87.0Q521.8 91.0 517.8 91.0H472.5Z"><title>Rust: JavaScript 113</title></path><text class="value" x="525.8" y="88">815</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H587.4Q587.4 105.0 587.4 105.0V121.0Q587.4 121.0 587.4 121.0H150.0Z"><title>Zig: server 964</title></path><path class="s3" d="M591.4 105.0H628.0Q632.0 105.0 632.0 109.0V117.0Q632.0 121.0 628.0 121.0H591.4Z"><title>Zig: JavaScript 94</title></path><text class="value" x="636.0" y="118">1,058</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H420.9Q420.9 135.0 420.9 135.0V151.0Q420.9 151.0 420.9 151.0H150.0Z"><title>OCaml: server 597</title></path><path class="s3" d="M424.9 135.0H464.2Q468.2 135.0 468.2 139.0V147.0Q468.2 151.0 464.2 151.0H424.9Z"><title>OCaml: JavaScript 100</title></path><text class="value" x="472.2" y="148">697</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H460.8Q460.8 165.0 460.8 165.0V181.0Q460.8 181.0 460.8 181.0H150.0Z"><title>Haskell: server 685</title></path><path class="s3" d="M464.8 165.0H510.0Q514.0 165.0 514.0 169.0V177.0Q514.0 181.0 510.0 181.0H464.8Z"><title>Haskell: JavaScript 113</title></path><text class="value" x="518.0" y="178">798</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H444.9Q444.9 195.0 444.9 195.0V211.0Q444.9 211.0 444.9 211.0H150.0Z"><title>Swift: server 650</title></path><path class="s3" d="M448.9 195.0H476.9Q480.9 195.0 480.9 199.0V207.0Q480.9 211.0 476.9 211.0H448.9Z"><title>Swift: JavaScript 75</title></path><text class="value" x="484.9" y="208">725</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H521.6Q521.6 225.0 521.6 225.0V241.0Q521.6 241.0 521.6 241.0H150.0Z"><title>Nim: server 819</title></path><path class="s2" d="M523.6 225.0H555.6Q555.6 225.0 555.6 225.0V241.0Q555.6 241.0 555.6 241.0H523.6Z"><title>Nim: templates 75</title></path><path class="s3" d="M557.6 225.0H602.4Q606.4 225.0 606.4 229.0V237.0Q606.4 241.0 602.4 241.0H557.6Z"><title>Nim: JavaScript 112</title></path><text class="value" x="612.4" y="238">1,006</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H374.6Q374.6 255.0 374.6 255.0V271.0Q374.6 271.0 374.6 271.0H150.0Z"><title>Spinel: server 495</title></path><path class="s3" d="M378.6 255.0H404.8Q408.8 255.0 408.8 259.0V267.0Q408.8 271.0 404.8 271.0H378.6Z"><title>Spinel: JavaScript 71</title></path><text class="value" x="412.8" y="268">566</text></svg>
210<ul class="legend"><li style="--k: var(--s1)">server</li><li style="--k: var(--s2)">templates</li><li style="--k: var(--s3)">JavaScript</li></ul>
211<div class="scroll"><table><thead><tr><th>Setup</th><th>server</th><th>templates</th><th>JavaScript</th></tr></thead><tbody><tr><td>Go</td><td>665</td><td>83</td><td>132</td></tr><tr><td>Go &#43; Rastrillo</td><td>609</td><td>102</td><td>86</td></tr><tr><td>Rust</td><td>702</td><td>0</td><td>113</td></tr><tr><td>Zig</td><td>964</td><td>0</td><td>94</td></tr><tr><td>OCaml</td><td>597</td><td>0</td><td>100</td></tr><tr><td>Haskell</td><td>685</td><td>0</td><td>113</td></tr><tr><td>Swift</td><td>650</td><td>0</td><td>75</td></tr><tr><td>Nim</td><td>819</td><td>75</td><td>112</td></tr><tr><td>Spinel</td><td>495</td><td>0</td><td>71</td></tr>
212</tbody></table></div>
213</div>
214
215<div class="card">
216<h3>Cost to build</h3>
217<p class="note">What Opus 5.5 cost at list price for the build and its fix rounds.</p>
218<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Cost to build"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H308.7Q312.7 15.0 312.7 19.0V27.0Q312.7 31.0 308.7 31.0H150.0Z"><title>Go: $3.69</title></path><text class="value" x="318.7" y="28">$3.69</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H352.0Q356.0 45.0 356.0 49.0V57.0Q356.0 61.0 352.0 61.0H150.0Z"><title>Go + Rastrillo: $4.67</title></path><text class="value" x="362.0" y="58">$4.67</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H274.9Q278.9 75.0 278.9 79.0V87.0Q278.9 91.0 274.9 91.0H150.0Z"><title>Rust: $2.92</title></path><text class="value" x="284.9" y="88">$2.92</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H398.2Q402.2 105.0 402.2 109.0V117.0Q402.2 121.0 398.2 121.0H150.0Z"><title>Zig: $5.71</title></path><text class="value" x="408.2" y="118">$5.71</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H483.5Q487.5 135.0 487.5 139.0V147.0Q487.5 151.0 483.5 151.0H150.0Z"><title>OCaml: $7.65</title></path><text class="value" x="493.5" y="148">$7.65</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H369.2Q373.2 165.0 373.2 169.0V177.0Q373.2 181.0 369.2 181.0H150.0Z"><title>Haskell: $5.06</title></path><text class="value" x="379.2" y="178">$5.06</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H348.9Q352.9 195.0 352.9 199.0V207.0Q352.9 211.0 348.9 211.0H150.0Z"><title>Swift: $4.60</title></path><text class="value" x="358.9" y="208">$4.60</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H359.8Q363.8 225.0 363.8 229.0V237.0Q363.8 241.0 359.8 241.0H150.0Z"><title>Nim: $4.84</title></path><text class="value" x="369.8" y="238">$4.84</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H618.4Q622.4 255.0 622.4 259.0V267.0Q622.4 271.0 618.4 271.0H150.0Z"><title>Spinel: $10.70</title></path><text class="value" x="628.4" y="268">$10.70</text></svg>
219</div>
220
221<div class="card">
222<h3>Tokens written to build</h3>
223<p class="note">Output tokens Opus 5.5 produced for the build and its fix rounds.</p>
224<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Tokens written to build"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H398.6Q402.6 15.0 402.6 19.0V27.0Q402.6 31.0 398.6 31.0H150.0Z"><title>Go: 65,224</title></path><text class="value" x="408.6" y="28">65,224</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H386.8Q390.8 45.0 390.8 49.0V57.0Q390.8 61.0 386.8 61.0H150.0Z"><title>Go + Rastrillo: 62,185</title></path><text class="value" x="396.8" y="58">62,185</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H351.8Q355.8 75.0 355.8 79.0V87.0Q355.8 91.0 351.8 91.0H150.0Z"><title>Rust: 53,143</title></path><text class="value" x="361.8" y="88">53,143</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H437.6Q441.6 105.0 441.6 109.0V117.0Q441.6 121.0 437.6 121.0H150.0Z"><title>Zig: 75,295</title></path><text class="value" x="447.6" y="118">75,295</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H562.9Q566.9 135.0 566.9 139.0V147.0Q566.9 151.0 562.9 151.0H150.0Z"><title>OCaml: 107,648</title></path><text class="value" x="572.9" y="148">107,648</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H478.1Q482.1 165.0 482.1 169.0V177.0Q482.1 181.0 478.1 181.0H150.0Z"><title>Haskell: 85,749</title></path><text class="value" x="488.1" y="178">85,749</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H435.9Q439.9 195.0 439.9 199.0V207.0Q439.9 211.0 435.9 211.0H150.0Z"><title>Swift: 74,844</title></path><text class="value" x="445.9" y="208">74,844</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H431.3Q435.3 225.0 435.3 229.0V237.0Q435.3 241.0 431.3 241.0H150.0Z"><title>Nim: 73,658</title></path><text class="value" x="441.3" y="238">73,658</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H610.8Q614.8 255.0 614.8 259.0V267.0Q614.8 271.0 610.8 271.0H150.0Z"><title>Spinel: 120,010</title></path><text class="value" x="620.8" y="268">120,010</text></svg>
225</div>
226
227<div class="card">
228<h3>Readability</h3>
229<p class="note">A blind score out of 10 from Fable, a different model from the builder. Median of three readings.</p>
230<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Readability"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H565.9Q569.9 15.0 569.9 19.0V27.0Q569.9 31.0 565.9 31.0H150.0Z"><title>Go: 8 / 10</title></path><text class="value" x="575.9" y="28">8 / 10</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H565.9Q569.9 45.0 569.9 49.0V57.0Q569.9 61.0 565.9 61.0H150.0Z"><title>Go + Rastrillo: 8 / 10</title></path><text class="value" x="575.9" y="58">8 / 10</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H565.9Q569.9 75.0 569.9 79.0V87.0Q569.9 91.0 565.9 91.0H150.0Z"><title>Rust: 8 / 10</title></path><text class="value" x="575.9" y="88">8 / 10</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H618.4Q622.4 105.0 622.4 109.0V117.0Q622.4 121.0 618.4 121.0H150.0Z"><title>Zig: 9 / 10</title></path><text class="value" x="628.4" y="118">9 / 10</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H565.9Q569.9 135.0 569.9 139.0V147.0Q569.9 151.0 565.9 151.0H150.0Z"><title>OCaml: 8 / 10</title></path><text class="value" x="575.9" y="148">8 / 10</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H565.9Q569.9 165.0 569.9 169.0V177.0Q569.9 181.0 565.9 181.0H150.0Z"><title>Haskell: 8 / 10</title></path><text class="value" x="575.9" y="178">8 / 10</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H565.9Q569.9 195.0 569.9 199.0V207.0Q569.9 211.0 565.9 211.0H150.0Z"><title>Swift: 8 / 10</title></path><text class="value" x="575.9" y="208">8 / 10</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H565.9Q569.9 225.0 569.9 229.0V237.0Q569.9 241.0 565.9 241.0H150.0Z"><title>Nim: 8 / 10</title></path><text class="value" x="575.9" y="238">8 / 10</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H513.4Q517.4 255.0 517.4 259.0V267.0Q517.4 271.0 513.4 271.0H150.0Z"><title>Spinel: 7 / 10</title></path><text class="value" x="523.4" y="268">7 / 10</text></svg>
231</div>
232
233
234<h2>The apps</h2>
235
236<div class="card">
237<h3>Go</h3>
238<dl><dt>Live app</dt><dd><a href="https://todo-go-2.bfj.oncarlos.com">https://todo-go-2.bfj.oncarlos.com</a></dd><dt>Source</dt><dd><a href="https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/go">https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/go</a></dd><dt>Stack</dt><dd>Go&#39;s standard web server and templates, with SQLite through modernc.org/sqlite (pure Go).</dd><dt>Readability</dt><dd>Strongest: comments consistently explain why (migration policy, single-writer pool, Origin check, focusout during swap), and the package docs state the security model up front. Request flow is short: route in New -&gt; itemAction -&gt; action -&gt; Store method -&gt; render &#34;list&#34;. Error path is explicit via ErrNotFound and fail, with buffered rendering for clean 500s. Weakest: action/itemAction wrappers with inline closures and two differing callback signatures add a layer to step through; `one`, `w`/`r` fields and `bumpMarker` are terse or odd. loadStatic ignores fs.Sub and WalkDir errors, and the view struct mixes filter state, counts and Version. app.js swap/draft restoration is dense.</dd><dt>Left after review</dt><dd><ul><li>[spec] [apps/go/main.go:114](/home/paulca/amadan.net/carlos/todomvc-bakeoff/.worktrees/go/apps/go/main.go:114): `checkLoopback` accepts any loopback address, including `127.0.0.2` and `::1`. The brief explicitly requires binding only to `127.0.0.1`. These alternative `--listen` addresses pass validation and start a listener; restrict validation to the required address.</li></ul></dd>
239</dl>
240</div>
241
242<div class="card">
243<h3>Go &#43; Rastrillo</h3>
244<dl><dt>Live app</dt><dd><a href="https://todo-go-rastrillo-2.bfj.oncarlos.com">https://todo-go-rastrillo-2.bfj.oncarlos.com</a></dd><dt>Source</dt><dd><a href="https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/go-rastrillo">https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/go-rastrillo</a></dd><dt>Stack</dt><dd>Rastrillo 0.28, the CARLOS web framework: chi for routing and GORM over SQLite.</dd><dt>Readability</dt><dd>Strongest: a toggle is traceable in seconds — Router lists every route, owned() is the single ownership seam, afterItemWrite maps error/no-row/success to 500/404/done, and done() explains the 303-vs-fragment split. Comments consistently explain why (Resolve not Run, why not csrf.Protect, parseForm&#39;s 1 MiB cap, toggleAll&#39;s single-statement race note). Weakest: renderStatus swallows template errors with a bare http.Error and no log or ref, unlike fail(); several `uid, _ := sessions.UserID(r)` rely on an invariant stated only in visitor.go; repeated &#39;the contract&#39; references assume context the reader lacks; done() is a vague name for &#39;respond after success&#39;. app.go mixes wiring with parseForm middleware.</dd><dt>Left after review</dt><dd><ul><li>[correctness] `apps/go-rastrillo/internal/todo/static/app.js:42` — Every action response replaces the entire app, preserving only the new-todo input. With a request pending, double-click another todo and start editing: when the earlier response arrives, the editor disappears and its unsaved text is lost. Preserve the active editor’s value and focus across replacement, or defer replacement until editing finishes.</li></ul></dd>
245</dl>
246</div>
247
248<div class="card">
249<h3>Rust</h3>
250<dl><dt>Live app</dt><dd><a href="https://todo-rust-2.bfj.oncarlos.com">https://todo-rust-2.bfj.oncarlos.com</a></dd><dt>Source</dt><dd><a href="https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/rust">https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/rust</a></dd><dt>Stack</dt><dd>axum on tokio, Maud for HTML, and rusqlite with SQLite built in.</dd><dt>Readability</dt><dd>Strongest: the `act` helper gives every action one pipeline (resolve visitor, transaction, 404/303/fragment), so a request is easy to follow from route to db to markup; comments explain real why (body-read before 403 behind the edge, mutex over a pool, append-only migrations, editing li preservation). db.rs is one query per function with scoped list ids. Weakest: handler params are single letters (s, h, q, f) and the `found`/`Outcome` indirection adds a hop; `swap` in app.js is dense DOM surgery that needs careful reading; errors are only rusqlite wrapped in AppError and logged with eprintln, with a few `expect`s standing in for proper failure paths.</dd><dt>Left after review</dt><dd><ul><li>[correctness] [apps/rust/static/app.js:10](/home/paulca/amadan.net/carlos/todomvc-bakeoff/.worktrees/rust/apps/rust/static/app.js:10): Filter navigation can discard pending changes. Requests wait in a promise queue, but filter links navigate immediately. With a toggle request pending, edit another todo and click a filter: blur queues the save, then navigation destroys the queue before that save reaches the server. Wait for pending actions before navigating.</li><li>[spec] [apps/rust/src/main.rs:45](/home/paulca/amadan.net/carlos/todomvc-bakeoff/.worktrees/rust/apps/rust/src/main.rs:45): `--listen` accepts every loopback address, including `::1` and `127.0.0.2`. The brief explicitly restricts binding to `127.0.0.1`. Validate that exact address.</li></ul></dd>
251</dl>
252</div>
253
254<div class="card">
255<h3>Zig</h3>
256<dl><dt>Live app</dt><dd><a href="https://todo-zig-2.bfj.oncarlos.com">https://todo-zig-2.bfj.oncarlos.com</a></dd><dt>Source</dt><dd><a href="https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/zig">https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/zig</a></dd><dt>Stack</dt><dd>Zig&#39;s standard-library HTTP server, with SQLite 3.54 compiled in.</dd><dt>Readability</dt><dd>Strongest: a request is trivially traceable (app.js form → handle → post → itemAction → Store.toggle → page/303), helped by the Response/Visitor/Form structs and tight module split. Comments earn their place: why headers are copied before reading the body, why keep-alive drops after an oversized body, why a single mutexed SQLite connection. Tests double as documentation. Weakest: errors in db.zig collapse to one opaque error.Sqlite with logging as the only detail; readerExpectContinue&#39;s failure is remapped to WriteFailed, hiding the cause; post() mixes routing and handling in one long if-chain, and get() parses the query inline. Minor: static() and run() names are terse.</dd>
257</dl>
258</div>
259
260<div class="card">
261<h3>OCaml</h3>
262<dl><dt>Live app</dt><dd><a href="https://todo-ocaml-2.bfj.oncarlos.com">https://todo-ocaml-2.bfj.oncarlos.com</a></dd><dt>Source</dt><dd><a href="https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/ocaml">https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/ocaml</a></dd><dt>Stack</dt><dd>OCaml 5 with Eio and cohttp-eio, and sqlite3-ocaml over SQLite 3.54.</dd><dt>Readability</dt><dd>Strongest: a toggle is trivially traceable (handle → action_of_path → post → perform → Store.toggle → View.fragment or 303), helped by App being server-independent and each module having one clear job. Comments are nearly all &#39;why&#39; (Budget rationale, cookie age, migration rule, CSP hash, JS render invariants) with no noise. Weakest: handle&#39;s `filter p &lt;&gt; None ... Option.get (filter p)` double evaluation is clunky and hides intent; Store errors surface only as failwith exceptions caught by run_server&#39;s generic logger, and user_version&#39;s exec result is ignored; main.ml&#39;s Budget/connection plumbing and nested try blocks take effort to follow; a few terse names (change, shows, done_, go) need a moment.</dd><dt>Left after review</dt><dd><ul><li>[correctness] `apps/ocaml/static/app.js:14` — Filter navigation can discard queued edits. With a toggle request pending, edit another item and click “Active”: blur queues the save, but the ordinary filter link immediately unloads the page before that save runs. The changed title is lost. Wait for pending mutations before navigating between filters.</li></ul></dd>
263</dl>
264</div>
265
266<div class="card">
267<h3>Haskell</h3>
268<dl><dt>Live app</dt><dd><a href="https://todo-haskell-2.bfj.oncarlos.com">https://todo-haskell-2.bfj.oncarlos.com</a></dd><dt>Source</dt><dd><a href="https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/haskell">https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/haskell</a></dd><dt>Stack</dt><dd>warp and WAI, Lucid for HTML, and sqlite-simple.</dd><dt>Readability</dt><dd>Strongest: tracing a request is effortless. The toggle route goes from the pathInfo case through the `post` helper to Db.toggleTodo and back to Html.fragment, with the Bool-means-found contract stated at each end. Comments consistently explain why (WAL via query_, getrandom over /dev, single connection, the `swapping` flag) without restating code. Weakest: error handling is mostly implicit. Database exceptions reach Warp&#39;s default 500 with no logging; migrate silently assumes version 0 on an odd PRAGMA result; the getrandom loop retries on any negative result, not only EINTR; app.js hides every failure behind location.reload(). Minor: `app`&#39;s where-block is long and the multiway-if in `post` is dense; `common`, `with`, `f`, `v` are terse names.</dd>
269</dl>
270</div>
271
272<div class="card">
273<h3>Swift</h3>
274<dl><dt>Live app</dt><dd><a href="https://todo-swift-2.bfj.oncarlos.com">https://todo-swift-2.bfj.oncarlos.com</a></dd><dt>Source</dt><dd><a href="https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/swift">https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/swift</a></dd><dt>Stack</dt><dd>Hummingbird 2 on SwiftNIO, with SQLiteNIO.</dd><dt>Readability</dt><dd>Strongest: traceability and comments. Toggling an item reads straight through: route in Routes.register, the shared `action` helper, Store.toggle&#39;s single RETURNING statement, then Page.body or a 303. Doc comments explain real decisions (one SQLite connection serialising writes, append-only migrations, 400-day cookie, nojs controls, the JS action queue) with almost no noise. Weakest: a few quiet fallbacks. Store.todos maps missing columns to 0/&#34;&#34;/false instead of failing; app.js turns every failed action into a silent page reload; Assets is referenced but its definition (generated) isn&#39;t here, and Static.swift is an odd home for one helper. Helper names `action` and `changed` are generic, and the two trimmingWhitespace extensions live in unrelated files.</dd><dt>Left after review</dt><dd><ul><li>[correctness] [apps/swift/static/app.js:32](/home/paulca/amadan.net/carlos/todomvc-bakeoff/.worktrees/swift/apps/swift/static/app.js:32): Every action response removes the entire list, including any active editor. Toggle one item, then start editing another before the response arrives: the replacement discards the draft and focus without saving. Serializing requests does not protect unsent edits. Preserve active editor contents and focus across updates, or defer replacement until editing finishes.</li></ul></dd>
275</dl>
276</div>
277
278<div class="card">
279<h3>Nim</h3>
280<dl><dt>Live app</dt><dd><a href="https://todo-nim-2.bfj.oncarlos.com">https://todo-nim-2.bfj.oncarlos.com</a></dd><dt>Source</dt><dd><a href="https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/nim">https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/nim</a></dd><dt>Stack</dt><dd>Nim&#39;s standard-library async HTTP server (a patched copy, to serve a Unix socket and cap request bodies), with SQLite through db_connector.</dd><dt>Readability</dt><dd>Strongest: comments explain non-obvious decisions (maxBody sizing, trimTitle UTF-8 defect, chunked-body fix flagged in the vendored server, JS request queue and rendering flag) without noise; store.nim&#39;s prepared-statement enum plus bound/exec/count keeps SQL in one readable table; app.nim is cleanly sectioned. Weakest: `action` hand-parses path segments with len checks and a `found` flag, so the per-item verbs are harder to scan than a dispatch table would be; the `var r: Reply` side-channel for Set-Cookie headers in `listFor` is indirect; many `discard reset/finalize/close` and a stray `# make bump` comment sitting above the wrong constant. The vendored httpserver.nim is large but well-marked.</dd><dt>Left after review</dt><dd><ul><li>[correctness] `apps/nim/src/store.nim:181` — `$column_text(st, 1)` reads a NUL-terminated C string, although titles are stored with an explicit byte length. Posting `title=before%00after` therefore displays only `before`; saving that edit permanently loses the suffix. Read the value using `column_bytes` so accepted Unicode titles survive retrieval intact.</li></ul></dd>
281</dl>
282</div>
283
284<div class="card">
285<h3>Spinel</h3>
286<dl><dt>Live app</dt><dd><a href="https://todo-spinel-4.bfj.oncarlos.com">https://todo-spinel-4.bfj.oncarlos.com</a></dd><dt>Source</dt><dd><a href="https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/spinel">https://amadan.net/carlos/todomvc-bakeoff?ref=main&amp;path=apps/spinel</a></dd><dt>Stack</dt><dd>tep, a Sinatra-style layer, compiled to a native program by Spinel, with SQLite 3.50 compiled in.</dd><dt>Readability</dt><dd>Strongest: traceability. Each route reads top to bottom: origin check, visitor, path_id, todo_exists, one inline SQL statement, finish_post, render_lists. Comments explain the non-obvious (Spinel subset, single-cursor shim, token-issuance check, BUILD_NOTE). Weakest: errors. Write paths (run_sql, add_todo, rename_todo, record_token) discard DB.step&#39;s result, so a failed INSERT or UPDATE silently returns a stale fragment; the JS catch-all reload hides failures too. Lesser points: parallel arrays with a `done` field of ints, generic run_sql with a magic `id &gt; 0` bind rule, layout/page/path_id filed under the Actions divider, and unexplained constants (18 and 19 character limits).</dd><dt>Left after review</dt><dd><ul><li>[correctness] `apps/spinel/app.rb:475` and `:527` — `strip` only removes ASCII whitespace. A title containing only U&#43;00A0 or U&#43;2003 creates a blank-looking todo, and editing to that value does not delete it. Apply Unicode whitespace trimming before the empty-title check.</li><li>[correctness] `apps/spinel/patches/2-tep-bakeoff.patch:330` — URL decoding turns `%00` into a NUL inside a C string, which is then truncated when copied into Ruby. Posting `title=before%00after` silently stores `before`; editing with `title=%00after` deletes the todo. Preserve decoded string lengths so input cannot silently become a different title or action.</li><li>[spec] `apps/spinel/Makefile:130` — `clean-deps` deletes only the local SQLite and tep artifacts. The arm64 build still links precompiled OpenSSL, zlib and zstd libraries from the shared toolchain root (`scripts/arm64-cc:21`), so the next build does not compile every third-party library from scratch as required. Build those dependencies into the app’s own cache and include them in `clean-deps`.</li></ul></dd><dt>Note</dt><dd>Its server process exited 16 times during the load test, and Carloku started it again each time. Requests that arrived meanwhile got an error.</dd>
287</dl>
288</div>
289
290
291<h2>How we measured</h2>
292<ul><li><strong>The same starting point.</strong> Every builder got the same brief, the same rules for routes and forms, TodoMVC&#39;s own page and styles, and the same tests. It chose its own libraries.<li><strong>The same tests.</strong> TodoMVC&#39;s 29 standard tests, run with JavaScript on and again with it off, plus checks for unsafe input, foreign characters, very long titles, one visitor reaching another&#39;s list, and a screenshot comparison with TodoMVC&#39;s own page.<li><strong>One build each.</strong> Opus 5.5 built each app in a single unattended session, with a four-hour limit.<li><strong>One round of review.</strong> Astra reviewed each app for bugs, missed requirements and security problems, and the same builder fixed what it found. A second round was allowed only for security problems; Zig and Nim needed one.<li><strong>Readability.</strong> Fable scored each app&#39;s code out of 10 three times, without knowing which app it was. We show the median.<li><strong>Speed.</strong> Measured from one test machine over the internet, one app at a time, each on a fresh copy of the app with an empty database. Time to first byte is the median of 30 page loads. The load test doubles the number of simultaneous connections from 1 upwards, 10 seconds per step, first loading a 50-item list, then ticking a to-do on and off, then loading the list again.<li><strong>Waking up.</strong> Carloku puts an app to sleep after 15 quiet minutes. We timed the first request after each app fell asleep, three times.<li><strong>Builds.</strong> Every app is built for the 64-bit ARM servers Carloku runs on. A cold build compiles every library from scratch, once per app. A one-line change rebuilds after adding one line to the code that serves the page, with everything else already compiled; it&#39;s the median of three.<li><strong>Cost.</strong> What each build and its fixes cost at list price, from the builders&#39; own session records.</ul>
293
294<h2>What this does and doesn&#39;t show</h2>
295<ul><li><strong>The network is in every speed number.</strong> Requests travelled from our test machine to Carloku over the internet, and the base delay swung between about 17 and 37 milliseconds during the runs. Small differences in first-byte times mean little.<li><strong>Carloku caps traffic at the edge.</strong> When a request reaches an edge server that isn&#39;t the one running the app, Carloku lets at most 64 such requests be in flight at once and turns the rest away with a &#34;try again shortly&#34; response. Above 64 connections, the load test partly measures that limit, and whether it applied depended on how our traffic was routed at the time.<li><strong>Some apps failed outright at very high load.</strong> At 256 or 512 connections, Swift, Nim and Spinel stopped answering some requests, which Carloku&#39;s edge reported as errors (502) rather than turning them away. The charts mark where that started.<li><strong>Every app ran on Carloku&#39;s default size.</strong> Throughput limits reflect that size, not what each language could do on a bigger server.<li><strong>One build per language.</strong> Another session with the same model could produce a different app, faster or slower.<li><strong>Readability scores cluster.</strong> Most apps scored 8 out of 10. Treat the score as a rough signal.<li><strong>Three apps were built under emulation.</strong> OCaml, Haskell and Spinel had no straightforward way to compile for ARM from our x86 machine, so they were built inside an emulated ARM system. Their build times are much longer for that reason, and don&#39;t compare with the others.<li><strong>Spinel restarted under heavy load.</strong> Its server process exited during the load test and Carloku started it again each time.<li><strong>Mojo was dropped.</strong> Mojo can&#39;t produce a single self-contained program file, which is what Carloku runs, so we replaced it with Nim. The platform question is filed as <a href="https://amadan.net/carlos/platform/-/discussion/360">an idea</a>.<li><strong>Fresh copies for measuring.</strong> To give every app an empty database, each was measured on a new copy of itself, which is the one the live links point to.</ul>
296
297</main>
298</body>
299</html>
300
301