nx_meristem.nx
buildroot/runtime/nx_meristem.nx
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
imports: nx_syscalls.nxnx_tier.nx
imported by: nx_companion_compose_test.nxnx_meristem_test.nx
structs
| 48 | struct NxCell |
| 59 | struct NxMeristem |
consts
| 25 | const NX_ME_ROLE_UNDIFFERENTIATED: nx_int = 0 // not yet committed |
| 26 | const NX_ME_ROLE_LLM_INFERENCE: nx_int = 1 |
| 27 | const NX_ME_ROLE_IMAGE_GEN: nx_int = 2 |
| 28 | const NX_ME_ROLE_VIDEO_GEN: nx_int = 3 |
| 29 | const NX_ME_ROLE_AUDIO_TTS: nx_int = 4 |
| 30 | const NX_ME_ROLE_GAME_LOGIC: nx_int = 5 |
| 31 | const NX_ME_ROLE_PHYSICS_SIM: nx_int = 6 |
| 32 | const NX_ME_ROLE_STORAGE_TIER: nx_int = 7 |
| 33 | const NX_ME_ROLE_NETWORK_PEER: nx_int = 8 |
| 34 | const NX_ME_ROLE_AUDIT_SCAN: nx_int = 9 |
| 35 | const NX_ME_ROLE_N: nx_int = 10 |
| 39 | const NX_ME_V_OK: nx_int = 0 |
| 40 | const NX_ME_V_ALREADY_DIFFERENTIATED: nx_int = 1 |
| 41 | const NX_ME_V_DIFFERENTIATION_REFUSED: nx_int = 2 // no resources for role |
| 42 | const NX_ME_V_INVALID: nx_int = 3 |
| 43 | const NX_ME_V_NULL: nx_int = 4 |
| 44 | const NX_ME_V_N: nx_int = 5 |
| 57 | const NX_ME_C_BYTES: nx_int = 48 |
| 69 | const NX_ME_BYTES: nx_int = 56 |
functions
| 73 | func nx_me_role_is_valid(r: nx_int) -> nx_int |
| 79 | func nx_me_v_is_valid(v: nx_int) -> nx_int called by 1: main |
| 85 | func nx_me_role_is_compute_heavy(r: nx_int) -> nx_int called by 1: main |
| 95 | func nx_me_new(meristem_id: nx_int, |
| 113 | func _me_cell_at(m: *NxMeristem, idx: nx_int) -> *NxCell |
| 122 | func nx_me_spawn(m: *NxMeristem, lineage_depth: nx_int, now_us: nx_size) -> nx_int called by 1: main |
| 138 | func nx_me_find_cell(m: *NxMeristem, cell_id: nx_int) -> *NxCell |
| 151 | func nx_me_differentiate(m: *NxMeristem, |
| 168 | func nx_me_count_by_role(m: *NxMeristem, role: nx_int) -> nx_int |
| 180 | func nx_me_undifferentiated_count(m: *NxMeristem) -> nx_int |
| 184 | func nx_me_max_lineage_depth(m: *NxMeristem) -> nx_int |