Installing the Nyx Compiler & Toolchain (v0.53.0)
Nyx is a high-performance systems programming language featuring automatic zero-GC static region inference, 0.00ms deterministic pause times, and a native 6-phase C transpilation pipeline.
⚡ Release v0.53.0 Available:
The official public distribution includes the precompiled standalone native 6-phase compiler (
bin/nyx.exe), standard library (std/), runtime C headers (runtime/), and comprehensive Markdown documentation.
Precompiled Standalone Toolchain (Windows x86_64)
The fastest and recommended way to get started. The official repository includes a precompiled, self-contained native compiler at bin/nyx.exe (3.04 MB) with zero external Rust or Python runtime dependencies:
1. Clone the Public Repository
git clone https://github.com/9jaoncloud/nyx.git
cd nyx
2. Verify the Compiler
.\bin\nyx.exe --version
# Outputs: nyx 0.53.0
3. Run Your First Native Nyx Program
.\bin\nyx.exe -i examples\hello_world.nyx -r
Expected Output:
Compiled: examples/hello_world.exe
==================================================
🌙 Welcome to the Nyx Programming Language (v0.53.0)!
Zero-GC Region Inference · 0.00ms Pauses · Native x86_64
==================================================
Quick test calculation (21 * 2): 42
Ready to build high-performance systems!
4. Add Nyx to your Environment PATH (Optional)
In PowerShell for the current session:
$env:Path += ";$PWD\bin"
nyx.exe -i examples\hello_world.nyx -r
To make it permanent on Windows, add the full path to your nyx\bin directory in System Properties → Environment Variables → User Path.
Prerequisites
| Component | Required For | Installation |
|---|---|---|
| GCC or Clang | Native C assembly of generated code | MinGW-w64 (Windows), apt install build-essential (Linux), or Xcode CLI (macOS) |
| Git | Cloning repository & modules | apt install git or git-scm.com |
Common Compiler Commands & Flags
| Command | Description |
|---|---|
nyx -i main.nyx -r |
Compile and execute program immediately |
nyx -i main.nyx -o main.exe |
Compile to standalone native executable binary |
nyx -i main.nyx -o main.exe -O 3 |
Compile with maximum optimization level (-O3) |
nyx -i main.nyx --emit-c |
Emit transpiled intermediate C code for audit/inspection |
nyx -i main.nyx -S |
Emit native machine assembly code |
nyx -i main.nyx -g |
Generate debugging symbols (DWARF/PDB) |
nyx --version |
Print compiler version (v0.53.0) |
⚠️ Name Disambiguation Notice
Important:
Nyx (this project) is the systems programming language developed by Simeon Bala / 9jaonCloud Engineering (zero-GC region inference, compiled with
It is not related to the third-party npm package NyxCode (a web full-stack DSL by Fabian Budde). They share no code, maintainers, or technical specifications.
nyx.exe / nyxc, powering NyxOS and Athena).It is not related to the third-party npm package NyxCode (a web full-stack DSL by Fabian Budde). They share no code, maintainers, or technical specifications.