interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / docs / polyglot / OMEGA_LANGUAGE_EVIDENCE_LEDGER.md

185 lines · 12336 bytes Raw Blame History Source

Omega language evidence ledger (POLYGLOT-0)

Lane B3 (Mojo) removed on 2026-10-15. Modular MAX and Mojo were dropped from AIEN, and the Mojo lane's source, build rules and test were deleted from this repo. Mojo text below is the original design record, kept unchanged; the Mojo receipts stay in evidence/.

What this is: for one exact operation (Omega-X, y = W.x with ternary W, int8 x, int32 y; contract spec/polyglot-0.md section 1), which language and weight representation was fastest on each workload shape, by how much, and where the difference is too small to call. Every number below comes from the receipts of one timed run. Nothing here generalises beyond that run, that operation, and that core.

Run

itemvalue
run id20260929T190337Z-2e2238f74ba3
source commit2e2238f74ba3b8681606ce0fb08f8feade5dec6d (branch feat/polyglot-0), 0 dirty files
contract digest4b9034ae795cbcc1bca6739080fce8e83e346b9c4378ce2f320f5228b90d46b1
receipts72 (18 candidates x 4 shapes), 216 cells (x 3 sparsities), all gate_eligible, not smoke
corecpu 5, Cortex-X925 (midr 0xd85), picked as the most idle X925 (100% idle over 0.3 s)
clockgovernor performance, requested 3.90 GHz at start, end and at every cell start; effective clock measured separately right after the run with perf stat on cpu 5: 5,410,961,821 cycles in 1.388 s = 3.90 GHz (no X925 clock cap)
loadload average 0.49 before, 0.60 after; no other build/bench/test process, no GPU compute apps; ~/workspace/.spark-quiet held for the run and removed after
samplesN = 21 per cell, round-robin across candidates; shortest kept sample 1.26 ms; 0 short samples kept; 94 samples retaken because scheduler run delay grew; 0 contaminated
correctness in run21,123 checksum checks, 0 failures (full verifier: make test-polyglot, see review)
timed wall14.8 s; peak RSS 227,192 KiB
explainermake polyglot-explain POLYGLOT_RUN=20260929T190337Z-2e2238f74ba3, two runs byte-identical; copy in evidence/POLYGLOT/polyglot_explain_20260929T190337Z-2e2238f74ba3.txt

