Signed Provenance · Self-Checked rel="canonical" → https://blog.openie.dev/posts/rce-compile/ 🟢 Live on Medium ↗
← Syndication Studio 57-Entry Hub ↗ Chronicle Importer ↗ Canonical Blog Post ↗ Primary Paper → 1-Cmd Replicate ↗ Verification ↗ Glossary ↗ Raw .md X JSON 9:16 TikTok MP4

RCE Compile: A Proposed 7-Part Compiler Normal-Form Contract, Per-Machine Prelude Cuts, and De Bruijn Warm-Cache Bounds

Refutes a descriptive "Unified Compiler Rule" in favor of a proposed 7-part contract, separating Zen 5 (20.07x) vs Core i9 (15.44x) prelude cuts and up to 448.5x best-case warm De Bruijn cache hits (Linux RAPL reported_j).

Refutes a descriptive "Unified Compiler Rule" in favor of a proposed 7-part contract, separating Zen 5 (20.07x) vs Core i9 (15.44x) prelude cuts and up to 448.5x best-case warm De Bruijn cache hits (Linux RAPL reported_j).

Signed Provenance · Self-Checked (human_in_gate = false; automated build, benchmark, and proof-checking scripts ran without manual override — not externally peer-reviewed; see Verification & AI-Use Disclosure and Epistemic Glossary).

Canonical Post-Review Essay (rel="canonical"): https://blog.openie.dev/posts/rce-compile/

Primary Research Paper: https://research.openie.dev/papers/rce-compile/

1-Command Replication Kit: https://github.com/openIE-dev/openie-research-experiments/tree/main/replicate · Study Repository: https://github.com/openIE-dev/openie-research-experiments

Canonical Artifact ID: blake3:tv:d561a8e7e445f1878caa5144e08df2f7cbe006ff65dba485bc787c7361a7027a · Evidence Tags: [E] · [M] · [S] · Telemetry Class: reported_j


RCE Compile — 20.07x Zen 5 and 15.44x Core i9 prelude compile cuts and up to 448.5x best-case warm De Bruijn cache hit
RCE Compile — 20.07x Zen 5 and 15.44x Core i9 prelude compile cuts and up to 448.5x best-case warm De Bruijn cache hit

Proposed 7-part Compiler Form contract, per-machine Linux RAPL reported_j compile payback, and De Bruijn warm-cache vs. cold-build separation. Dedicated to the public domain under CC0-1.0.

Key Claims & Audited Scope ([T] / [E] / [M] / [S])

  1. [M/S · Proposed Normal-Form Contract, Not a principle of Nature] The primary paper explicitly refutes the hypothesis that existing compilers obey a single "Unified Compiler Rule," restating it as a proposed 7-part engineering contract (R, L, C, K, U, E, G) and disclosing in Appendix A that 38 of 55 audited external claims rested on [S]/[K] snippet checks (14 partly overstated, 4 contradicted, 17 not found).
  2. [E · Per-Machine Cold Prelude & Optimization Payback (reported_j)] Across 20 integer/fixed-point kernels × 15 compiler tiers (300/300 matching checksums), factoring RCE’s emitted Rust runtime into pre-compiled librce_rt.rlib cut median per-kernel rustc -O3 core reported_j 20.07x (56.29 J -> 2.81 J core, 896.93 J -> 27.05 J pkg, 24.58x faster, lowering payback vs. Node JS from 31,080 to 1,079 runs) on AMD Ryzen AI Max+ 395 (Zen 5, pinned CPU 0, co-tenant load on other cores noted), and replicated at 15.44x PP0 core (84.40 J -> 5.47 J, 104.56 J -> 6.85 J pkg = 15.26x) on an idle dedicated Intel Core i9-13900H (4.46 W idle pkg)—while -O2 to -O3 never paid back its extra compile joules on 20%–30% of kernels.
  3. [E · Warm De Bruijn Cache Hit (up to 448.5x) vs. Cold Build] Crediting N. G. de Bruijn (1972) for nameless positional variable indexing (v0 - v1 vs. v1 - v0), E5-Scale (245 base programs, 500 verified semantic mutants, 29,890 cross-program pairs) recorded 0 / 500 false hits (whereas naive identifier-stripping collided on 150 / 150 (100%) variable-swap bugs) and cut rebuild work up to 448.5x (1.166 J -> 2.60 mJ rustc -O3 core reported_j) and 167.8x (0.682 J -> 4.07 mJ clang -O3) strictly on warm cache hits over alpha-renamed single-file kernels (66.7%–69.2% rename hit rate; 1.0x on cold unseen builds).

Methods, Baselines, Sample Sizes (N) & Licensing Scope

From Refuted "principle" to Proposed Normal-Form Contract & Lineage

The manuscript opens by testing—and refuting—the claim that real compilers (gcc, clang, rustc, Go, GHC, XLA, CompCert) already satisfy a unified "Unified Compiler Rule" [E, S]. Instead, it defines a proposed 7-part Compiler Form contract (Representation R, Lowering L, Cost C, Checker K, Reuse U, Energy E, Gate G). Nameless positional variable indexing in R directly applies N. G. de Bruijn (1972) lambda-calculus indices and Maziarz et al. (PLDI 2021) alpha-equivalent IR hashing, sitting alongside incremental build systems such as ccache, Bazel, Adapton (Hammer et al., PLDI 2014), and Rust’s Salsa query engine [S].

Per-Machine Compile Payback (Zen 5 vs. Core i9-13900H) & Warm-Cache Scope

Limitations, IR Debug-Path Misses & Literature Snippet Audit

Energy & Telemetry Scope

All joule measurements are Regime-B Linux powercap RAPL core/PP0 and package reported_j (measured_j = null, board_metered = false), where power × wall_time explained 99.99% of RAPL variance (R^2 = 0.9999) compared with 11.54% for static Wasm byte size [E].

Epistemic Non-Mixing & Telemetry Ledger

Open Interface Engineering enforces strict non-mixing across physical rail shunts, on-chip counters, datasheet models, and uninstrumented analyses (measured_j ⊥ reported_j ⊥ est_j ⊥ unmetered — cross-class addition or direct cross-tier ratioing is blocked):

Related Work & Primary Literature ([S])

Replicate, Critique & Inspect Raw Artifacts


Prose and summary text dedicated to the public domain under CC0-1.0. Public replication harnesses and WAI1 schemas are licensed under Apache-2.0 unless explicitly noted in the licensing ledger above.