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:20
pub struct AabModule
High-performance zero-GC data structure representing `AabModule` in `aab`.

Fields & Variants:

NameTypeDescription
nameString"base", "feature_chat", etc.
has_dexBool—
native_abisVec<String>["arm64-v8a", "armeabi-v7a"]
densitiesVec<String>["xxhdpi", "xhdpi"]
assets_countusize—
struct

AabBundleInfo

std\aab.nyx:30
pub struct AabBundleInfo
High-performance zero-GC data structure representing `AabBundleInfo` in `aab`.

Fields & Variants:

NameTypeDescription
file_pathString—
file_size_bytesu64—
package_nameString—
version_codei32—
version_nameString—
modulesVec<AabModule>—
supported_abisVec<String>—
fn

inspect_aab

std\aab.nyx:33
pub 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:66
pub 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:16
pub struct Arinc429Word
High-performance zero-GC data structure representing `Arinc429Word` in `can_arinc`.

Fields & Variants:

NameTypeDescription
raw_wordu32—
label_octalu88-bit octal label (e.g. 0310 for Pitch Angle)
sdiu8Source/Destination Identifier (2 bits)
ssmu8Sign/Status Matrix (2 bits: Normal, No Data, Test, Failure)
parity_validboolOdd parity validation bit
struct @strict @must_region

CanAerospaceMessage

std\aero\can_arinc.nyx:27
pub struct CanAerospaceMessage
High-performance zero-GC data structure representing `CanAerospaceMessage` in `can_arinc`.

Fields & Variants:

NameTypeDescription
message_idu3211-bit or 29-bit CAN ID
node_idu8Hardware Node ID
data_typeu8Standard CAN Aerospace data type indicator
service_codeu8Service identifier
message_codeu8Function code
payload_bytes[u8; 8]8-byte deterministic payload
fn

decode_arinc429

std\aero\can_arinc.nyx:30
pub 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:54
pub 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:80
pub 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:17
pub struct Waypoint4D
High-performance zero-GC data structure representing `Waypoint4D` in `deconfliction`.

Fields & Variants:

NameTypeDescription
lat_degf64—
lon_degf64—
altitude_msl_ftf32—
timestamp_utc_msu64—
speed_knotsf32—
corridor_radius_mf32—
struct @strict @must_region

AerialVehicleState

std\aero\deconfliction.nyx:29
pub struct AerialVehicleState
High-performance zero-GC data structure representing `AerialVehicleState` in `deconfliction`.

Fields & Variants:

NameTypeDescription
vehicle_idu32—
current_latf64—
current_lonf64—
current_alt_ftf32—
heading_degf32—
groundspeed_knotsf32—
vertical_speed_fpmf32—
struct @strict @must_region

ConflictAlert

std\aero\deconfliction.nyx:40
pub struct ConflictAlert
High-performance zero-GC data structure representing `ConflictAlert` in `deconfliction`.

Fields & Variants:

NameTypeDescription
is_conflictbool—
target_vehicle_idu32—
time_to_closest_point_secf32—
predicted_separation_mf32—
recommended_heading_escape_degf32—
recommended_vertical_rate_escape_fpmf32—
fn

compute_geo_distance_m

std\aero\deconfliction.nyx:43
pub 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:64
pub 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:16
pub enum FlightPhase
Algebraic sum type defining the valid states and variants for `FlightPhase`.

Fields & Variants:

NameTypeDescription
GroundTaxi = 0variant—
VerticalHover = 1variant—
ForwardTransition = 2variant—
WingCruise = 3variant—
LandingDescent = 4variant—
EmergencyAutorotation = 5variant—
struct @strict @must_region

EvtolTelemetry

std\aero\evtol.nyx:32
pub struct EvtolTelemetry
High-performance zero-GC data structure representing `EvtolTelemetry` in `evtol`.

Fields & Variants:

NameTypeDescription
roll_radf32—
pitch_radf32—
yaw_radf32—
roll_rate_rad_sf32—
pitch_rate_rad_sf32—
yaw_rate_rad_sf32—
airspeed_knotsf32—
altitude_agl_ftf32—
climb_rate_fpmf32—
battery_soc_pctf32—
motor_temps_c[f32; 8]—
struct @strict @must_region

PilotInput

std\aero\evtol.nyx:42
pub struct PilotInput
High-performance zero-GC data structure representing `PilotInput` in `evtol`.

