Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/docs/osc/OSC-1-SELF-HOST-STATEMENT.md # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / docs / osc / OSC-1-SELF-HOST-STATEMENT.md` 64 lines · 3677 bytes Raw Blame History Source # OSC-1 self-hosting statement OSC-1 slice; not a general Omega compiler; no self-hosting. Question: can the OSC-1 compiler compile any part of itself? Answer: no. No part of the OSC-1 compiler's source is written in the OSC-1 language, and the OSC-1 language cannot express it. Reasons, each a missing language feature, not a missing test: - No bytes, strings or text. The lexer and parser consume source bytes and produce names and diagnostics. OSC-1 has integer scalars, bool and fixed arrays of at most 64 integers. It has no `u8` slice over input, no string type and no way to receive a source file. - No structs, unions or tagged data. The IR (`osc_ir.h`) is a tree of structs and enums (`OscUnit`, `OscFunc`, `OscInsn`). OSC-1 has no aggregate type other than `own [T; N]` with N <= 64, so it cannot hold an IR. - No growable or large storage. The compiler needs tables of thousands of entries (4096 instructions per function, 480 vregs). OSC-1 allocations are fixed-size pool slots of 64 cells, at most 64 live. - No recursion and no forward calls. The parser is recursive descent. OSC-1 calls only functions defined earlier in the unit. - No output channel. The back end writes machine code into a buffer the host maps executable, and the receipt writer writes files. OSC-1 programs can only return a scalar; they have no I/O, no capabilities and no effects. - No checked contracts. `requires`/`ensures` are recorded text in OSC-1 (OSC-0 decision 3). By OSC-0 rule, no production C migrates into Omega Systems Core until contract enforcement exists (OSC-2). What could be written in OSC-1 today is a re-implementation of a few pure integer helpers that the compiler uses (for example the width mask or the "is this value representable in type T" check). That would be new code that happens to compute the same numbers, not the compiler compiling its own source, and it is not claimed as self-hosting. What this means for the roadmap. Self-hosting is OSC-14 in the OSC-0 migration order (audit III.7). The determinism gate II.9 defines the evidence it will need: `compiler_n` built by `compiler_{n-1}` producing byte-identical output on a fixed corpus. The M6 `OMEGA_SELF_HOST` result is a fixed-output self-copy check and is never evidence of a compiler (OSC-0 decision 2, ROADMAP §3 M6 correction note). OSC-1 does not change that and does not touch M6. ## Addendum 2026-10-01: OSC-2 status (history above is kept unchanged) The text above describes OSC-1 as written. OSC-2 has since changed two of its six reasons: - Reason 2 ("No structs, unions or tagged data") is superseded for structs by OSC-2 item 2 (omega#149, merge `845dce4`). - Reason 6 ("No checked contracts") is superseded by OSC-2 item 1 (omega#148, merge `0abdb08`): `requires`/`ensures` are now enforced, by constant folding or a run-time check. - OSC-2 item 3 (omega#150, merge `c773622`) wires arenas to the OSC-0B memory model. OSC-2 item 4 (omega#151, merge `7e713e3`) makes the legacy AArch64 writer refuse out-of-range fields. - Reasons 1, 3, 4 and 5 are not addressed by this addendum. Status of OSC-1 and OSC-2: IMPLEMENTED / NOT QUALIFIED. The receipts are host receipts only. Neither slice is self-hosting, neither is a general Omega compiler, and no production code is compiled by either. OSC-2 shortfalls against `docs/adr/OMEGA-SYSTEMS-CORE-0000.md` and audit III.7 (`OMEGA_SYSTEMS_CORE_CODE_AUDIT.md`): - The aienos ADR 0013 u64 generation amendment is not done. - The II.6 identity break is not done. - Generational handles moved to OSC-3 (not merged). - Crumbline migration is not done.