interplane.Get Omega
Omega Language Guide · Clean syntax, zero hidden runtime

Write it. Run it. Prove it.

Omega reads left to right in plain words, checks bounds and types up front, and compiles into one tiny static binary. Pick your current language below, inspect four visual rules, and run code in your browser right away.

60-second translation · zero JavaScript

See Omega beside C, Rust or Python.

Switch tabs below, copy the Omega panel, and paste straight into the online compiler.

C (raw pointer, unchecked index)
int sum_even(const uint32_t *a, uint64_t n) {
  uint32_t total = 0;
  for (uint64_t i = 0; i < n; i++)
    if ((a[i] & 1u) == 0u) total += a[i];
  return (int)total;
}
Omega OM-2 (checked view, bounded loop, exits 20)
om2
fn sum_even a view uint * to int
  total = uint 0
  for i ulong len a bound 1024
    v = get a i
    if eq and v 1 0
      total = add total v
    end
  end
  ret int total
end
fn main to int
  buf = new uint 4 0
  put buf 0 4
  put buf 1 7
  put buf 2 10
  put buf 3 6
  ret sum_even view buf
end
Rust (slices + debug_assert! + LLVM)
fn clamp_add(a: u32, b: u32, hi: u32) -> u32 {
  debug_assert!(hi > 0);
  let s = a.saturating_add(b);
  let out = if s > hi { hi } else { s };
  debug_assert!(out <= hi);
  out
}
Omega OM-2 (built-in contracts, exits 25)
om2
fn clamp_add a uint b uint hi uint to uint
  requires gt hi 0
  ensures le result hi
  s = add a b
  if or lt s a gt s hi
    ret hi
  end
  ret s
end
fn main to int
  ret int clamp_add 18 9 25
end
Python (dynamic types + interpreter)
def dot_product(xs: list[int], ys: list[int]) -> int:
    acc = 0
    for i in range(len(xs)):
        acc += xs[i] * ys[i]
    return acc
Omega OM-2 (static types, direct native ELF, exits 21)
om2
fn dot_product xs view int * ys view int * to int
  requires eq len xs len ys
  acc = int 0
  for i ulong len xs bound 1024
    acc = add acc mul get xs i get ys i
  end
  ret acc
end
fn main to int
  a = new int 3 0
  b = new int 3 0
  put a 0 2
  put a 1 3
  put a 2 5
  put b 0 4
  put b 1 1
  put b 2 2
  ret dot_product view a view b
end
Four visual rules

The anatomy of an Omega program.

Learn these four cards and you can read real .om systems and GPU code immediately.

  • Rule 01 · Prefix words

    Operators come first

    y = add mul a b c
    note comments start with note

    One statement per line. No semicolons, braces or infix ambiguity. Blocks close with end.

  • Rule 02 · Explicit types

    Zero silent casts

    total = int 0
    wide = ulong total

    New variables need a type word (int, uint, ulong, f64). Mismatches refuse with error 7.

  • Rule 03 · Bounded & safe

    Explicit loops & views

    for i ulong len a bound 1024
      v = get a i
    end

    Out-of-range indices trap (103), loop overflows trap (104), and signed overflow traps (101).

  • Rule 04 · OM-2 contracts

    Check rules in code

    om2
    requires gt hi 0
    ensures le result hi

    Executable contracts catch broken callers (trap 9/10) and erase cleanly under om2 release.

Human-first Omega NG · Built to welcome humans in

We get it: canonical Omega is hard to read. Infix + Lean 4 fixes that.

We are not taking humans out of the loop. Human engineering culture is extraordinary, and Omega NG is built to honor that craft without hiding the machine underneath. You should not have to take an agent's word for what it built: canonical prefix .om and the human-readable infix surface round-trip through om-fmt and lower to the exact same ΩIR, exact same SEMANTIC_ID and exact same verified machine bytes.

Being built For Omega 1.0, the human-readable infix surface (seed/ng/infix/ plus bidirectional om-fmt lowering to identical ΩIR and SEMANTIC_ID), Lean 4 EGP3 formal proofs and a byte-traceable #![forbid(unsafe_code)] Rust FFI hook are under development on staging lanes.

Canonical prefix .om (compiles today in omc)
note Audited canonical format (identical ΩIR & SEMANTIC_ID)
fn clamp_add a uint b uint hi uint to uint
  requires gt hi 0
  ensures le result hi
  s = add a b
  if or lt s a gt s hi
    ret hi
  end
  ret s
end

Canonical prefix .om stays the primary audited format; om-fmt converts cleanly in both directions.

Omega NG infix (seed/ng/infix/ + om-fmt → same ΩIR + Lean 4 proofs)
// Human-readable infix surface (exact same ΩIR & bytes)
fn clamp_add(a: uint, b: uint, hi: uint) -> uint {
  requires hi > 0;
  ensures result <= hi;
  let s = a + b;
  if s < a || s > hi { return hi; }
  return s;
}

Paired with Lean 4 formal proofs and #![forbid(unsafe_code)] Rust FFI hooks over SHA-256-pinned binaries, so humans can audit code directly.

First program & negative control

Run sum.om, then break it on purpose.

A test only proves something if a broken copy fails it. Run sum.om (exit 6), then swap ret total for ret true and watch omc refuse with error 7.

Positive check: sum.om (expected exit = 6)
fn main to int
  total = int 0
  for i int 4 bound 4
    total = add total i
  end
  ret total
end
Run locally + broken negative control (expected compiler exit = 7)
if ./omc < sum.om > omega-sum && chmod +x omega-sum; then
  ./omega-sum; printf 'exit=%s\n' "$?"
fi
sed 's/ret total/ret true/' sum.om > sum-bad.om
./omc < sum-bad.om > sum-bad; printf 'compiler exit=%s\n' "$?"
  1. 01 PIN

    Lock the hash

    Check source commit, target and compiler SHA-256 first.

  2. 02 WRITE

    Stay small

    Start from a nearby compiled example in the Harness.

  3. 03 RUN

    Check behavior

    Verify stdout bytes and exit status, not compile alone.

  4. 04 BREAK

    Mutate one rule

    Confirm a deliberately wrong input fails loudly.

  5. 05 PROVE

    Keep receipts

    Save exact commands, outputs and hashes beside the code.

Omega Harness & toolset

Clone the shared workflow for humans and agents.

The Omega Harness bundles compiler pins, language guides and executable refusal tests.

git clone https://interplane.io/drakestapleton/omega-harness.git
cd omega-harness
cat PIN
cat skills/omega-harness/SKILL.md skills/writing-omega/SKILL.md
Language spec, compiler internals & OSC IR targetsOMEGESE.md

Normative language rules live in OMEGESE.md, compiler source in seed/omc/omc.om, and backend status in seed/README.md.

Editor, MCP & migration toolsMCP · VS Code · Bridge

Use Omega MCP for local sandboxed compile/run tools, Omega for VS Code for highlighting, and Omega Bridge for C/Rust migration subsets.

Agent prompt: Write and verify an Omega programplain text
Write and verify an Omega program for [task]. Start at https://interplane.io/omega/tools.txt. Obtain the Harness and identify the target project's compiler pin before editing. Use the writing guide and one relevant tested example. Write .om source, run the positive test and a deliberate negative control on the named target, and report the source revision, compiler hash, commands, results and any checks that could not run.

Open plain text Agent tool index