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:

ModuleNamespaceDescription
std.core.arenastd.core.arena$O(1)$ stack bump region arenas and bulk deallocation.
std.core.arcstd.core.arcThread-safe atomic and local reference counting pointers.
std.core.strictstd.core.strict@strict, @must_region, and --warn-escape diagnostics.
std.core.iostd.core.ioStandard input/output, formatted console streaming, and descriptors.
std.core.asyncstd.core.asyncCooperative event loop, lightweight futures, and thread channels.
std.core.cryptostd.core.cryptoEd25519 signatures, ChaCha20-Poly1305 AEAD, and BLAKE3 hashing.
std.core.jsonstd.core.jsonZero-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 NameInstall CommandDomain 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.