API Reference & Standard Declarations
Comprehensive documentation of functions, structs, traits, and multi-dialect systems primitives with full field breakdowns.
📦 aab (std\aab.nyx)
std/aab.nyx — Android App Bundle (AAB) Transpiler & Packager
Parses .aab archives, extracts device-targeted splits, and compiles to installable APKs
struct
AabModule
std\aab.nyx:20pub struct AabModule
High-performance zero-GC data structure representing `AabModule` in `aab`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
name | String | "base", "feature_chat", etc. |
has_dex | Bool | — |
native_abis | Vec<String> | ["arm64-v8a", "armeabi-v7a"] |
densities | Vec<String> | ["xxhdpi", "xhdpi"] |
assets_count | usize | — |
struct
AabBundleInfo
std\aab.nyx:30pub struct AabBundleInfo
High-performance zero-GC data structure representing `AabBundleInfo` in `aab`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
file_path | String | — |
file_size_bytes | u64 | — |
package_name | String | — |
version_code | i32 | — |
version_name | String | — |
modules | Vec<AabModule> | — |
supported_abis | Vec<String> | — |
fn
inspect_aab
std\aab.nyx:33pub fn inspect_aab(aab_path: String) -> Result<AabBundleInfo, String>
Inspect an .aab archive and enumerate its architecture splits
fn
transpile_aab_to_apk
std\aab.nyx:66pub fn transpile_aab_to_apk(aab_path: String, target_abi: String, target_density: String, output_apk: String) -> Result<String, String>
Transpiles an .aab file into a device-specific standalone installable .apk
📦 can_arinc (std\aero\can_arinc.nyx)
@nyx/aero - DO-178C Avionics Bus Interface (ARINC-429 & CAN Aerospace)
Standard Package: std.aero.can_arinc
Compliance: ARINC Specification 429-18 / CAN Aerospace 2.0B / DO-178C Level A
struct
@strict @must_region
Arinc429Word
std\aero\can_arinc.nyx:16pub struct Arinc429Word
High-performance zero-GC data structure representing `Arinc429Word` in `can_arinc`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
raw_word | u32 | — |
label_octal | u8 | 8-bit octal label (e.g. 0310 for Pitch Angle) |
sdi | u8 | Source/Destination Identifier (2 bits) |
ssm | u8 | Sign/Status Matrix (2 bits: Normal, No Data, Test, Failure) |
parity_valid | bool | Odd parity validation bit |
struct
@strict @must_region
CanAerospaceMessage
std\aero\can_arinc.nyx:27pub struct CanAerospaceMessage
High-performance zero-GC data structure representing `CanAerospaceMessage` in `can_arinc`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
message_id | u32 | 11-bit or 29-bit CAN ID |
node_id | u8 | Hardware Node ID |
data_type | u8 | Standard CAN Aerospace data type indicator |
service_code | u8 | Service identifier |
message_code | u8 | Function code |
payload_bytes | [u8; 8] | 8-byte deterministic payload |
fn
decode_arinc429
std\aero\can_arinc.nyx:30pub fn decode_arinc429(raw: u32) -> Arinc429Word
Decode raw 32-bit ARINC 429 digital word with zero allocation
fn
encode_arinc429_bnr
std\aero\can_arinc.nyx:54pub fn encode_arinc429_bnr(label_octal: u8, sdi: u8, value_int19: i32, ssm: u8) -> u32
Encode BNR (Binary) flight parameter into ARINC-429 32-bit word
fn
build_can_aerospace_frame
std\aero\can_arinc.nyx:80pub fn build_can_aerospace_frame(
node_id: u8,
data_type: u8,
service_code: u8,
message_code: u8,
data: [u8; 4]
Construct CAN Aerospace 2.0B Frame
📦 deconfliction (std\aero\deconfliction.nyx)
@nyx/aero - 4D Trajectory-Based Operations & Urban Airspace Deconfliction
Standard Package: std.aero.deconfliction
Compliance: ACAS sXu / FAA NextGen 4D-TBO / ASTM F3411 Remote ID
struct
@strict @must_region
Waypoint4D
std\aero\deconfliction.nyx:17pub struct Waypoint4D
High-performance zero-GC data structure representing `Waypoint4D` in `deconfliction`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
lat_deg | f64 | — |
lon_deg | f64 | — |
altitude_msl_ft | f32 | — |
timestamp_utc_ms | u64 | — |
speed_knots | f32 | — |
corridor_radius_m | f32 | — |
struct
@strict @must_region
AerialVehicleState
std\aero\deconfliction.nyx:29pub struct AerialVehicleState
High-performance zero-GC data structure representing `AerialVehicleState` in `deconfliction`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
vehicle_id | u32 | — |
current_lat | f64 | — |
current_lon | f64 | — |
current_alt_ft | f32 | — |
heading_deg | f32 | — |
groundspeed_knots | f32 | — |
vertical_speed_fpm | f32 | — |
struct
@strict @must_region
ConflictAlert
std\aero\deconfliction.nyx:40pub struct ConflictAlert
High-performance zero-GC data structure representing `ConflictAlert` in `deconfliction`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
is_conflict | bool | — |
target_vehicle_id | u32 | — |
time_to_closest_point_sec | f32 | — |
predicted_separation_m | f32 | — |
recommended_heading_escape_deg | f32 | — |
recommended_vertical_rate_escape_fpm | f32 | — |
fn
compute_geo_distance_m
std\aero\deconfliction.nyx:43pub fn compute_geo_distance_m(lat1: f64, lon1: f64, lat2: f64, lon2: f64) -> f64
Haversine geodesic distance in meters between two coordinates
fn
check_4d_airspace_conflict
std\aero\deconfliction.nyx:64pub fn check_4d_airspace_conflict(
region r: Arena,
ownship: AerialVehicleState,
intruder: AerialVehicleState,
lookahead_seconds: f32
) -> ConflictAlert
Fast ACAS sXu Conflict Prediction between ownship and intruder
📦 evtol (std\aero\evtol.nyx)
@nyx/aero - eVTOL Distributed Electric Propulsion (DEP) Flight Control System
Standard Package: std.aero.evtol
Compliance: EASA SC-VTOL-01 / FAA AC 20-193 / DO-178C Level A
Hard Real-Time Target: 1,000 Hz (1.0 ms inner flight control loop)
enum
FlightPhase
std\aero\evtol.nyx:16pub enum FlightPhase
Algebraic sum type defining the valid states and variants for `FlightPhase`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
GroundTaxi = 0 | variant | — |
VerticalHover = 1 | variant | — |
ForwardTransition = 2 | variant | — |
WingCruise = 3 | variant | — |
LandingDescent = 4 | variant | — |
EmergencyAutorotation = 5 | variant | — |
struct
@strict @must_region
EvtolTelemetry
std\aero\evtol.nyx:32pub struct EvtolTelemetry
High-performance zero-GC data structure representing `EvtolTelemetry` in `evtol`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
roll_rad | f32 | — |
pitch_rad | f32 | — |
yaw_rad | f32 | — |
roll_rate_rad_s | f32 | — |
pitch_rate_rad_s | f32 | — |
yaw_rate_rad_s | f32 | — |
airspeed_knots | f32 | — |
altitude_agl_ft | f32 | — |
climb_rate_fpm | f32 | — |
battery_soc_pct | f32 | — |
motor_temps_c | [f32; 8] | — |
struct
@strict @must_region
PilotInput
std\aero\evtol.nyx:42pub struct PilotInput
High-performance zero-GC data structure representing `PilotInput` in `evtol`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
stick_pitch | f32 | -1.0 (nose down) to +1.0 (nose up) |
stick_roll | f32 | -1.0 (left) to +1.0 (right) |
pedal_yaw | f32 | -1.0 (left) to +1.0 (right) |
thrust_collective | f32 | 0.0 (idle) to 1.0 (full takeoff/cruise power) |
requested_phase | FlightPhase | — |
struct
@strict @must_region
RotorMixerOutput
std\aero\evtol.nyx:52pub struct RotorMixerOutput
High-performance zero-GC data structure representing `RotorMixerOutput` in `evtol`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
rotor_rpm | [u16; 8] | RPM for 8 distributed electric motors (0 to 3500 RPM) |
tilt_angle_deg | f32 | Nacelle / wing tilt (0 deg = vertical, 90 deg = cruise) |
elevon_left_deg | f32 | Aerodynamic wing control surfaces (-25 to +25 deg) |
elevon_right_deg | f32 | — |
master_warning | bool | — |
fn
compute_dep_mixer
std\aero\evtol.nyx:60pub fn compute_dep_mixer(
region r: Arena,
input: PilotInput,
telem: EvtolTelemetry,
current_tilt_deg: f32
) -> RotorMixerOutput
Compute 8-Rotor Differential RPM Mixing Vector based on 6-DOF Flight Laws
📦 hyperloop (std\aero\hyperloop.nyx)
@nyx/aero - Hyperloop Transonic Pod MagLev & Aerodynamics Controller
Standard Package: std.aero.hyperloop
Compliance: DO-178C DAL-A / ISO 26262 ASIL-D Deterministic Region Model
Hard Real-Time Target: 5,000 Hz (200 microsecond feedback cycle)
struct
@strict @must_region
HyperloopTelemetry
std\aero\hyperloop.nyx:20pub struct HyperloopTelemetry
High-performance zero-GC data structure representing `HyperloopTelemetry` in `hyperloop`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
pod_velocity_mps | f64 | Velocity in m/s (e.g., 277.78 m/s = 1000 km/h) |
tube_static_pressure_pa | f64 | Vacuum pressure (typically 100 Pa / 0.001 atm) |
mach_number | f32 | Local Mach number inside tube (e.g. 0.82) |
airgap_sensor_mm | [f32; 4] | Four corner electromagnetic suspension sensors (target: 15.0 mm) |
lsm_frequency_hz | f32 | Linear Synchronous Motor stator frequency |
stator_temperature_c | f32 | Stator winding temperature |
battery_voltage_v | f32 | Onboard 800V DC bus voltage |
cabin_pressure_kpa | f32 | Life support cabin pressure (nominal: 101.3 kPa) |
struct
@strict @must_region
HyperloopActuatorOutput
std\aero\hyperloop.nyx:30pub struct HyperloopActuatorOutput
High-performance zero-GC data structure representing `HyperloopActuatorOutput` in `hyperloop`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
ems_magnet_current_a | [f32; 4] | Quad-corner magnet currents (0.0 to 120.0 A) |
lsm_target_thrust_kn | f32 | Linear Motor propulsion thrust (kN) |
compressor_bypass_rpm | u32 | Axial compressor bypass RPM (Kantrowitz relief) |
eddy_brake_deployed | bool | Mechanical permanent magnet eddy-current brake |
emergency_vent_valve | bool | Emergency cabin repressurization valve |
struct
@strict @must_region
AirgapPidState
std\aero\hyperloop.nyx:41pub struct AirgapPidState
High-performance zero-GC data structure representing `AirgapPidState` in `hyperloop`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
p_gain | f32 | — |
i_gain | f32 | — |
d_gain | f32 | — |
prev_errors | [f32; 4] | — |
integral_sums | [f32; 4] | — |
target_airgap_mm | f32 | — |
fn
init_airgap_controller
std\aero\hyperloop.nyx:44pub fn init_airgap_controller(target_mm: f32) -> AirgapPidState
Initialize Airgap PID Controller with high-speed state-space gains
fn
compute_kantrowitz_compressor_rpm
std\aero\hyperloop.nyx:57pub fn compute_kantrowitz_compressor_rpm(velocity_mps: f64, static_press_pa: f64) -> u32
Compute Kantrowitz Aerodynamic Choking Bypass Ratio
When Mach approaches 0.85 in a closed tube, flow will choke if bypass area is insufficient.
When Mach approaches 0.85 in a closed tube, flow will choke if bypass area is insufficient.
fn
step_hyperloop_maglev
std\aero\hyperloop.nyx:82pub fn step_hyperloop_maglev(
region r: Arena,
mut pid: AirgapPidState,
telem: HyperloopTelemetry,
dt_seconds: f32
) -> (HyperloopActuatorOutput, AirgapPidState)
Real-Time 5 kHz Control Step (executed with zero-alloc inside region arena)
📦 aero (std\aero.nyx)
@nyx/aero - Official 3D Mobility & Aerospace Systems Package
Standard Package: std.aero
Modules:
- std.aero.hyperloop: Transonic Pod MagLev & Aerodynamics Controller
- std.aero.evtol: Distributed Electric Propulsion (DEP) Fly-By-Wire
- std.aero.deconfliction: 4D Trajectory-Based Operations & ACAS sXu DAA
- std.aero.can_arinc: DO-178C Level A Avionics Bus (ARINC-429 / CAN)
struct
NyxAeroPackage
std\aero.nyx:21pub struct NyxAeroPackage
High-performance zero-GC data structure representing `NyxAeroPackage` in `aero`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
version | string | — |
compliance_standard | string | — |
max_loop_frequency_hz | u32 | — |
fn
get_package_info
std\aero.nyx:23pub fn get_package_info() -> NyxAeroPackage
Core systems function executing the `get_package_info` operation within `aero`.
📦 alphacode (std\ai\alphacode.nyx)
std/ai/alphacode.nyx — Google DeepMind AlphaCode 2 & AlphaEvolve in Nyx
Autonomous Self-Improving Code Synthesis, AST Optimization & Test Mutation
struct
SynthesizedProgram
std\ai\alphacode.nyx:10struct SynthesizedProgram
std/ai/alphacode.nyx — Google DeepMind AlphaCode 2 & AlphaEvolve in Nyx
Autonomous Self-Improving Code Synthesis, AST Optimization & Test Mutation
Autonomous Self-Improving Code Synthesis, AST Optimization & Test Mutation
Fields & Variants:
| Name | Type | Description |
|---|---|---|
prompt | String | — |
nyx_ast_code | String | — |
test_suite_code | String | — |
verification_passed | bool | — |
latency_microseconds | f64 | — |
struct
AlphaCodeEngine
std\ai\alphacode.nyx:21struct AlphaCodeEngine
High-performance zero-GC data structure representing `AlphaCodeEngine` in `alphacode`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
fn synthesize(spec | String) -> SynthesizedProgram { | — |
println("🧬 [AlphaCode 2] Synthesizing verified zero-GC Nyx AST for | " + spec); | — |
return SynthesizedProgram { | variant | — |
prompt | spec | — |
nyx_ast_code | "struct Solver { fn execute() -> i32 { return 42; } }" | — |
test_suite_code | "fn test_solver() { assert(Solver.execute() == 42); }" | — |
verification_passed | true | — |
latency_microseconds | 18.4 | — |
📦 hierarchical_memory (std\ai\hierarchical_memory.nyx)
struct
MemoryRecord
std\ai\hierarchical_memory.nyx:20pub struct MemoryRecord
=========================================================================
NYX SOVEREIGN HIERARCHICAL MEMORY SYSTEM
Multi-Tier Memory Engineering: Eliminates Context Amnesia via Zero-GC Stores
=========================================================================
NYX SOVEREIGN HIERARCHICAL MEMORY SYSTEM
Multi-Tier Memory Engineering: Eliminates Context Amnesia via Zero-GC Stores
=========================================================================
Fields & Variants:
| Name | Type | Description |
|---|---|---|
id | String | — |
timestamp | i64 | — |
domain | String | — |
content | String | — |
embedding | Vec<f64> | — |
confidence | f64 | — |
fn
new
std\ai\hierarchical_memory.nyx:23 pub fn new(domain: String, text: String, vector: Vec<f64>, score: f64) -> MemoryRecord
Core systems function executing the `new` operation within `hierarchical_memory`.
struct
HierarchicalMemoryBank
std\ai\hierarchical_memory.nyx:47pub struct HierarchicalMemoryBank
High-performance zero-GC data structure representing `HierarchicalMemoryBank` in `hierarchical_memory`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
working_notes | Vec<String> | — |
entity_store | Map<String, String> | — |
episodic_archive | Vec<MemoryRecord> | — |
similarity_threshold | f64 | — |
fn
new
std\ai\hierarchical_memory.nyx:50 pub fn new() -> HierarchicalMemoryBank
Core systems function executing the `new` operation within `hierarchical_memory`.
fn
append_scratchpad
std\ai\hierarchical_memory.nyx:60 pub fn append_scratchpad(self: &mut HierarchicalMemoryBank, note: String)
--- STRATEGY 1: Working Memory Buffering ---
fn
update_entity
std\ai\hierarchical_memory.nyx:65 pub fn update_entity(self: &mut HierarchicalMemoryBank, key: String, val: String)
--- STRATEGY 2: Explicit Entity & Parameter Preservation ---
fn
lookup_entity
std\ai\hierarchical_memory.nyx:69 pub fn lookup_entity(self: &HierarchicalMemoryBank, key: &String) -> Option<String>
Core systems function executing the `lookup_entity` operation within `hierarchical_memory`.
fn
commit_episodic
std\ai\hierarchical_memory.nyx:74 pub fn commit_episodic(self: &mut HierarchicalMemoryBank, record: MemoryRecord)
--- STRATEGY 3: Hardware-Accelerated Vector Indexing ---
fn
search_semantic
std\ai\hierarchical_memory.nyx:78 pub fn search_semantic(self: &HierarchicalMemoryBank, query_vector: &Vec<f64>, top_k: i64) -> Vec<MemoryRecord>
Core systems function executing the `search_semantic` operation within `hierarchical_memory`.
fn
route_query
std\ai\hierarchical_memory.nyx:105 pub fn route_query(self: &HierarchicalMemoryBank, query_key: String, query_vector: &Vec<f64>) -> String
--- STRATEGY 4: Adaptive Retrieval Router ---
📦 medgemini (std\ai\medgemini.nyx)
std/ai/medgemini.nyx — Google DeepMind Med-Gemini in Nyx
Clinical Case Reasoning, Multi-Modal Biomarker Synthesis & Diagnostics
struct
PatientVitals
std\ai\medgemini.nyx:10struct PatientVitals
std/ai/medgemini.nyx — Google DeepMind Med-Gemini in Nyx
Clinical Case Reasoning, Multi-Modal Biomarker Synthesis & Diagnostics
Clinical Case Reasoning, Multi-Modal Biomarker Synthesis & Diagnostics
Fields & Variants:
| Name | Type | Description |
|---|---|---|
bp_systolic | f64 | — |
bp_diastolic | f64 | — |
heart_rate | f64 | — |
glucose_mgdl | f64 | — |
ecg_qtc_ms | f64 | — |
struct
ClinicalAssessment
std\ai\medgemini.nyx:17struct ClinicalAssessment
High-performance zero-GC data structure representing `ClinicalAssessment` in `medgemini`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
primary_ddx | String | — |
confidence | f64 | — |
urgent_triage | bool | — |
recommended_workup | String | — |
struct
MedGeminiPlatform
std\ai\medgemini.nyx:28struct MedGeminiPlatform
High-performance zero-GC data structure representing `MedGeminiPlatform` in `medgemini`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
fn evaluate(vitals | PatientVitals, notes: String) -> ClinicalAssessment { | — |
println("🏥 [Med-Gemini] Performing multi-modal clinical diagnostic reasoning..."); | variant | — |
let is_emergency = vitals.bp_systolic > 180.0 || vitals.glucose_mgdl > 300.0; | variant | — |
return ClinicalAssessment { | variant | — |
primary_ddx | is_emergency ? "Hypertensive / Metabolic Crisis" : "Stable Hemodynamic Baseline" | — |
confidence | 0.955 | — |
urgent_triage | is_emergency | — |
recommended_workup | is_emergency ? "Immediate IV anti-hypertensive & serial lab panel" : "Routine Outpatient Monitoring" | — |
📦 r4t_diffusion (std\ai\r4t_diffusion.nyx)
struct
SubQueryPlan
std\ai\r4t_diffusion.nyx:18pub struct SubQueryPlan
============================================================================
NYX STANDARD LIBRARY: std.ai.r4t_diffusion
Non-Autoregressive Query Fan-Out & Parallel Set-Level Denoising Engine
Reference: Google Research R4T-Diffusion (Retrieve-for-Train) Framework
============================================================================
NYX STANDARD LIBRARY: std.ai.r4t_diffusion
Non-Autoregressive Query Fan-Out & Parallel Set-Level Denoising Engine
Reference: Google Research R4T-Diffusion (Retrieve-for-Train) Framework
============================================================================
Fields & Variants:
| Name | Type | Description |
|---|---|---|
query_text | String | — |
target_domain | String | — |
confidence_score | f64 | — |
priority | i32 | — |
struct
FanOutResultSet
std\ai\r4t_diffusion.nyx:28pub struct FanOutResultSet
High-performance zero-GC data structure representing `FanOutResultSet` in `r4t_diffusion`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
dialect | String | — |
original_prompt | String | — |
sub_queries | Vec<SubQueryPlan> | — |
set_level_reward | f64 | — |
denoising_steps | i32 | — |
latency_ms | f64 | — |
speedup_ratio | f64 | — |
struct
R4TDiffusionModel
std\ai\r4t_diffusion.nyx:37pub struct R4TDiffusionModel
High-performance zero-GC data structure representing `R4TDiffusionModel` in `r4t_diffusion`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
model_id | String | — |
parameter_count_m | f64 | — |
num_diffusion_steps | i32 | — |
groundedness_weight | f64 | — |
diversity_weight | f64 | — |
alignment_weight | f64 | — |
fn
new
std\ai\r4t_diffusion.nyx:40 pub fn new() -> R4TDiffusionModel
Core systems function executing the `new` operation within `r4t_diffusion`.
fn
compute_set_reward
std\ai\r4t_diffusion.nyx:52 pub fn compute_set_reward(self: &R4TDiffusionModel, groundedness: f64, diversity: f64, alignment: f64) -> f64
Compute composite set-level reward: R(S, q) = w_g * Groundedness + w_d * Diversity + w_a * Alignment
fn
fan_out
std\ai\r4t_diffusion.nyx:59 pub fn fan_out(self: &R4TDiffusionModel, prompt: String, dialect: String) -> FanOutResultSet
Parallel fan-out generation across multi-lingual dialects (Nigerian Pidgin, Hausa, Yoruba, English)
📦 snn_event (std\ai\snn_event.nyx)
============================================================================
Module: std.ai.snn_event
Package: @nyx/neuromorphic
Description: Asynchronous Event-Driven Spiking Neural Network (SNN)
Leaky Integrate-and-Fire (LIF) with STDP Synaptic Plasticity
Author: Simeon Bala (9jaonCloud Engineering)
Architecture: Lock-Free SPSC Spike Event Ring Buffers, Microsecond Timers
============================================================================
struct
LifNeuronParams
std\ai\snn_event.nyx:25pub struct LifNeuronParams
----------------------------------------------------------------------------
Biological Neuron Biophysical Parameters
----------------------------------------------------------------------------
Biological Neuron Biophysical Parameters
----------------------------------------------------------------------------
Fields & Variants:
| Name | Type | Description |
|---|---|---|
membrane_time_constant_ms | f64 | tau_m (typically 20.0 ms) |
resting_potential_mv | f64 | V_rest (-70.0 mV) |
reset_potential_mv | f64 | V_reset (-75.0 mV) |
threshold_potential_mv | f64 | V_th (-55.0 mV) |
refractory_period_ms | f64 | t_ref (2.0 ms) |
membrane_resistance_mohm | f64 | R_m (10.0 MOhm) |
struct
SpikeEvent
std\ai\snn_event.nyx:35pub struct SpikeEvent
----------------------------------------------------------------------------
Discrete Spike Event Dispatched Across Neuromorphic Bus
----------------------------------------------------------------------------
Discrete Spike Event Dispatched Across Neuromorphic Bus
----------------------------------------------------------------------------
Fields & Variants:
| Name | Type | Description |
|---|---|---|
source_neuron_id | u32 | — |
target_neuron_id | u32 | — |
timestamp_us | u64 | Microsecond event timestamp |
synaptic_weight | f64 | Dynamic synaptic efficacy |
struct
LifNeuron
std\ai\snn_event.nyx:47pub struct LifNeuron
----------------------------------------------------------------------------
Individual Leaky Integrate-and-Fire (LIF) Neuron State
----------------------------------------------------------------------------
Individual Leaky Integrate-and-Fire (LIF) Neuron State
----------------------------------------------------------------------------
Fields & Variants:
| Name | Type | Description |
|---|---|---|
id | u32 | — |
membrane_potential_mv | f64 | — |
last_spike_time_us | u64 | — |
last_update_time_us | u64 | — |
is_refractory | bool | — |
total_spikes_emitted | u64 | — |
struct
StdpSynapse
std\ai\snn_event.nyx:60pub struct StdpSynapse
----------------------------------------------------------------------------
Synaptic Connection with Spike-Timing-Dependent Plasticity (STDP)
----------------------------------------------------------------------------
Synaptic Connection with Spike-Timing-Dependent Plasticity (STDP)
----------------------------------------------------------------------------
Fields & Variants:
| Name | Type | Description |
|---|---|---|
pre_neuron_id | u32 | — |
post_neuron_id | u32 | — |
weight | f64 | Current synaptic weight [0.0, 1.0] |
a_plus | f64 | Long-Term Potentiation (LTP) rate (0.01) |
a_minus | f64 | Long-Term Depression (LTD) rate (0.0105) |
tau_plus_ms | f64 | STDP LTP time constant (20.0 ms) |
tau_minus_ms | f64 | STDP LTD time constant (20.0 ms) |
struct
NeuromorphicEngine
std\ai\snn_event.nyx:69pub struct NeuromorphicEngine
----------------------------------------------------------------------------
Neuromorphic Spiking Engine Manager
----------------------------------------------------------------------------
Neuromorphic Spiking Engine Manager
----------------------------------------------------------------------------
Fields & Variants:
| Name | Type | Description |
|---|---|---|
params | LifNeuronParams | — |
num_neurons | u32 | — |
total_events_processed | u64 | — |
fn
new
std\ai\snn_event.nyx:75 pub fn new(p: LifNeuronParams, n_neurons: u32) -> NeuromorphicEngine
------------------------------------------------------------------------
Initialize Neuromorphic SNN Engine
------------------------------------------------------------------------
Initialize Neuromorphic SNN Engine
------------------------------------------------------------------------
fn
process_spike
std\ai\snn_event.nyx:92 pub fn process_spike(
&mut self,
neuron: &mut LifNeuron,
spike: &SpikeEvent,
current_time_us: u64
) -> Option<SpikeEvent>
------------------------------------------------------------------------
Process Incoming Synaptic Spike and Integrate Membrane Potential
ODE: tau_m * dV/dt = -(V - V_rest) + R * I(t)
------------------------------------------------------------------------
Process Incoming Synaptic Spike and Integrate Membrane Potential
ODE: tau_m * dV/dt = -(V - V_rest) + R * I(t)
------------------------------------------------------------------------
fn
update_stdp
std\ai\snn_event.nyx:134 pub fn update_stdp(synapse: &mut StdpSynapse, delta_t_ms: f64)
------------------------------------------------------------------------
Update Synaptic Plasticity via Hebbian STDP Learning Rule
------------------------------------------------------------------------
Update Synaptic Plasticity via Hebbian STDP Learning Rule
------------------------------------------------------------------------
📦 timesfm (std\ai\timesfm.nyx)
std/ai/timesfm.nyx — Nyx Standard Library: Google TimesFM Time-Series Foundation Model
Zero-shot Patched-Decoder Transformer for Pre-Cognitive Financial & Telemetry Forecasting
struct
TimeSeriesForecast
std\ai\timesfm.nyx:11struct TimeSeriesForecast
std/ai/timesfm.nyx — Nyx Standard Library: Google TimesFM Time-Series Foundation Model
Zero-shot Patched-Decoder Transformer for Pre-Cognitive Financial & Telemetry Forecasting
Zero-shot Patched-Decoder Transformer for Pre-Cognitive Financial & Telemetry Forecasting
Fields & Variants:
| Name | Type | Description |
|---|---|---|
horizon_steps | u32 | — |
median_point_forecast | Array<f64> | — |
lower_bound_10th | Array<f64> | — |
upper_bound_90th | Array<f64> | — |
confidence | f64 | — |
latency_ms | f64 | — |
struct
TimesFMModel
std\ai\timesfm.nyx:24struct TimesFMModel
High-performance zero-GC data structure representing `TimesFMModel` in `timesfm`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
patch_size | u32 | — |
embed_dim | u32 | — |
num_layers | u32 | — |
fn new() -> TimesFMModel { | variant | — |
println("📈 [TimesFM Foundation Model] Initializing patched-decoder transformer..."); | variant | — |
return TimesFMModel { | variant | — |
patch_size | 32 | — |
embed_dim | 128 | — |
num_layers | 4 | — |
fn
forecast_zero_shot
std\ai\timesfm.nyx:27 fn forecast_zero_shot(self: &TimesFMModel, history: Array<f64>, horizon: u32) -> TimeSeriesForecast
Core systems function executing the `forecast_zero_shot` operation within `timesfm`.
📦 apk (std\apk.nyx)
std/apk.nyx — APK Package Inspector (Tier-2 Standard Library)
Nyx APK Inspector: Parses Android APK container format (ZIP + binary XML manifest)
const
AXML_MAGIC
std\apk.nyx:20const AXML_MAGIC: u32 = 0x00080003
const CHUNK_STRING_POOL: u16 = 0x0001
const CHUNK_XML_START_NAMESPACE: u16 = 0x0100
const CHUNK_XML_END_NAMESPACE: u16 = 0x0101
const CHUNK_XML_START_ELEMENT: u16 = 0x0102
const CHUNK_XML_END_ELEMENT: u16 = 0x0103
const CHUNK_XML_CDATA: u16 = 0x0104
const CHUNK_RESOURCE_MAP: u16 = 0x0180
pub struct ApkManifest
── APK Binary XML (AXML) Constants ──────────────────────────────────────────
struct
NativeLib
std\apk.nyx:38pub struct NativeLib
High-performance zero-GC data structure representing `NativeLib` in `apk`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
abi | String | — |
name | String | — |
size_bytes | u64 | — |
enum
SigningScheme
std\apk.nyx:46pub enum SigningScheme
Algebraic sum type defining the valid states and variants for `SigningScheme`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
V1 | variant | — |
V2 | variant | — |
V3 | variant | — |
V4 | variant | — |
Unknown | variant | — |
enum
CompatTier
std\apk.nyx:52pub enum CompatTier
Algebraic sum type defining the valid states and variants for `CompatTier`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
ContainerOnly | variant | — |
NativeOnly | variant | — |
RequiresFullAndroid | variant | — |
struct
ApkInfo
std\apk.nyx:64pub struct ApkInfo
High-performance zero-GC data structure representing `ApkInfo` in `apk`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
path | String | — |
file_size_bytes | u64 | — |
manifest | ApkManifest | — |
dex_files | Vec<String> | — |
native_libs | Vec<NativeLib> | — |
has_resources | Bool | — |
has_assets | Bool | — |
signing_scheme | SigningScheme | — |
compatibility_tier | CompatTier | — |
struct
ZipEntry
std\apk.nyx:72pub struct ZipEntry
High-performance zero-GC data structure representing `ZipEntry` in `apk`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
name | String | — |
compressed_size | u64 | — |
uncompressed_size | u64 | — |
offset | u64 | — |
method | u16 | — |
struct
StringPool
std\apk.nyx:76pub struct StringPool
High-performance zero-GC data structure representing `StringPool` in `apk`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
strings | Vec<String> | — |
fn
read_u16_le
std\apk.nyx:78fn read_u16_le(data: &Vec<u8>, offset: usize) -> u16
Core systems function executing the `read_u16_le` operation within `apk`.
fn
read_u32_le
std\apk.nyx:82fn read_u32_le(data: &Vec<u8>, offset: usize) -> u32
Core systems function executing the `read_u32_le` operation within `apk`.
fn
find_eocd
std\apk.nyx:87fn find_eocd(data: &Vec<u8>) -> Result<usize, String>
Find the ZIP end-of-central-directory record
fn
parse_central_directory
std\apk.nyx:114fn parse_central_directory(data: &Vec<u8>) -> Result<Vec<ZipEntry>, String>
Parse the central directory and return list of entries
fn
extract_entry_bytes
std\apk.nyx:154fn extract_entry_bytes(data: &Vec<u8>, entry: &ZipEntry) -> Result<Vec<u8>, String>
Extract raw bytes of a ZIP entry
fn
parse_string_pool
std\apk.nyx:186fn parse_string_pool(data: &Vec<u8>, offset: usize) -> Result<StringPool, String>
Parse string pool from AXML
fn
parse_axml_manifest
std\apk.nyx:237fn parse_axml_manifest(data: &Vec<u8>) -> Result<ApkManifest, String>
Parse binary AndroidManifest.xml and extract key manifest data
fn
assess_compatibility
std\apk.nyx:345fn assess_compatibility(manifest: &ApkManifest, native_libs: &Vec<NativeLib>, dex_count: usize) -> CompatTier
Core systems function executing the `assess_compatibility` operation within `apk`.
fn
inspect_apk
std\apk.nyx:379pub fn inspect_apk(path: String) -> Result<ApkInfo, String>
Open and inspect an APK file. Returns structured metadata.
📦 browser (std\apps\browser.nyx)
struct
BrowserSecurityPolicy
std\apps\browser.nyx:11pub struct BrowserSecurityPolicy
High-performance zero-GC data structure representing `BrowserSecurityPolicy` in `browser`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
allowed_domain | String | — |
enforce_https | Bool | — |
block_unauthorized_external | Bool | — |
struct
SovereignBrowser
std\apps\browser.nyx:19pub struct SovereignBrowser
High-performance zero-GC data structure representing `SovereignBrowser` in `browser`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
current_url | String | — |
title | String | — |
policy | BrowserSecurityPolicy | — |
is_locked | Bool | — |
navigation_history | Vec[String] | — |
fn
new
std\apps\browser.nyx:22 pub fn new() -> SovereignBrowser
Core systems function executing the `new` operation within `browser`.
fn
is_domain_allowed
std\apps\browser.nyx:54 pub fn is_domain_allowed(self: &Self, domain: String) -> Bool
Core systems function executing the `is_domain_allowed` operation within `browser`.
📦 calculator (std\apps\calculator.nyx)
enum
Operation
std\apps\calculator.nyx:14pub enum Operation
Algebraic sum type defining the valid states and variants for `Operation`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
None | variant | — |
Add | variant | — |
Subtract | variant | — |
Multiply | variant | — |
Divide | variant | — |
Power | variant | — |
Modulo | variant | — |
struct
CalculatorState
std\apps\calculator.nyx:22pub struct CalculatorState
High-performance zero-GC data structure representing `CalculatorState` in `calculator`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
display | String | — |
previous_val | Float | — |
current_op | Operation | — |
should_reset_on_next_input | Bool | — |
history | Vec[String] | — |
fn
new
std\apps\calculator.nyx:25 pub fn new() -> CalculatorState
Core systems function executing the `new` operation within `calculator`.
fn
input_digit
std\apps\calculator.nyx:35 pub fn input_digit(self: &mut Self, digit: String)
Core systems function executing the `input_digit` operation within `calculator`.
fn
input_decimal
std\apps\calculator.nyx:44 pub fn input_decimal(self: &mut Self)
Core systems function executing the `input_decimal` operation within `calculator`.
fn
set_operation
std\apps\calculator.nyx:53 pub fn set_operation(self: &mut Self, op: Operation)
Core systems function executing the `set_operation` operation within `calculator`.
fn
compute_result
std\apps\calculator.nyx:59 pub fn compute_result(self: &mut Self) -> Float
Core systems function executing the `compute_result` operation within `calculator`.
fn
clear
std\apps\calculator.nyx:88 pub fn clear(self: &mut Self)
Core systems function executing the `clear` operation within `calculator`.
📦 snake (std\apps\snake.nyx)
enum
Direction
std\apps\snake.nyx:11pub enum Direction
Algebraic sum type defining the valid states and variants for `Direction`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
Up | variant | — |
Down | variant | — |
Left | variant | — |
Right | variant | — |
struct
Point
std\apps\snake.nyx:16pub struct Point
High-performance zero-GC data structure representing `Point` in `snake`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
x | Int | — |
y | Int | — |
struct
SnakeGame
std\apps\snake.nyx:28pub struct SnakeGame
High-performance zero-GC data structure representing `SnakeGame` in `snake`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
grid_width | Int | — |
grid_height | Int | — |
snake | Vec[Point] | — |
food | Point | — |
current_dir | Direction | — |
score | Int | — |
high_score | Int | — |
is_game_over | Bool | — |
is_paused | Bool | — |
fn
new
std\apps\snake.nyx:31 pub fn new(width: Int, height: Int) -> SnakeGame
Core systems function executing the `new` operation within `snake`.
fn
change_direction
std\apps\snake.nyx:51 pub fn change_direction(self: &mut Self, new_dir: Direction)
Core systems function executing the `change_direction` operation within `snake`.
fn
tick
std\apps\snake.nyx:61 pub fn tick(self: &mut Self)
Core systems function executing the `tick` operation within `snake`.
fn
reset
std\apps\snake.nyx:115 pub fn reset(self: &mut Self)
Core systems function executing the `reset` operation within `snake`.
📦 whot (std\apps\whot.nyx)
enum
Shape
std\apps\whot.nyx:13pub enum Shape
Algebraic sum type defining the valid states and variants for `Shape`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
Circle | variant | — |
Triangle | variant | — |
Cross | variant | — |
Square | variant | — |
Star | variant | — |
Whot, | variant | Wild card (Number 20) |
struct
Card
std\apps\whot.nyx:18pub struct Card
High-performance zero-GC data structure representing `Card` in `whot`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
shape | Shape | — |
number | Int | — |
enum
GameStatus
std\apps\whot.nyx:25pub enum GameStatus
Algebraic sum type defining the valid states and variants for `GameStatus`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
Playing | variant | — |
PlayerWon | variant | — |
OpponentWon | variant | — |
GeneralMarketTriggered | variant | — |
struct
WhotGame
std\apps\whot.nyx:38pub struct WhotGame
High-performance zero-GC data structure representing `WhotGame` in `whot`.
Fields & Variants:
| Name | Type | Description |
|---|---|---|
player_hand | Vec[Card] | — |
opponent_hand | Vec[Card] | — |
draw_pile | Vec[Card] | — |
discard_pile | Vec[Card] | — |
current_top_card | Card | — |
current_shape_call | Shape | — |
is_player_turn | Bool | — |
status | GameStatus | — |
pending_draw_count | Int | — |
message_log | Vec[String] | — |
fn
new
std\apps\whot.nyx:41 pub fn new() -> WhotGame
Core systems function executing the `new` operation within `whot`.
fn
can_play_card
std\apps\whot.nyx:92 pub fn can_play_card(self: &Self, card: &Card) -> Bool
Core systems function executing the `can_play_card` operation within `whot`.
fn
play_player_card
std\apps\whot.nyx:102 pub fn play_player_card(self: &mut Self, card_index: Int, called_shape: Shape) -> Bool
Core systems function executing the `play_player_card` operation within `whot`.
fn
draw_player_card
std\apps\whot.nyx:167 pub fn draw_player_card(self: &mut Self)
Core systems function executing the `draw_player_card` operation within `whot`.
fn
draw_cards_for_opponent
std\apps\whot.nyx:178 fn draw_cards_for_opponent(self: &mut Self, count: Int)
Core systems function executing the `draw_cards_for_opponent` operation within `whot`.
fn
opponent_ai_turn
std\apps\whot.nyx:188 pub fn opponent_ai_turn(self: &mut Self)
Core systems function executing the `opponent_ai_turn` operation within `whot`.
fn
draw_cards_for_player
std\apps\whot.nyx:256 fn draw_cards_for_player(self: &mut Self, count: Int)
Core systems function executing the `draw_cards_for_player` operation within `whot`.
📦 lyria (std\audio\lyria.nyx)
std/audio/lyria.nyx — Google DeepMind Lyria & MusicLM in Nyx
G