nC_Systems programming language

Control at
every level.

One continuous systems language, from functions to machine instructions.

nC in 20 seconds

Transcript
  1. 0:00–0:04

    Coloured particles gather into the nC mark. Control at every level. The nC systems programming language.

  2. 0:04–0:08

    Four surfaces. One language. Functions .n: ref main ->> run; · Root [@]: rootCore[@] { · Machine [@machine]: jmp.ov overflow; · Primitive primitive[@]: portWrite uart0.data <- 0x41;

    Read the source examples
  3. 0:08–0:13

    From source to execution. Particles flow through the five ncc phases: Source (.n), Analysis (AST), Representation (IR), Materialization (ABI), Execution (PE / ELF).

    Explore the phases
  4. 0:13–0:17

    Build and run. The commands of a verified run of the public Windows kit are typed, and the program prints Hello, nC public beta with exit code 0.

    Run it yourself
  5. 0:17–0:20

    The particles return to orbit around the nC mark and ncc-lenguage.org. The film has no sound.

nC is a systems programming language in native bootstrap. Ordinary source, foundational contracts, machine instructions and material primitives share one typed model, so the meaning of a program survives all the way down.

Read nC

Four surfaces of the same language: functions, root contracts, typed machine control and hardware primitives. Switch between them and read the real source.

Explore the language
Read nC
.nLanguage guide
counter {
    fn:
        public:
            run() -> bool {
                value >> int <- 0;
                while (value < 3) {
                    value <- value + 1;
                }
                return value == 3;
            }

    ref main ->> run;

    fa:
        return true;
}

Places and functions

A typed place, an explicit write, a named function and a declared entry point.

About this example

The example returns a bool. The entry point is selected by ref main; the function name alone has no entry-point privilege.

Four language surfaces. One semantic model.

Follow it through ncc

Five phases, from declaration to native image. Select one to see what it is responsible for.

Inside the compiler
01 / SOURCEPhase reference

Declare the program.

Functions, typed places and imports define program units. Visibility, control flow and representation must retain their identity through analysis.

Source referenceexamples/00_hello/hello.n
Read the contract ↗

Run it

Save the program as hello.n, then build and run a native executable. Press Run to replay a verified run of the public kit.

Get the native kit
hello.n
use <io:output>;

helloCompacto {
    to main {
        println("Hello, nC public beta");
    }

    fa:
        return true;

}
PowerShell · inside the extracted kit
.\ncc.exe self-test
.\ncc.exe compiler emit-executable hello.n `
  --target x86_64-pc-windows-msvc --out hello.exe
.\hello.exe
Hello, nC public beta

Built for systems programmers

[@machine]

A typed machine boundary

Instructions, labels and control transfers live in the language model instead of an asm template.

The machine layer
size / align / ABI

Representation you can inspect

Layout, alignment and calling conventions are part of the model. Memory stays manual.

Memory and representation
source → IR → image

A compiler you can trace

Analysis and emission routes are exposed; the bootstrap records sources and artifact comparisons.

Published evidence

Evidence you can open

Bootstrap V81 publishes its scope, its reconstruction and how to reproduce it. These figures identify a validation scope, not a performance comparison.

Reproduce the reconstruction
Bootstrap V81: published scope
Native kitsWindows x86-64 and Linux / WSL x86-64
ReconstructionB2 and C2 are byte-identical within each documented host.
Language contractManual/raw memory, explicit representation and typed machine surfaces.
Open workFull native CLI coverage and global Stage3 promotion.

Read it. Build it.
Help define it.

DocumentationContributeRelease notes

Search nC