Program editor and source drafts

KEX compute workspace

Edit a program, build it, then inspect its output in the original runtime below. Source drafts are separate from the machine checkpoint: restoring a draft never runs a program or replaces runtime state.

No source draft restored. Use the original Checkpoint control to retain the machine.

Draft history in this tab
    KEX COMPUTER STACK v18 — Autonomous document computer · Select a state, run a program, inspect the result.
    SYSTEM INITIALIZING
    AUTONOMOUS BOOT
    POWER

    Inspect computer state

    This is the computer's addressable state surface. The large digit is the node's numeric projection, not the whole object. Each tile is a canonical X object with its own identity, address, role and mutable state. Select a tile to make it the active state; the panels below explain exactly what changed.
    1 · AnchorCanonical singular starting state. X1 remains an object even when its NUMBER projection is 1.
    2–8 · Addressable statesSelectable canonical objects used by registers, programs, memory and projections.
    5 · Bypass ruleRetained as an addressable object, but marked BYPASS for traversals that apply the configured n=5 rule.
    9 · Lane boundaryMarks the end of the current 1–9 address lane before the next indexed lane.
    X1…X9Stable object identity. The digit shown above it is only one projection of that object.
    Black outlineThe currently active X state used by default when a command does not specify another XREF.
    Active state loading…
    1ANCHORX1 2STATEX2 3STATEX3 4STATEX4 5BYPASSX5 6STATEX6 7STATEX7 8STATEX8 9BOUNDARYX9
    print("KEX PYTHON SOURCE") return "KEX JS SOURCE"; int main(void){ return 1; } int main(){ return 1; }

    What can I do here?

    You do not need to understand the internal architecture before using it. Choose the task that matches what you want to accomplish.

    EXPLORE STATESelect one of the numbered state tiles to inspect what that object contains and how the computer addresses it.
    RUN SOFTWAREUse Run example program for a complete execution, or the terminal when you want direct commands.
    WORK WITH FILESOpen the virtual filesystem to inspect the document computer's stored directories and data.
    ANALYSE DATAUse Find structure in data when you have a numeric sequence and want the machine to test for repeatable relationships.

    Run software and inspect files

    Choose a task. The computer handles loading, process creation, scheduling and execution automatically.

    INITIALIZING
    ACTIVE X—
    ADDRESS—
    PROCESSPID1 / init
    SYSTEMBOOTING
    No user task has been run yet. Results from Inspect, Run and Files appear here.

    Use direct commands

    Optional direct control. Type HELP for commands. The terminal is not required to boot or initialise the machine.

    KEX CLI INITIALIZING — autonomous boot in progress
    Engineering Mode exposes the machine beneath the normal interface. Use it to write software, inspect execution state, test conformance, diagnose providers and review audit evidence. These controls are not required for ordinary operation.

    Software development

    Create source code, choose its language/runtime binding, build it into the machine representation, then run it as a managed program. This is the engineering path for adding software to the computer.

    Language Program ID
    Workbench ready. Every language is source. Every source enters a language frontend, emits canonical KEX-IR, is validated and lowered to KEX ISA, then enters the same loader, PID, scheduler and execution path.

    Analyse a numeric sequence

    Use this when you have a list of numbers and want to know whether they contain a repeatable relationship. Enter the numbers separated by commas or spaces. The computer compares changes, ratios, repetition and other implemented tests. A reported pattern is a candidate supported by the supplied data—not automatically a universal mathematical law.

    Example: enter 1, 2, 4, 8, 16 and choose Find patterns. A useful result should identify the repeated ×2 relationship, show where it occurs, and distinguish that observation from a proven general rule.
    Dataset Grid width
    How to interpret the result: “observed” means the relationship occurred in the supplied sequence; “challenged” means the engine attempted counter-tests; generated cases are synthetic test inputs and are not additional evidence from your original data.
    Ready. ANALYSE searches the same dataset through independent mathematical/topological lenses. FALSIFY compares candidate structure against deterministic controls rather than assuming a visible pattern is meaningful.

    Unified Operator / Terminal Architecture

    TTY0 → KEXSH → command bus → command registry → service → stdout/stderr → audit ledger.

    WBIOS / MRAM / Encoded Program Pipeline

    WBIOS cold. Encoded loader ready.

    System Functions — VFS / FD / ENV / SIGNAL / TIMER / CAPABILITY

    System services ready.

    Write and run low-level machine instructions

    Purpose: this is the machine-language workbench for engineers. Use it when you need to tell the KEX execution layer exactly which state operations to perform, in order. It is not required for ordinary use.

    How to read it: each line is one instruction. For example, SELECT X1 chooses X1 as the active state; PRINT NUMBER X1 asks for X1's numeric projection; HALT ends execution. Compile & Run validates the instructions, converts them to the machine's executable representation, loads them, executes them, and reports the result below.
    Instruction result — compiler/execution output appears below.
    POWER OFF

    Computer status

    Is the computer ready? This panel summarizes the currently selected state, active process and boot condition. You only need Engineering Mode when diagnosing or developing the underlying machine.

    Operating process table

    
    

    Kernel / ISA / memory / interrupts

    Machine execution internals — inspect instruction, memory and interrupt state when diagnosing execution.

    
    

    Compiler architecture — all languages converge

    Build pipeline internals — inspect how source becomes the common executable representation.

    Language/runtime registry

    Language support — inspect which source languages are registered and how each enters the build pipeline.

    
    

    PID / ports / bridges

    Process communication — inspect process identifiers, ports and internal communication bridges.

    
    

    Physical providers

    Host execution providers — inspect which browser/Worker/WebGPU capabilities are available to perform physical work.

    
    

    Warehouse compute fabric

    Scaled compute topology — inspect configured worker groups and logical compute capacity.

    
    

    Compute fabric

    Processor state — inspect CPU/GPU/MRAM/VRAM execution and allocation state.

    
    

    Routes / containers

    Address routing — inspect how internal objects and services are located.

    
    

    Validation

    Conformance tests — verify machine invariants and report failures.

    
    

    Performance

    Performance measurements — inspect measured execution timings; these are local measurements, not claims of external hardware equivalence.

    
    

    Ledger

    Audit history — inspect recorded state changes and operator actions.

    
    

    Engineering evidence

    Build evidence — inspect internal verification and architecture metadata.