A modern systems programming language featuring automatic zero-GC static region inference, O(1) bump frame arenas, deterministic 0.00ms latency, and a 6-phase native transpilation compiler.
🌐 Interactive Web & Documentation Hub: nyx.9jaoncloud.com.ng
📖 Quickstart Guide: Getting Started | 🧠 Memory Model: Zero-GC Region Inference | 📐 Syntax Reference: Types & Syntax | ⚡ Benchmarks: Empirical Silicon Tests | ❓ FAQ: Disambiguation & FAQ
Nyx comes with a standalone, precompiled native 6-phase compiler at bin/nyx.exe for immediate out-of-the-box productivity:
# 1. Clone the clean public repository
git clone https://github.com/9jaoncloud/nyx.git
cd nyx
# 2. Run your first native Nyx program immediately
.\bin\nyx.exe -i examples\hello_world.nyx -rOutput:
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!
// Clean syntax with zero lifetime annotations
struct TradingOrder {
id: Int,
symbol: String,
price: Float,
volume: Float
}
impl TradingOrder {
fn total_notional(self: &TradingOrder) -> Float {
return self.price * self.volume;
}
}
fn main() {
let order = TradingOrder {
id: 1001,
symbol: "XAUUSD",
price: 4130.50,
volume: 0.10
};
println("Order ID: ", order.id);
println("Notional Value: $", order.total_notional());
}
Compile and run:
.\bin\nyx.exe -i order.nyx -rTraditional systems programming forces compromises between memory safety, deterministic execution, and developer cognitive load:
graph TD
subgraph Trilemma ["The Systems Programming Memory Trilemma"]
A["<b>VERTEX 1: Memory Safety</b><br>Zero Use-After-Free · Zero Data Races"]
B["<b>VERTEX 2: Deterministic Speed (No GC)</b><br>0.00ms Pauses · O(1) Bump Frames"]
C["<b>VERTEX 3: Developer Ergonomics</b><br>Zero Lifetime Annotations · Rapid Flow"]
A ---|"C / C++ (Unsafe: 70% CVEs)"| B
A ---|"Rust (Borrow Checker 'a Tax)"| C
B ---|"Java / Go (GC Pauses & 3x RAM)"| C
end
subgraph NyxSolution ["The Nyx Synthesis"]
N["🌙 <b>Nyx Systems Language</b><br>✨ Automatic Static Region Inference<br>✨ O(1) Region Bump Frames<br>✨ Unifies All 3 Vertices"]
end
Trilemma -.-> NyxSolution
- Zero Garbage Collection Pauses: Guaranteed 0.00ms pause times for real-time control, robotics kernels, and high-frequency trading.
-
Zero Lifetime Syntax Burden: The compiler's escape analyzer infers allocation regions automatically at compile time without
'aor'bannotations. -
Sub-Nanosecond Allocations: Monotonic region arenas reset in
$O(1)$ upon scope termination with zero memory fragmentation.
All documentation is natively formatted in clean Markdown for effortless reading and indexing directly on GitHub:
- 🚀 Getting Started & CLI Guide — Comprehensive compilation options and flags.
- 🧠 Zero-GC Memory Architecture — Region bump frames, escape analysis, and dialect extensions.
- 📐 Syntax, Types & Enums — Structs, methods, pattern matching, vectors, options, and results.
- ⚡ Structured Concurrency & Channels — Nurseries, CSP typed channels, and 42ns lock-free SPSC queues.
- 📊 Empirical Silicon Benchmarks — Laboratory benchmarks tested on Intel Core i7-6700HQ.
- ❓ Frequently Asked Questions & Disambiguation — Project origin, naming disambiguation, and design choices.
Nyx (this project) is the systems programming language by Simeon Bala / 9jaonCloud Engineering: Zero-GC region inference, capability-secure microkernel, and the NyxOS operating system. Compiled via
nyx.exe/nyxc.Not to be confused with unrelated projects that share the name "Nyx" or
.nyxextension, most notably NyxCode (nyxcode.ioby Fabian Budde), which is a web full-stack code generator distributed as an npm binary.They share no code, no maintainers, and no technical relationship.
To ensure enterprise-grade security and supply-chain provenance:
- GitHub Releases: Official compiler binaries ( yx.exe and yxc) are distributed as verified assets on GitHub Releases.
- Cryptographic Checksums: Every release asset includes accompanying SHA256SUMS.txt signatures.
- Automated SBOM: Nyx features built-in Software Bill of Materials generation ( yx --emit-sbom), providing machine-readable SPDX/CycloneDX compliance.
NyxOS achieves high-performance desktop rendering in virtualized environments through:
- System RAM Double-Buffering: Direct 32-bit compositing in system RAM with horizontal dirty-scanline blits to slow video memory.
- Retained Wallpaper Caching: Pre-rendered ambient gradients and lighting cached at boot time ( yx_layer_begin / yx_layer_end).
- Fast Drag Mode: Window movement bypasses multi-ring soft-shadow convolution loops, keeping cursor movement at 60+ FPS under VMware SVGA/VESA framebuffers.
The Nyx Programming Language and standard toolchain are open-source software licensed under the MIT License.