code wiki / (root) / nx_meristem.nx

nx_meristem.nx

buildroot/runtime/nx_meristem.nx

6598 B194 linesdepth 2pulls 2 transitivereach 2 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_meristem.nx -- undifferentiated growth-tip substrate for spawning new cells. Biology: meristematic tissue at root tips, shoot apices, and cambium is the SOURCE of all plant growth. Cells there are undifferentiated and retain the ability to become root / leaf / stem / flower depending on hormonal signals and position. Without meristem, no growth. In Nishi: spawn-new-cell substrate that retains differentiation choice until commitment. Composes with [[nx_spore]] (the spore germinates INTO a meristem) + [[nx_seed]] (seed contains apical + radicle meristem) + [[feedback-substrate-builds-z-image-class-ai-from-math-up]] (cells differentiate into image / video / LLM / game roles at runtime under resource pressure from the conductor cardinal). V1 ships sealed enum of differentiation roles + spawn slot + commit gate + lineage tracking.

dependencies 2 imports · 2 importers

nx_syscalls.nx nx_tier.nx nx_meristem.nx nx_companion_compose_test.nx nx_meristem_test.nx

imports: nx_syscalls.nxnx_tier.nx

imported by: nx_companion_compose_test.nxnx_meristem_test.nx

structs

48struct NxCell
59struct NxMeristem

consts

25const NX_ME_ROLE_UNDIFFERENTIATED: nx_int = 0 // not yet committed
26const NX_ME_ROLE_LLM_INFERENCE: nx_int = 1
27const NX_ME_ROLE_IMAGE_GEN: nx_int = 2
28const NX_ME_ROLE_VIDEO_GEN: nx_int = 3
29const NX_ME_ROLE_AUDIO_TTS: nx_int = 4
30const NX_ME_ROLE_GAME_LOGIC: nx_int = 5
31const NX_ME_ROLE_PHYSICS_SIM: nx_int = 6
32const NX_ME_ROLE_STORAGE_TIER: nx_int = 7
33const NX_ME_ROLE_NETWORK_PEER: nx_int = 8
34const NX_ME_ROLE_AUDIT_SCAN: nx_int = 9
35const NX_ME_ROLE_N: nx_int = 10
39const NX_ME_V_OK: nx_int = 0
40const NX_ME_V_ALREADY_DIFFERENTIATED: nx_int = 1
41const NX_ME_V_DIFFERENTIATION_REFUSED: nx_int = 2 // no resources for role
42const NX_ME_V_INVALID: nx_int = 3
43const NX_ME_V_NULL: nx_int = 4
44const NX_ME_V_N: nx_int = 5
57const NX_ME_C_BYTES: nx_int = 48
69const NX_ME_BYTES: nx_int = 56

functions

73func nx_me_role_is_valid(r: nx_int) -> nx_int
79func nx_me_v_is_valid(v: nx_int) -> nx_int
called by 1: main
85func nx_me_role_is_compute_heavy(r: nx_int) -> nx_int
called by 1: main
95func nx_me_new(meristem_id: nx_int,
called by 1: main calls 1: sys_mmap
113func _me_cell_at(m: *NxMeristem, idx: nx_int) -> *NxCell
122func nx_me_spawn(m: *NxMeristem, lineage_depth: nx_int, now_us: nx_size) -> nx_int
called by 1: main
138func nx_me_find_cell(m: *NxMeristem, cell_id: nx_int) -> *NxCell
called by 2: nx_me_differentiatemain calls 1: _me_cell_at
151func nx_me_differentiate(m: *NxMeristem,
168func nx_me_count_by_role(m: *NxMeristem, role: nx_int) -> nx_int
180func nx_me_undifferentiated_count(m: *NxMeristem) -> nx_int
called by 1: main calls 1: nx_me_count_by_role
184func nx_me_max_lineage_depth(m: *NxMeristem) -> nx_int
called by 1: main calls 1: _me_cell_at