Decision rule (explainer, spec section 9 and review G-S7): the selected candidate is the lowest median among selectable candidates. It is CHOSEN only if the runner-up is slower by more than the band max(3 x larger relative MAD, 5%); otherwise TIE. In this run 3 x relative MAD never exceeded 1.63%, so the band was 5% in every cell. Toolchain-only candidates (Omega's own encoder, spec section 4) and weak baselines (R1_plain) are measured but not selectable.

Results per shape

Medians in ns per call on one X925 core at 3.90 GHz. "Best C" and "best asm" are the fastest candidate of that language in the cell.

S1: m=1, n=4096 (call overhead)

sparsityselectedmedianrunner-upmargindecisionbest Mojo
0.00asm_sdot (asm)36.0R1_sdot@O3 (C) 36.8+2.1%TIEMJ1_sdot 41.1
0.33asm_sdot (asm)35.9R1_sdot@O3 (C) 36.7+2.3%TIEMJ1_sdot 40.9
0.66R1_sdot@O3 (C)36.8asm_sdot (asm) 37.0+0.7%TIEMJ1_sdot 41.1

S2: m=256, n=1024 (cache-resident, 256 KiB int8 in L2)

sparsityselectedmedianrunner-upmargindecisionbest Mojo
0.00asm_sdot (asm)2187.2R1_sdot_il@O3 (C) 2191.2+0.2%TIEMJ1_sdot 2224.6 (+1.7%)
0.33R1_sdot_il (C)2191.2R1_sdot_il@O3 (C) 2191.8+0.0%TIEMJ1_sdot 2235.5 (+2.0%)
0.66R1_sdot_il (C)2191.3R1_sdot_il@O3 (C) 2191.9+0.0%TIEMJ1_sdot 2228.2 (+1.7%)

S3: m=4096, n=4096 (memory bandwidth)

sparsityselectedmedianrunner-upmargindecisionbest C
0.00MJ2c_crumb (Mojo)139,187asm_crumb (asm) 160,802+15.5%CHOSENR2c_crumb@O3 164,564 (+18.2%)
0.33MJ2c_crumb (Mojo)138,958asm_crumb (asm) 161,368+16.1%CHOSENR2c_crumb@O3 165,828 (+19.3%)
0.66MJ2c_crumb (Mojo)139,135R2c_crumb@O3 (C) 160,978+15.7%CHOSEN(runner-up); asm_crumb 161,732 (+16.2%)

S4: m=64, n=1024, 256 different x per packed W (compute-bound)

sparsityselectedmedianrunner-upmargindecisionbest C
0.00asm_sdot (asm)414.8MJ1_sdot (Mojo) 419.5+1.1%TIER1_smmla 420.4 (+1.4%)
0.33asm_sdot (asm)413.8MJ1_sdot (Mojo) 418.8+1.2%TIER1_smmla 420.4 (+1.6%)
0.66asm_sdot (asm)415.7MJ1_sdot (Mojo) 419.6+0.9%TIER1_smmla 420.3 (+1.1%)

Omega's own encoder (toolchain-only, not selectable)

The encoder candidates are machine code emitted at run time by Omega's own AArch64 encoder. Their gate is the byte comparison report (spec section 4), not speed; they are listed for comparison only.

Code size and build time

Code size = run + pack function symbols (or the candidate's named code parts: Mojo kernels behind the C adapter, encoder-emitted bytes plus C thunk and pack). Build time = min of 5 wall runs of the object's build command. For C and Mojo that object holds several realizations, so the time is shared, not per candidate. Source lines and unsafe surface are per source file, informational only.

candidatelanguagereprcode bytesbuild timebuild notesource lines (file)unsafe surface (file)
asm_sdotasmint81,1125.4 msgnu-as 2.42214163
asm_crumbasmcrumb21,2245.3 msgnu-as 2.42162113
enc_sdotOmega encoderint81,16040 usin-process emission8145
enc_crumbOmega encodercrumb21,27648 usin-process emission8145
MJ1_sdotMojoint82,036356 msmojo 1.0.0, shared object2500
MJ2c_crumbMojocrumb21,716356 msmojo 1.0.0, shared object2500
R1_sdot / @O3Cint81,792 / 1,792177 / 195 msgcc 13.3.0, shared object3180
R1_sdot_il / @O3Cint81,012 / 1,084177 / 195 msgcc 13.3.0, shared object3180
R1_smmla / @O3Cint81,412 / 2,112177 / 195 msgcc 13.3.0, shared object3180
R2c_crumb / @O3Ccrumb21,628 / 1,624197 / 228 msgcc 13.3.0, shared object3892
R2_bitplane / @O3Cbitplane2,224 / 2,872197 / 228 msgcc 13.3.0, shared object3892
R1_plain / @O3Cint8708 / 708177 / 195 msweak baseline3180

Code size spread among the winners and ties is small (1,012 to 2,036 bytes). Mojo's unsafe-surface count of 0 is what the rule (assembly lines + pointer casts in the file) measures; it does not mean the Mojo code has no raw pointer use.

Pack cost

Packing converts W into the candidate's layout once. The receipts give per-weight pack cost and the number of calls after which a faster kernel pays back its extra pack time against the cheapest-to-pack candidate (MJ1_sdot, about 0.07-0.08 ns per weight).

Independent statistics check (Grok)

Grok (grok -p, one shot) was given the per-cell top-four medians, MADs, mins, N and the decisions. Its view, with every figure it cited checked against the receipts:

What this run does not show

Confirmation run (2026-09-29, run 20260929T191231Z-071bfdbd76c7)

Grok asked for a second run before trusting the S3 margin. Same machine, same core, quiet flag up, 72 receipts, timed wall 14.8 s. Receipts are kept under evidence/POLYGLOT/confirm-20260929T191231Z-071bfdbd76c7/ (the bench writes fixed file names, so the confirmation copy is filed separately and the primary run's receipts stay unchanged).

S3 medians (ns), best four per sparsity:

sparsityMJ2c_crumbasm_crumbenc_crumbR2c_crumb@O3
0.00139262160404167166163588
0.33139479158946162982163122
0.66139441161312161990163292

The S3 winner is unchanged: the Mojo 2-bit kernel beats hand assembly by 14.0 to 15.7% and the best C by 17.1 to 17.5%. The qualified statement stands for S3 on one X925 core at 3.90 GHz. Known gap: the bench overwrites receipts by file name; immutable run-named receipt files are a follow-up.