Updated October 31, 2026 · Implementation and evidence baseline · How a conversion is done · The examples in the repository
Ribbit conversions

Existing contracts. Different machinery.

Each conversion takes a real system somebody else designed, keeps everything its clients can see, and is judged by an oracle: the incumbent's own test suite where it has one, differential tests against the original where it doesn't. Then the machinery inside is thrown away and the same contract is built on Network Shared RAM. The question each one asks is how much of the original architecture the problem actually required.

At a glance.

Time is from start to a working conversion against the incumbent's oracle. Code is counted as statements (NLOC) with lizard unless noted. The shared Ribbit platform is counted separately, never hidden.

SystemContract keptOracleTimeWhere it stands
ChatNew, not a conversionIts own testsA couple of hoursNo server. Each line is a tuple in the recipient's buffer, read with a held read.
Redis 7.2.11RESP; any stock client worksRedis's own Tcl suite4 daysFourth design, one keyspace (Oct 19). Parity with stock across machines in about a tenth of the server code.
PyTorch distributedtorch.distributed / DDPSame-campaign Gloo controls5 daysTrained across Seattle and New York. Commercial edition.
lispers.net 0.643The LISP wire protocol78 differential tests against the originalAbout 6 daysReport complete. 0 failures; 71% fewer lines.
Sourri chatbot APIThe answer shape, prompts and image codeA 40-check oracle3 days (Sept 19–21)Delivered. The developer built and ran it unassisted.
rlite (RINA)rina/api.hrlite's own 30 integration testsNot recorded30/30. Became FD&F's RINA layer.
Mosquitto 2.1.2 (MQTT)The MQTT wire and config fileMosquitto's own suiteStarted Oct 13In progress. 272/276, the same as stock.
MeshtasticThe client API (ToRadio / FromRadio protobufs)Stock meshtasticd and Meshtastic's existing testsProposed Oct 30Phases 0 and 1 done: the stock baseline, and the mechanical conversion. Phase 2, the library and the side-by-side, next. The proposal.
Redis on Ribbit

One keyspace, no copies.

Redis 7.2.11, the last BSD-licensed release. Replication, cluster, Sentinel and the locking are not applicable by construction: the keyspace lives once, in the memory, and the fronts hold nothing.

The contract

Redis's own suite, ten core files, stock against a front: incr 31/32, string 79/82, hash 70/73, set 114/119, list 261/274, zset 316/320, keyspace 56/56, stream 60/75, stream-cgroups 56/66, multi 35/63. Every red is classified in the supported-contract register, not hidden. Concurrency 39/39 from three fronts; two fronts 15/15.

The code

The converted Redis is 7,756 NLOC (CCN 4,546). Stock Redis 7.2.11 src/ is 95,870 NLOC (CCN 24,662); without redis-cli and redis-benchmark, the server alone is 85,569. The shared Ribbit platform is counted separately.

Across machines on October 19, with the RAM host on a droplet and a Raspberry Pi in Seattle as the node, the converted Redis ran at 0.99 to 1.06 of stock at the median of three, pipelined and unpipelined. One round with a New York node added ran 0.96 to 1.20 per node. Both arms are bound by the round trip. Performance parity in about a tenth of the server code.

This is the fourth design. The first ran everything in one process; it was fast and it was not the product. The second gave each front a read cache and needed invalidation feeds to keep the caches true. The third gave every box a copy of the keyspace and needed intent rings, heartbeats, pacing, gap checks and a snapshot join to keep the copies equal. Each was measured and thrown out. The second copy is the bug.

Earlier records

The first, one-process design's Pi 5 throughput record reports Ribbit SET 268k/s on one core and 704k/s on three; GET 399k/s and 858k/s; LPUSH 424k/s and 1.03M/s. Those are Ribbit rates for that million-key workload, not pairwise speed ratios, and that design was set aside because it could not leave the box.

A later design scaled by changing state instead of moving ownership:

TestStock RedisRibbit frontInterpretation
RT7: 100k keys, 3→4 primaries24,936 keys moved; 23.3 sNo keys moved; 0.067 sA capacity/topology-change experiment, not per-command latency.
RT3: replica join, delay 0, 10k keys0.019 s0.057 sStock was faster at this size.
RT3: same, 1M keys2.1 s; 23.9 MB copy0.059 s; about 2 KBThe tested front changes shared configuration instead of copying the key population.

Reader errors were zero in both RT7 arms. These values are preserved as reported experimental records; they have not been repeated on the one-keyspace design.

lispers.net

The protocol inventor's own implementation as the oracle.

lispers.net 0.643, Dino Farinacci's map-server and map-resolver: a textbook shared-state problem, and the reference implementation by the protocol's inventor, not a strawman. The wire is kept. The IPC between processes, the in-process state and the 60-second sweep timer are gone. Registration and resolution truth moved into owned state, including multi-record Map-Register with all-or-nothing behavior, registration refresh, prefix lookup and freshness-based ETR liveness.

Measured 2026-09-28lispers.net 0.643Ribbit-LISP
Behaviour, 78 tests14 failures0 failures; 53 byte-for-byte parity
Lookups/s, 64 clients (p50)484 (130 ms)20,407 (2.9 ms)
Lookups/s at 10,000 registrations, 16 clients939,123
CPU per lookup, 1 → 10,000 registrations1.6 → 11.4 ms44 → 47 µs
Registers/s, 1 / 64 clients357 / 71839 / 1,565
Application code, matched audit6,463 NLOC, CCN 2,2371,886 NLOC, CCN 1,175
With the whole FrogNet platform charged to it 4,972 NLOC, CCN 3,283

