Skip to content

Rosetta Stone

Michael L. McKnight edited this page Dec 5, 2026 · 1 revision

Rosetta Stone

Canonical source: docs/languages/scrawl/ROSETTA_STONE.md. Readable-form choices: DECISIONS.md. Language background: SCRAWL.

The Rosetta Stone in this repository lines up every one of SCRAWL's 84 opcodes three ways, plus the Darmok (idiom) form. This page explains how to read it. The full tables stay in the doc, so they are not duplicated here.

How to read it

Every row is one instruction, written left to right:

Column What it is Who reads it
1. ROSETTA text Plain readable lines such as yield R1. You. Start here.
2. Mnemonic The instruction's short name (X_YIELD). Programs that build SCRAWL (the Rust and Python APIs).
3. SYNAPSE bytes The compact bytes that really cross the wire (22 01 01 01). The receiving machine.

One example, read left to right. The row for yield R1:

  • yield R1 says "hand the value in register 1 back as a result".
  • X_YIELD is the same instruction's name: X_ marks the Execution family, YIELD is the action.
  • 22 01 01 01 is the same instruction as bytes: 22 is the opcode for X_YIELD, 01 says "one operand follows", and 01 01 says "an integer, value 1" (register 1).

A worked program: "Heartbeat at Cafe"

ROSETTA text Mnemonic SYNAPSE bytes (hex)
CR0 = identity.derive(seed=0xCAFE, depth=16) I_DERIVE 50 03 01 00 01 fe 95 03 01 10
R1 = identity.verify(CR0, R0) I_VERIFY 51 03 01 00 01 00 01 01
yield R1 X_YIELD 22 01 01 01
halt X_HALT 21 00

That program is also examples/scrawl/hello.scrawl (with labels around the verify result) and, as one Darmok line, examples/scrawl/darmok.scrawl.

Canonical text forms

On December 4, 2026, ML Innovations chose two readable forms:

  • consensus.vote(proposal=1, agent=0, vote=APPROVE) — every field named, any order; maps to the VM layout (proposal, agent, vote)
  • lex.call("Heartbeat at Cafe") or lex.call(id=1) — the Darmok line, mapped to LEX_CALL (60)

The ROSETTA compiler in the SCRAWL repository (v1.3 and later; v1.4 in SCRAWL v1.4.0) reads both, and so does the copy built into Code Cleaner (code-cleaner scrawl compile). ROSETTA v1.4 also adds labels (name: / goto name) and a raw form MNEMONIC(operands) (for example T_EINSUM(0, 1)). Reference: docs/ROSETTA.md.

The Darmok form (SCRAWL Idioms 1.0)

A short named phrase stands for a whole instruction sequence and travels as one LEX_CALL. Agents that share the lexicon can send the phrase instead of the expanded instructions.

Phrase id Stands for
lex.call("Heartbeat at Cafe") 1 derive a baseline, verify it, yield the result, halt
lex.call("Named Heartbeat") 2 the same, plus a fingerprint
lex.call("The Round at Two") 3 a two-agent propose, quorum, vote, vote, commit round

lex.call(id=1) is the same as the phrase. Parameters can be named, for example lex.call("Named Heartbeat", seed=0xBEEF, depth=8). "Silent Retransmit" (id 4) is host-level and cannot be sent as LEX_CALL; Code Cleaner reports it. code-cleaner analyze --style-rules can tell you when a sequence you wrote matches an idiom (scrawl-idiom-available).

The Darmok section of the full stone has the bytes for each phrase. Labels and the raw form covers MNEMONIC(operands).

Open the full Rosetta Stone for all 84 opcodes.

Clone this wiki locally