Fields & Variants:

NameTypeDescription
stick_pitchf32-1.0 (nose down) to +1.0 (nose up)
stick_rollf32-1.0 (left) to +1.0 (right)
pedal_yawf32-1.0 (left) to +1.0 (right)
thrust_collectivef320.0 (idle) to 1.0 (full takeoff/cruise power)
requested_phaseFlightPhase—
struct @strict @must_region

RotorMixerOutput

std\aero\evtol.nyx:52
pub struct RotorMixerOutput
High-performance zero-GC data structure representing `RotorMixerOutput` in `evtol`.

Fields & Variants:

NameTypeDescription
rotor_rpm[u16; 8]RPM for 8 distributed electric motors (0 to 3500 RPM)
tilt_angle_degf32Nacelle / wing tilt (0 deg = vertical, 90 deg = cruise)
elevon_left_degf32Aerodynamic wing control surfaces (-25 to +25 deg)
elevon_right_degf32—
master_warningbool—
fn

compute_dep_mixer

std\aero\evtol.nyx:60
pub 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:20
pub struct HyperloopTelemetry
High-performance zero-GC data structure representing `HyperloopTelemetry` in `hyperloop`.

Fields & Variants:

NameTypeDescription
pod_velocity_mpsf64Velocity in m/s (e.g., 277.78 m/s = 1000 km/h)
tube_static_pressure_paf64Vacuum pressure (typically 100 Pa / 0.001 atm)
mach_numberf32Local Mach number inside tube (e.g. 0.82)
airgap_sensor_mm[f32; 4]Four corner electromagnetic suspension sensors (target: 15.0 mm)
lsm_frequency_hzf32Linear Synchronous Motor stator frequency
stator_temperature_cf32Stator winding temperature
battery_voltage_vf32Onboard 800V DC bus voltage
cabin_pressure_kpaf32Life support cabin pressure (nominal: 101.3 kPa)
struct @strict @must_region

HyperloopActuatorOutput

std\aero\hyperloop.nyx:30
pub struct HyperloopActuatorOutput
High-performance zero-GC data structure representing `HyperloopActuatorOutput` in `hyperloop`.

Fields & Variants:

NameTypeDescription
ems_magnet_current_a[f32; 4]Quad-corner magnet currents (0.0 to 120.0 A)
lsm_target_thrust_knf32Linear Motor propulsion thrust (kN)
compressor_bypass_rpmu32Axial compressor bypass RPM (Kantrowitz relief)
eddy_brake_deployedboolMechanical permanent magnet eddy-current brake
emergency_vent_valveboolEmergency cabin repressurization valve
struct @strict @must_region

AirgapPidState

std\aero\hyperloop.nyx:41
pub struct AirgapPidState
High-performance zero-GC data structure representing `AirgapPidState` in `hyperloop`.

Fields & Variants:

NameTypeDescription
p_gainf32—
i_gainf32—
d_gainf32—
prev_errors[f32; 4]—
integral_sums[f32; 4]—
target_airgap_mmf32—
fn

init_airgap_controller

std\aero\hyperloop.nyx:44
pub 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:57
pub 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.
fn

step_hyperloop_maglev

std\aero\hyperloop.nyx:82
pub 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:21
pub struct NyxAeroPackage
High-performance zero-GC data structure representing `NyxAeroPackage` in `aero`.

Fields & Variants:

NameTypeDescription
versionstring—
compliance_standardstring—
max_loop_frequency_hzu32—
fn

get_package_info

std\aero.nyx:23
pub 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:10
struct SynthesizedProgram
std/ai/alphacode.nyx — Google DeepMind AlphaCode 2 & AlphaEvolve in Nyx
Autonomous Self-Improving Code Synthesis, AST Optimization & Test Mutation

Fields & Variants:

NameTypeDescription
promptString—
nyx_ast_codeString—
test_suite_codeString—
verification_passedbool—
latency_microsecondsf64—
struct

AlphaCodeEngine

std\ai\alphacode.nyx:21
struct AlphaCodeEngine
High-performance zero-GC data structure representing `AlphaCodeEngine` in `alphacode`.

Fields & Variants:

