Nyx 2-Tier Standard Library Architecture
A modular, high-velocity standard library combining zero-dependency embedded core primitives with independently versioned NYPM domain packages.
📦 Tier 1: Core Standard Library (std.core)
Directly embedded in the compiler binary for zero-dependency baseline needs. Guaranteed to be ultra-hardened, self-contained, and available out of the box:
| Module | Namespace | Description |
|---|---|---|
std.core.arena | std.core.arena | $O(1)$ stack bump region arenas and bulk deallocation. |
std.core.arc | std.core.arc | Thread-safe atomic and local reference counting pointers. |
std.core.strict | std.core.strict | @strict, @must_region, and --warn-escape diagnostics. |
std.core.io | std.core.io | Standard input/output, formatted console streaming, and descriptors. |
std.core.async | std.core.async | Cooperative event loop, lightweight futures, and thread channels. |
std.core.crypto | std.core.crypto | Ed25519 signatures, ChaCha20-Poly1305 AEAD, and BLAKE3 hashing. |
std.core.json | std.core.json | Zero-alloc SIMD-accelerated JSON parser (1.48 GB/s). |
🌐 Tier 2: Modular Domain Packages (@nyx/* via NYPM)
Specialized enterprise and scientific domain packages modularized to prevent compiler bloat and versioned independently via nypm:
| Package Name | Install Command | Domain Capabilities |
|---|---|---|
@nyx/ui |
nypm add @nyx/ui |
Material Design 3 tokens, Skia/Vulkan 120 FPS hardware-accelerated canvas. |
@nyx/dsp |
nypm add @nyx/dsp |
Radix-2 Cooley-Tukey FFT audio analysis, real-time waveform filters (< 0.24 ms). |
@nyx/geo |
nypm add @nyx/geo |
Enterprise GIS raster/vector engine, R-Tree spatial indexing, Uber H3 hex grids. |
@nyx/tensor |
nypm add @nyx/tensor |
Hardware NPU/GPU quantized tensor kernels, INT8/FP16 matrix multiplication. |
@nyx/med |
nypm add @nyx/med |
Pan-Tompkins QRS cardiology, HIPAA DICOM de-identification, FHIR, and genomics. |
@nyx/robotics |
nypm add @nyx/robotics |
Forward/inverse kinematics solvers, trajectory planning, real-time actuation. |