Skip to content

Why Mo

Mo is built for living software—software written largely by AI agents, read and verified by humans, and inspected, diagnosed, and evolved while it runs.

  1. Written by agents, verified by humans. Even when an agent writes 100% of the code, a human reads the diff and owns the blast radius. Inspired by Yukihiro Matsumoto’s philosophy of developer happiness, .mo files use calm keyword ... end blocks, zero semicolons, non-significant indentation, and one canonical 100-column formatter (mo format).
  2. Rust’s guarantees without Rust’s friction. Algebraic struct/enum types, exhaustive case matching, explicit Option(T) and Result(T, E) (dropping a Result is compile error E0412), checked integer overflow, exact 128-bit Decimal arithmetic (±(2^127 - 1) × 10^-18), and Perceus in-place reuse—with no borrow checker and no GC pauses.
  3. Security by construction, not convention. Zero ambient authority. main declares every capability it receives (Args, Env, Console, Files, Network, Sqlite, Command), capabilities narrow monotonically, and production code is forbidden from constructing test fakes.
  4. Separate constructs for separate physics. Instead of forcing everything through one abstraction, Mo gives each runtime shape first-class syntax: api ... end (multi-worker isolated HTTP), actor Name ... end (in-process BEAM-style state machines), and service ... end (durable single-writer MCP/HTTP services with live ops).

The mo binary embeds its own Language Reference (mo guide --reference), build guide (mo guide), standard library (lib/), and runtime (runtime/) so any human or agent has the exact compiler specification offline.