/ STATUS v0.01 · WORKING PROTOTYPE
/ AUTHOR DAN RODRIGUEZ · ULTRANARRATIVE LTD say hi →
/ TESTS 54/54   ALL PASSING
/ COORDS LAT 51.51 · LON −0.12 · APR 2026
+  [NC—001] / A MACHINE-NATIVE LANGUAGE

Write the intent. Let the machine write the code.

New Code is a programming language whose primary reader is an AI system and whose primary writer is an AI compiling from human intent. It treats values as processes, functions as transformations of processes, and programs as the controlled unfolding of structured computation.

/ PRIMITIVE 𝕎 quadruple ⟨f, A, φ, σ⟩
/ OPERATORS 9 ⊕ ⊚ ⇝ ⌊·⌉ ⟪·,·⟫ ▷◁ ◈ ‖ ⁻
/ SHAPES 5+ sine · sq · tri · saw · pulse(d)
/ COMPILERS 2 Offline · Anthropic backend
+  [NC—002] / THE BET

Code was never natural. We naturalised it.

§  PREFACE

Every programming language is a compromise between what humans can read and what machines can execute. For seventy years the compromise has favoured the humans. That era is ending.

Asking a large language model to keep speaking Python is like asking a concert pianist to communicate in semaphore. The bandwidth is wrong, the abstraction is wrong, and the interface bottleneck is now on our side of the table.

New Code is the other direction. You write the score — intent, forbid, ensure. The body is a hole. The compiler fills it.

The human is the conductor. The compiler is the orchestra.

/ 01

Process over state

Stasis is not a legal state. A value is not held — it is an unfolding whose current realisation can be sampled, whose trajectory can be transformed, whose coupling to other processes can be observed.

/ 02

Structure over scalar

Every value carries internal structure ⟨f, A, φ, σ⟩. Collapsing to a scalar is legal — but destructive, explicit, and marked in the type. The default is to preserve.

/ 03

Intent as first-class

Every function carries intent, forbid and ensure clauses. These are not comments — they are part of the type system, and the compiler is required to satisfy them or fail loudly.

/ 04

The compiler is the reader

Identifiers are long. Operators are non-ASCII where ambiguity would cost. The aesthetic is a molecular formula, not a sonnet. Humans read the intent; they inspect the body through tooling.

/ 05

Entanglement over dependency

When two values must stay consistent, the language says so. Transformations propagate automatically through the declared coupling function Φ. Non-transitive, by construction.

/ 06

Collapse is explicit, lossy

Any reduction to a scalar uses the collapse operator ⌊·⌉ and declares what is lost. Information loss is visible in the signature, not buried in the implementation.

+  [NC—003] / PRIMITIVES

Four objects. Three operators that matter. One unfolding.

/ P-01 TYPE · QUADRUPLE

𝕎The Waveform Number

The fundamental value type. Four components: f (frequency), A (amplitude), φ (phase), σ (shape). Destructurable. Realisable at any τ. The minimum description of anything that changes.

— fig. A · w(f=440, A=1.0, φ=0, σ=sine)
/ P-02 TYPE · PROCESS

proc<τ>The Ongoing Unfolding

A running computation. Each process carries its own time parameter τ; there is no global clock. Processes compose through ▶ series, ∥ parallel, and ↺ feedback.

— fig. B · audio_in ▶ classify ▶ result
/ P-03 RELATION · COUPLING

▷◁Entanglement

Two values linked such that any transformation of one induces Φ on the other. Symmetric, declarable, and enforced by the runtime. Kills entire categories of bug — consistency is no longer a hope.

— fig. C · entangle(L, R) via Φ
/ P-04 OPERATOR · LOSSY

⌊·⌉Collapse

The bridge to conventional systems. Reduces structure to scalar by amplitude-weighted coherence with the unit oscillator. Irreversible, explicit, marked in the type signature of every function that invokes it.

— fig. D · ⌊ ⟨f, A, φ, σ⟩ ⌉ → ℝ
+  [NC—004] / THE INTENT LAYER

Write the score. The compiler plays it.

Three gestures of the baton.

intent — what the code is for. forbid — what it must not do. ensure — the invariant it must hold. These are not comments. They are part of the type. The compiler either satisfies all three or fails with a diagnostic.

  1. 01 /Write the intent block. No body. Just the three clauses and a hole: ≔ ??
  2. 02 /The compiler fills the hole. The body is checked against the intent at AST level.
  3. 03 /:accept the body to persist it. The next compile replays it — no API call.
/ examples / timbre.nc COMPILED
※ A machine-native description of timbre classification.
※ The human writes the intent block. The body is a hole.

fn classify (sample : 𝕎, known : [signature])
        signature | fault<no_match>

    intent:  「identify the instrument whose prototype
              has smallest coherence distance to sample」

    forbid:  「return a match if the best distance
              exceeds the ambiguity threshold 0.65」

    ensure:  「output is the unique nearest signature,
              or a no-match fault」

     ??
AST · SAFE CONSTRAINTS · 3/3 + HOLE FILLED · 118ms
+  [NC—005] / DRIFT & TERMINATION

Without input, every process dies to the same shape.

The Second Law, at the language level.

The drift operator simultaneously shifts frequency, decays amplitude, rotates phase, and deforms shape toward the square-wave attractor. A process not externally sustained terminates there. This is not a fault. It is the natural end state.

  sine  ⇝  δ₁  ⇝  δ₂  ⇝  sq

δ = 0.00δ = 0.33δ = 0.66δ = 1.00 · sq ∞
+  [NC—006] / STATUS / v0.01

What works. And what doesn't.

+ WORKING10 / 14

  • [OK]The 𝕎 primitive, four components, destructurableCORE
  • [OK]Shapes · sine · sq · tri · saw · pulse(d)STDLIB
  • [OK]Operators · ⊕ · ⊚ · ⇝ · ⌊·⌉ · ⟪·,·⟫ · d_γ · ⁻ALGEBRA
  • [OK]Processes · every · on · while_ · ▶ · ∥ · ↺RUNTIME
  • [OK]Entanglement · symmetric · non-transitive · via ΦCOUPLING
  • [OK]Parser · fn · process · let · module · clausesSYNTAX
  • [OK]Compiler · Offline + Anthropic · AST-safeBACKEND
  • [OK]REPL · :src · :intent · :explain · :debugTOOLING
  • [OK]Visual debugger · SSE · single-file frontendTOOLING
  • [OK]Language server · LSP · VS Code extensionEDITOR

⇝ OPEN4 / 14

  • [..]Formal verification of natural-language intentOPEN
  • [..]Foreign function interface · boundary typesFFI
  • [..]evolving · await · streaming primitivesSPEC
  • [..]Browser REPL · try it without installingNEXT

◌ KNOWN LIMITSAPPROX

  • [!]Intent verification is plausibility, not proofHONEST
  • [!]Offline compiler covers only 6 known intentsFALLBACK
+  [NC—007] / INSTALL

Python 3.10+. One command. Fifty-four passing tests.

Start the REPL. Load the demo. Watch the holes fill.

Set ANTHROPIC_API_KEY and the neural compiler takes over. Without a key, the offline pattern matcher handles a small but demonstrable set.

VIEW THE DOCS  
$pip install -e .
$python -m unittest tests.test_core
※ 54 tests · 0 failures · 0 errors
$python -m newcode.repl examples/demo.nc
nc> amplify(concert_a, 2.5)
⟨ 440, 2.5, 0, sine ⟩
nc> age(concert_a, 0.3)
⟨ 440, 0.74, 0.26π, sine→sq(0.30) ⟩