NameTypeDescription
fn synthesize(specString) -> SynthesizedProgram {—
println("🧬 [AlphaCode 2] Synthesizing verified zero-GC Nyx AST for" + spec);—
return SynthesizedProgram {variant—
promptspec—
nyx_ast_code"struct Solver { fn execute() -> i32 { return 42; } }"—
test_suite_code"fn test_solver() { assert(Solver.execute() == 42); }"—
verification_passedtrue—
latency_microseconds18.4—

📦 hierarchical_memory (std\ai\hierarchical_memory.nyx)

struct

MemoryRecord

std\ai\hierarchical_memory.nyx:20
pub struct MemoryRecord
=========================================================================
NYX SOVEREIGN HIERARCHICAL MEMORY SYSTEM
Multi-Tier Memory Engineering: Eliminates Context Amnesia via Zero-GC Stores
=========================================================================

Fields & Variants:

NameTypeDescription
idString—
timestampi64—
domainString—
contentString—
embeddingVec<f64>—
confidencef64—
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:47
pub struct HierarchicalMemoryBank
High-performance zero-GC data structure representing `HierarchicalMemoryBank` in `hierarchical_memory`.

Fields & Variants:

NameTypeDescription
working_notesVec<String>—
entity_storeMap<String, String>—
episodic_archiveVec<MemoryRecord>—
similarity_thresholdf64—
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:10
struct PatientVitals
std/ai/medgemini.nyx — Google DeepMind Med-Gemini in Nyx
Clinical Case Reasoning, Multi-Modal Biomarker Synthesis & Diagnostics

Fields & Variants:

NameTypeDescription
bp_systolicf64—
bp_diastolicf64—
heart_ratef64—
glucose_mgdlf64—
ecg_qtc_msf64—
struct

ClinicalAssessment

std\ai\medgemini.nyx:17
struct ClinicalAssessment
High-performance zero-GC data structure representing `ClinicalAssessment` in `medgemini`.

Fields & Variants:

NameTypeDescription
primary_ddxString—
confidencef64—
urgent_triagebool—
recommended_workupString—
struct

MedGeminiPlatform

std\ai\medgemini.nyx:28
struct MedGeminiPlatform
High-performance zero-GC data structure representing `MedGeminiPlatform` in `medgemini`.

Fields & Variants:

NameTypeDescription
fn evaluate(vitalsPatientVitals, 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_ddxis_emergency ? "Hypertensive / Metabolic Crisis" : "Stable Hemodynamic Baseline"—
confidence0.955—
urgent_triageis_emergency—
recommended_workupis_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:18
pub 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
============================================================================

Fields & Variants:

NameTypeDescription
query_textString—
target_domainString—
confidence_scoref64—
priorityi32—
struct

FanOutResultSet

std\ai\r4t_diffusion.nyx:28
pub struct FanOutResultSet
High-performance zero-GC data structure representing `FanOutResultSet` in `r4t_diffusion`.

Fields & Variants:

NameTypeDescription
dialectString—
original_promptString—
sub_queriesVec<SubQueryPlan>—
set_level_rewardf64—
denoising_stepsi32—
latency_msf64—
speedup_ratiof64—
struct

R4TDiffusionModel

std\ai\r4t_diffusion.nyx:37
pub struct R4TDiffusionModel
High-performance zero-GC data structure representing `R4TDiffusionModel` in `r4t_diffusion`.

Fields & Variants:

NameTypeDescription
model_idString—
parameter_count_mf64—
num_diffusion_stepsi32—
groundedness_weightf64—
diversity_weightf64—
alignment_weightf64—
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:25
pub struct LifNeuronParams
----------------------------------------------------------------------------
Biological Neuron Biophysical Parameters
----------------------------------------------------------------------------

Fields & Variants:

NameTypeDescription
membrane_time_constant_msf64tau_m (typically 20.0 ms)
resting_potential_mvf64V_rest (-70.0 mV)
reset_potential_mvf64V_reset (-75.0 mV)
threshold_potential_mvf64V_th (-55.0 mV)
refractory_period_msf64t_ref (2.0 ms)
membrane_resistance_mohmf64R_m (10.0 MOhm)
struct

SpikeEvent

std\ai\snn_event.nyx:35
pub struct SpikeEvent
----------------------------------------------------------------------------
Discrete Spike Event Dispatched Across Neuromorphic Bus
----------------------------------------------------------------------------

Fields & Variants:

NameTypeDescription
source_neuron_idu32—
target_neuron_idu32—
timestamp_usu64Microsecond event timestamp
synaptic_weightf64Dynamic synaptic efficacy
struct

LifNeuron

std\ai\snn_event.nyx:47
pub struct LifNeuron
----------------------------------------------------------------------------
Individual Leaky Integrate-and-Fire (LIF) Neuron State
----------------------------------------------------------------------------

Fields & Variants:

NameTypeDescription
idu32—
membrane_potential_mvf64—
last_spike_time_usu64—
last_update_time_usu64—
is_refractorybool—
total_spikes_emittedu64—
struct

StdpSynapse

std\ai\snn_event.nyx:60
pub struct StdpSynapse
----------------------------------------------------------------------------
Synaptic Connection with Spike-Timing-Dependent Plasticity (STDP)
----------------------------------------------------------------------------

Fields & Variants:

NameTypeDescription
pre_neuron_idu32—
post_neuron_idu32—
weightf64Current synaptic weight [0.0, 1.0]
a_plusf64Long-Term Potentiation (LTP) rate (0.01)
a_minusf64Long-Term Depression (LTD) rate (0.0105)
tau_plus_msf64STDP LTP time constant (20.0 ms)
tau_minus_msf64STDP LTD time constant (20.0 ms)
struct

NeuromorphicEngine

std\ai\snn_event.nyx:69
pub struct NeuromorphicEngine
----------------------------------------------------------------------------
Neuromorphic Spiking Engine Manager
----------------------------------------------------------------------------

Fields & Variants:

NameTypeDescription
paramsLifNeuronParams—
num_neuronsu32—
total_events_processedu64—
fn

new

std\ai\snn_event.nyx:75
    pub fn new(p: LifNeuronParams, n_neurons: u32) -> NeuromorphicEngine
------------------------------------------------------------------------
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)
------------------------------------------------------------------------
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
------------------------------------------------------------------------

📦 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:11
struct 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

Fields & Variants:

NameTypeDescription
horizon_stepsu32—
median_point_forecastArray<f64>—
lower_bound_10thArray<f64>—
upper_bound_90thArray<f64>—
confidencef64—
latency_msf64—
struct

TimesFMModel

std\ai\timesfm.nyx:24
struct TimesFMModel
High-performance zero-GC data structure representing `TimesFMModel` in `timesfm`.

Fields & Variants:

NameTypeDescription
patch_sizeu32—
embed_dimu32—
num_layersu32—
fn new() -> TimesFMModel {variant—
println("📈 [TimesFM Foundation Model] Initializing patched-decoder transformer...");variant—
return TimesFMModel {variant—
patch_size32—
embed_dim128—
num_layers4—
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:20
const 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:38
pub struct NativeLib
High-performance zero-GC data structure representing `NativeLib` in `apk`.

Fields & Variants:

NameTypeDescription
abiString—
nameString—
size_bytesu64—
enum

SigningScheme

std\apk.nyx:46
pub enum SigningScheme
Algebraic sum type defining the valid states and variants for `SigningScheme`.

Fields & Variants:

NameTypeDescription
V1variant—
V2variant—
V3variant—
V4variant—
Unknownvariant—
enum

CompatTier

std\apk.nyx:52
pub enum CompatTier
Algebraic sum type defining the valid states and variants for `CompatTier`.

Fields & Variants:

NameTypeDescription
ContainerOnlyvariant—
NativeOnlyvariant—
RequiresFullAndroidvariant—
struct

ApkInfo

std\apk.nyx:64
pub struct ApkInfo
High-performance zero-GC data structure representing `ApkInfo` in `apk`.

Fields & Variants:

NameTypeDescription
pathString—
file_size_bytesu64—
manifestApkManifest—
dex_filesVec<String>—
native_libsVec<NativeLib>—
has_resourcesBool—
has_assetsBool—
signing_schemeSigningScheme—
compatibility_tierCompatTier—
struct

ZipEntry

std\apk.nyx:72
pub struct ZipEntry
High-performance zero-GC data structure representing `ZipEntry` in `apk`.

Fields & Variants:

NameTypeDescription
nameString—
compressed_sizeu64—
uncompressed_sizeu64—
offsetu64—
methodu16—
struct

StringPool

std\apk.nyx:76
pub struct StringPool
High-performance zero-GC data structure representing `StringPool` in `apk`.

Fields & Variants:

NameTypeDescription
stringsVec<String>—
fn

read_u16_le

std\apk.nyx:78
fn 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:82
fn 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:87
fn find_eocd(data: &Vec<u8>) -> Result<usize, String>
Find the ZIP end-of-central-directory record
fn

parse_central_directory

std\apk.nyx:114
fn 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:154
fn 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:186
fn parse_string_pool(data: &Vec<u8>, offset: usize) -> Result<StringPool, String>
Parse string pool from AXML
fn

parse_axml_manifest

std\apk.nyx:237
fn parse_axml_manifest(data: &Vec<u8>) -> Result<ApkManifest, String>
Parse binary AndroidManifest.xml and extract key manifest data
fn

assess_compatibility

std\apk.nyx:345
fn 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:379
pub 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:11
pub struct BrowserSecurityPolicy
High-performance zero-GC data structure representing `BrowserSecurityPolicy` in `browser`.

Fields & Variants:

NameTypeDescription
allowed_domainString—
enforce_httpsBool—
block_unauthorized_externalBool—
struct

SovereignBrowser

std\apps\browser.nyx:19
pub struct SovereignBrowser
High-performance zero-GC data structure representing `SovereignBrowser` in `browser`.

Fields & Variants:

NameTypeDescription
current_urlString—
titleString—
policyBrowserSecurityPolicy—
is_lockedBool—
navigation_historyVec[String]—
fn

new

std\apps\browser.nyx:22
    pub fn new() -> SovereignBrowser
Core systems function executing the `new` operation within `browser`.
fn

navigate

std\apps\browser.nyx:38
    pub fn navigate(self: &mut Self, target_url: String, token: &microkernel.CapToken) -> Result[String, String]
Core systems function executing the `navigate` 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:14
pub enum Operation
Algebraic sum type defining the valid states and variants for `Operation`.

Fields & Variants:

NameTypeDescription
Nonevariant—
Addvariant—
Subtractvariant—
Multiplyvariant—
Dividevariant—
Powervariant—
Modulovariant—
struct

CalculatorState

std\apps\calculator.nyx:22
pub struct CalculatorState
High-performance zero-GC data structure representing `CalculatorState` in `calculator`.

Fields & Variants:

NameTypeDescription
displayString—
previous_valFloat—
current_opOperation—
should_reset_on_next_inputBool—
historyVec[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:11
pub enum Direction
Algebraic sum type defining the valid states and variants for `Direction`.

Fields & Variants:

NameTypeDescription
Upvariant—
Downvariant—
Leftvariant—
Rightvariant—
struct

Point

std\apps\snake.nyx:16
pub struct Point
High-performance zero-GC data structure representing `Point` in `snake`.

Fields & Variants:

NameTypeDescription
xInt—
yInt—
struct

SnakeGame

std\apps\snake.nyx:28
pub struct SnakeGame
High-performance zero-GC data structure representing `SnakeGame` in `snake`.

Fields & Variants:

NameTypeDescription
grid_widthInt—
grid_heightInt—
snakeVec[Point]—
foodPoint—
current_dirDirection—
scoreInt—
high_scoreInt—
is_game_overBool—
is_pausedBool—
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:13
pub enum Shape
Algebraic sum type defining the valid states and variants for `Shape`.

Fields & Variants:

NameTypeDescription
Circlevariant—
Trianglevariant—
Crossvariant—
Squarevariant—
Starvariant—
Whot,variantWild card (Number 20)
struct

Card

std\apps\whot.nyx:18
pub struct Card
High-performance zero-GC data structure representing `Card` in `whot`.

Fields & Variants:

NameTypeDescription
shapeShape—
numberInt—
enum

GameStatus

std\apps\whot.nyx:25
pub enum GameStatus
Algebraic sum type defining the valid states and variants for `GameStatus`.

Fields & Variants:

NameTypeDescription
Playingvariant—
PlayerWonvariant—
OpponentWonvariant—
GeneralMarketTriggeredvariant—
struct

WhotGame

std\apps\whot.nyx:38
pub struct WhotGame
High-performance zero-GC data structure representing `WhotGame` in `whot`.

Fields & Variants:

NameTypeDescription
player_handVec[Card]—
opponent_handVec[Card]—
draw_pileVec[Card]—
discard_pileVec[Card]—
current_top_cardCard—
current_shape_callShape—
is_player_turnBool—
statusGameStatus—
pending_draw_countInt—
message_logVec[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