interplane.Get Omega
Read in your language

omega-zip

omega-zip: ZIP archive reader in seeded Omega (store and deflate, CRC-32, fail-closed refusals)

Brought by drakestapleton

branch main Branches Tags History

omega-zip / corpus / expect / base.zip.p

42 lines · 3000 bytes Raw Blame History
1# Omegese: a program language built for the AI writer
2
3Status: v1 (nested values, exact next oracle, 2026-10-15). Phase 1 done (language, translator, checks, token measurement);
4phase 2 started (section 7).
5Tool: `tools/omegese/omegese.c`; tests: `make test-omegese`. Named Glyph until 2026-10-15 (the name was
6taken); evidence recorded before then says glyph. Home: omegese.com (owned by Drake since 2026-10-15).
7
8## 1. Why
9
10exp445 (`docs/one_layer/EXP445_PROTOCOL.md`) asks AIs to write Omega programs as OSC text, as a
11JSON op list (`tools/omega_emit/SCHEMA.md`) and as hex bytes of the binary IR. The cost and the
12errors come from the same places: punctuation and keys (JSON), two characters per byte (hex), and
13bookkeeping the writer must do in its head: numbered registers with declared types, numbered blocks,
14byte offsets. Text avoids the bookkeeping but needs a compiler for a human-readable language.
15
16Omegese keeps the machine-first path (no human source language in production) and removes the
17bookkeeping and the punctuation. Its words are chosen from the writer model's own vocabulary.
18
19## 2. Design rules
20
211. **Efficiency metric: verified programs per unit of inference cost.** Language design optimizes
22 for verified programs produced per unit of inference cost (measured on held-out tasks by
23 first-attempt correctness, successful compilation, verified behavior, completion time, and total
24 compute cost), rather than treating single-token vocabulary as a rigid language rule.
25 Fitting fixed words into single tokens under a specific tokenizer (e.g. Qwen3 where ops, types,
26 and keywords were verified as single tokens with a leading space) is an empirical token-cost
27 consideration, not a binding constraint on the language definition. The compiler-guided interface
28 must remain portable across models and tokenizers.
29 There is no punctuation besides `=` (also one token, and optional) and the optional brackets `( )`;
30 no commas, no indentation. Values nest in prefix order (every op takes a fixed number of values),
31 so brackets are never needed. Numbers cost one token for the space plus one per digit under tokenizers
32 that split digits.
332. **Types are inferred.** Only parameters, the return type, conversions, typed numbers
34 (`uint 5`) and new arrays name a type. A value's type comes from the op that makes it, bottom-up
35 through nested values; a number takes the type of the other value in its op. This removes the
36 "register declared one type, written with another" error class.
373. **Names, not numbers.** Values are named; registers, blocks and branch targets are numbered by
38 the translator. Control is structured (`if`/`else`/`end`, `while`, `for`).
394. **Scope gives definite assignment.** A name first written inside an `if`, `else`, `while` or
40 `for` dies at its `end`; to carry a value out, write it before the block. So every read is
41 written on every path by construction.
42 Every name written must be read before its scope ends (