Joule Technical Overview & Founding Story: Compile-Time Energy Budgets for Systems Software

February 4, 2026 language specification whitepapers introducing Joule: an affine-ownership systems language with static @energy_budget annotations (est_j), RAPL/ARM runtime meters (reported_j), and a Cranelift/LLVM/MLIR tri-backend compiler architecture.

Systems architecture illustration for Joule compile-time energy budgets and OS scheduling
Systems architecture illustration for Joule compile-time energy budgets and OS scheduling

Temporal & Archival Scope: Era 0 Historical Whitepaper (Originally dated February 4, 2026; verbatim historical summary followed below by dated November 25, 2026 Errata & Related Work Addendum) · Canonical OpenIE Chronicle Entry: https://blog.openie.dev/posts/wp-joule-language-technical-overview/ · Original Archival PDF: https://blog.openie.dev/papers/archive/13-Joule-Technical-Overview.pdf · The Joule Story PDF: https://blog.openie.dev/papers/archive/14-The-Joule-Story.pdf

Provenance & Telemetry Hygiene: Signed Provenance · Self-Checked (automated OpenIE internal gates; not externally peer-reviewed) · Energy Class: reported_j (measured_j ⊥ reported_j ⊥ est_j ⊥ unmetered — Verification, Licensing & AI-Use Disclosure · Glossary & Non-Mixing Rules).

Part I: Contemporary Historical Summary (As Written in February 2026)

Historical Source Provenance (Original Date: February 4, 2026): David Jean Charlot, PhD · Open Interface Engineering. Synthesizes two companion February 4, 2026 publications: the Joule Technical Overview PDF and The Joule Story PDF (openIE-dev/joule-lang).

Origin: Naming a Systems Language After James Prescott Joule (1850)

In 1850, James Prescott Joule established with a falling weight and a paddle-wheel calorimeter that mechanical work and thermal dissipation are conserved forms of the same physical quantity, measured in joules.

Modern systems languages provide static integer widths, affine ownership lifetimes for heap memory safety, and type-checked concurrency primitives—yet lack first-class language constructs for bounding the physical energy a routine may dissipate. Motivated by Pereira et al.’s SLE 2017 benchmark comparison (CPython at 75.88x vs. C at 1.00x and Rust at 1.03x) and Pinto et al.’s measurements showing garbage collection accounting for 5–25% of managed-runtime energy, the February 4, 2026 Joule (v0.1) specification proposed elevating energy contracts into function signatures and compiler passes.

Language Primitives: Affine Ownership + @energy_budget

Joule specified Hindley–Milner local type inference and affine ownership/borrowing (deterministic RAII deallocation without stop-the-world tracing GC) alongside static and runtime energy primitives:

// Illustrative Joule v0.1 specification syntax (February 2026)
@energy_budget(250_microjoules)
@target(SIMD)
fn normalize_sensor_frame(buf: &mut [f32; 256]) -> f32 {
    let meter = energy::Meter::hardware(); // Intel RAPL / ARM Energy Probe
    let mut acc: f32 = 0.0;
    for x in buf.iter() {
        acc += (*x) * (*x);
    }
    let inv = acc.sqrt().recip();
    for x in buf.iter_mut() {
        *x *= inv;
    }
    meter.elapsed_microjoules()
}

Core language mechanisms specified in the February 4, 2026 overview included:

Tri-Backend Compiler Architecture Specification

To balance debug turnaround against production code generation, the Technical Overview specified a Tri-Backend Compiler lowering a shared typed IR across three backends:

Section 6 of the February 2026 Technical Overview explicitly noted that static compile-time @energy_budget bounds—like Worst-Case Execution Time (WCET) bounds in real-time systems—cannot predict dynamic L3 cache contention, silicon bin variance, or OS DVFS p-state transitions, requiring runtime hardware-counter verification (energy::Meter::hardware()).


Methods, Implementation Status & Licensing Scope Box (reported_j / est_j)

  1. Distinguishing the Feb 4, 2026 v0.1 Specification From Subsequent Bootstrap Milestones:
    • At publication on February 4, 2026, PDFs #13 and #14 constituted a forward-looking v0.1 language and compiler specification (the -Oe LLVM energy-cost pass and full MLIR polyhedral backend were architectural targets, not benchmarked production compilers in February 2026; the ~10x Cranelift compile-time ratio reflects standard Cranelift JIT/debug codegen speed in the denominator vs. optimizing LLVM -O3 release builds in the numerator).
    • Over the following four months (by June 2026), joule-lang reached a ~15.5 kloc self-hosted bootstrap lowering onto OpenIE’s unified flowG FunctionGraph IR (openIE-dev/flow-g).
  2. Epistemic Non-Mixing Across Compile-Time (est_j) vs. Runtime (reported_j):
    • Static @energy_budget checks sum analytical instruction/cache cost weights (est_j), whereas energy::Meter::hardware() reads on-chip telemetry (Intel/AMD RAPL, Apple IOReport, ARM probes = reported_j). Both remain strictly distinct from external inline DC shunt instrumentation (measured_j).
  3. Artifact & Licensing Status: Unlike Papers #01–#12 (CC BY-ND 4.0), archival PDFs #13 (Joule Technical Overview) and #14 (The Joule Story) were published under CC BY 4.0. The public language specification, grammar, and bootstrap repository at openIE-dev/joule-lang is licensed under Apache-2.0 (while early pre-flowG internal compiler experiments resided in private workspace mirrors).

Chronological Evolution Within OpenIE Research

  1. OS-Level Joule Envelopes (JouleOS): Because an energy-blind OS scheduler can invalidate process-local @energy_budget assumptions via cache thrashing and DVFS p-state shifts, subsequent work moved joule accounting and thermal budget enforcement into JouleOS.
  2. Verified Graph IR Execution (Reality Code Engine (RCE)): Paired joule-lang / flowG lowering with machine-checked execution invariants (2,221 deterministic checks in openIE-dev/rce).
  3. Calibrating Against Inline DC Shunts (The Eco-Stack): Anchored kernel-level primitives on external DC shunt benches (measured_j) across AMD Kria KV260 (11.43 nJ) and NVIDIA Jetson Thor (125–176 nJ).

Changelog (2026-11-25)


Canonical Provenance, Primary Artifacts & Independent Replication