Unified Code is an experimental functional construction grammar for writing software from one repeatedly practised form.
Read: The Age of AI Requires Standard Ten — One Unified Code for All Software
def part(thing):
return thingParts are assembled directly inside other parts:
result = outer(middle(inner(thing)))The initial vocabulary is inspired by an engineering reading of Sefer Yetzirah. This repository does not claim that the historical text is a programming specification. It tests whether the following vocabulary can become one:
אות → עומק → ציר → מימד → דבר → עולם
letter → depth → axis → dimension → thing → world
- Every public operation has one input and one output.
- A depth is an oriented interface.
- An axis is a pair of opposing depths.
- An
n-dimensional interface contains2noriented depths. - Larger programs are code-based recursive compositions of smaller parts.
These are hypotheses under test, not yet a software standard.
python -m unified
python -m pytest
uc benchmark --iterations 20from unified import inward, letter, outward, space, verify, world
result = outward(world(verify(space(letter(inward("seed"))))))inward / outward are visible boundaries (L7). letter accepts a
canonical thing, not a bare host value (L1). States unknown, absent,
false, and invalid are distinct (L6).
Learn one construction process once and use it everywhere. The developer supplies only the meaningful difference; the generator supplies the repeated structure.
uc new my-project
cd my-project
pytest
python -m my_project
uc add doubleAfter a complete declaration, uc new and uc add (validation through
filesystem publication and evidence) must each complete in ≤ 1 second
on ordinary local hardware. Measure with:
uc benchmark --iterations 20Precise achievement: generated domain logic and composition are event-driven; imperative control flow is confined to named runtime primitives and boundaries. The full runtime and generator are not yet fully event-driven.
ROUTES = {
"program.start": on_program_start,
"exception.unhandled": construct_ticket,
"ticket.persist.requested": outward_ticket_store,
"ticket.persisted": fail_with_ticket,
}
def program(thing):
return until_quiet(enqueue(emit(thing, "program.start"), "program.start"), ROUTES)Audited primitives carry formal contracts and direct tests. Ticket
construction is pure; persistence is a separate outward boundary
(outward_ticket_store) with atomic write and emergency-on-failure
(no recursive ticket).
See docs/DEVELOPER_WORKFLOW.md for the full sequence, scales (UC-0 through UC-4), and L9 measurement scope.
Chip-neutral 16-opcode machine beneath Unified Code. The existing generator is not replaced; both domains compile and execute through UEM with identical external JSON. Spec: UEM_SPEC.md.
python -c "from unified.machine import compile_declaration_path; ..."A target is supported only when its native executable runs the unchanged
golden suite with byte-identical canonical results. See c/targets/manifests/.
cd c && make l12Status vocabulary: native-pass | emulated-pass | compile-only | unavailable.
Not claimed without hardware golden pass: ARM64, RISC-V, MCU families. Wasm goldens in ≥2 runtimes = Wasm-host support (not chip support).
See SPEC.md, LAW.md, and ROADMAP.md.
Multi-dimensional 100% coverage (statements, branches, opcodes, primitives, spec traceability, mutations, differential, physical goldens). Never one averaged score.
./scripts/run_l13.shEmits coverage.json and GAUNTLET.md. Build fails if any dimension is below 100%.