Load came from a Raspberry Pi 5, both systems ran on one host and Ribbit's memory was on a separate droplet. A single registering client is slower; 64 are faster. Charged with the entire platform, Ribbit-LISP has fewer lines but about 47% more total complexity: the platform serves every FrogNet application, and it is counted whole anyway.

A second implementer picked the model up cold on this conversion. Where it went wrong fed the best-practices document, which now records what two cold implementers got wrong across nine conversions.

PyTorch

DDP above, no ranks below.

PyTorch above the distributed backend remained PyTorch. Ranks, rendezvous, process groups and barriers left the application surface. Psychedelic FrogTorch has trained across heterogeneous machines in Seattle and New York.

Same-campaign ratios against Gloo ran 1.03× to 1.95×. On the four-worker fault fixture, three of three survivors continued after a worker died, against none of three for DDP; that is a result on that fixture, not a general claim. Conservative shared-state arms preserve ordinary DDP agreement; fresh-only and every-k arms deliberately change consumption and are kept separate. Read the campaign data and controls.

Sourri chatbot API

A Node, Express and MongoDB backend, without the backend.

The contract was kept; the prompts and image code were copied verbatim. Everything else was built greenfield on the memory.

4,769 → 1,045

Comment-stripped source lines on the chat path, original against new. Not lizard: this one was counted by line.

22 → 0

npm dependencies.

40 / 40

Oracle checks, on both memories and through the simulator. Delivered September 21; Sourri's developer built and ran it without help.

On one sandbox core: 800 concurrent conversations, 8,000 dependent turns, none lost. At 1,200, the turns arrived late but none was lost. An architecture was removed and not paid for in performance.

rlite

RINA, with its state in the region.

rlite keeps its API and its own 30 integration tests, and still passes all 30 with flow data going through the RAM manager. The work became FD&F's RINA layer.

Earlier builds had a member-to-member data path. On it, a triangle with an intermediate member killed healed in about 40 to 43 ms with none of 100 PDUs lost on the reliable flow and one in flight on the unreliable flow, and relayed throughput doubled (about 635 to 1,243 Mbps, 20,000 of 20,000 delivered) when credit moved from messages to state. That path was ruled out on October 7 and later removed, so those numbers describe it, not the current build. FD&F.

MQTT, in progress

Mosquitto, with its broker state in the memory.

Eclipse Mosquitto 2.1.2. The wire, the config file and Mosquitto's own suite are kept. Subscriptions, retained messages, client claims and counts moved into a lock-free region.

Mosquitto's suite: 272/276, identical to stock. The four failures need IPv6 and fail on stock the same way. With two threads, 178/276: the rest are plugins and persistence true, whose ABI assumes one broker thread, refused at start by design.

Flat out, Oct 19, msgs/s (lost)StockRibbit
QoS 127,485 (1,728,573)101,483 (165,344)
QoS 0156,130 (4,587,081)131,794 (0)
QoS 1, MQTT 523,624 (1,596,276)29,521 (0)

Two boxes as network namespaces in FrogNet's simulator, on one 2-core machine, link not shaped. Stock's throughput is counted with its losses beside it. At 2,000 messages a second, Ribbit used about 3.9 times stock's CPU. This one is not a rewrite like Redis: the front keeps most of Mosquitto, so the code is about 9% larger, not smaller. Its first design was a lesson in what not to do, and it is written up as how it goes wrong.

Meshtastic, in progress

The API is the contract; the mesh plumbing goes.

Meshtastic's defined client API on FrogNet, transport-agnostic, built on Ribbit shared RAM and held-read scheduling. Everything behind the API is greenfield.

Meshtastic has no single conformance suite like Redis's, so stock meshtasticd arbitrates more here than in earlier conversions. The baseline is done: stock meshtasticd 2.8.2 built and run natively; the Python CLI tests pass 40/40 and 7/7 against it, the firmware's native C++ suites 88/88, and the RepeaterTastic vectors recaptured from stock 12/12. No AI-written tests serve as the arbiter.

The mechanical conversion is done too: stock firmware with its plumbing moved onto the memory one step at a time, the incumbent's suites run after each. That is scaffolding to learn the incumbent, not the product. The library is built next, between the contract edges, from the truth table: the client API with byte-exact framing, each node the only writer of its own cells, no node database, and no packet path between nodes.

Both implementations then ride one shared simulated LoRa channel, multi-machine on FrogNet's simulator, and be compared on functionality, traffic, latency, capacity, source size and complexity. Each claimed saving is a hypothesis until measured. The full proposal.

What the conversions taught.

Different domains, the same handful of tools.

The writer's name in the address

Chat writes each sender's line under the sender. LISP registrations are one per registering router, unioned by readers. Nobody arbitrates, because nobody contends.

Held views

Read once, hold past the newest id, publish immutable snapshots. The lispers.net resolver holds the registration table. Sourri's history became a ring of the last N turns.

Claims decided by write order

Redis blocked pops take claim tickets, lowest served. MQTT session takeover swaps the claim; the newer claim wins.

Derive, don't store

Counts, liveness and expiry are computed when asked. MQTT's global limits are per-front rows the reader sums. No reaper thread.

The second copy is the bug

Caches, mirrors and replicas each needed a layer to keep them true. Removing the copy removed the layer: in Redis, intent rings, heartbeats, snapshot joins and invalidation feeds.

Pick a hard target

Comcast's Redirector was examined and set aside: too simple to prove anything. A conversion is worth doing when the original is real, mature and somebody else's.

The implementations get smaller because work and choreography are removed. That is a reason to investigate another system, not a promise that any rewrite will be smaller or faster: MQTT is the counterexample on this page.

The supplied JavaScript programming guide carries the same rules into a new binding. Its examples include latest/distinct state, held queries, claims, a foreign source and restart. Read the rules before making the conversion.