nx_chemotaxis.nx
buildroot/runtime/nx_chemotaxis.nx
about
nx_chemotaxis.nx -- service discovery via signal gradient.
Biology: chemotaxis is movement of cells along chemical gradients
(immune cells toward inflammation, bacteria toward nutrients).
Substrate: discover service location by following published signal
gradients (signal strength = quality of match).
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_tier.nx
imported by: nx_chemotaxis_test.nx
structs
| 18 | struct NxChemoTarget |
consts
| 10 | const NX_MAGIC_1024: i64 = 1024 |
| 12 | const NX_CT_V_FOUND: nx_int = 0 |
| 13 | const NX_CT_V_NOT_FOUND: nx_int = 1 |
| 14 | const NX_CT_V_GRADIENT_WEAK: nx_int = 2 |
| 15 | const NX_CT_V_NULL: nx_int = 3 |
| 16 | const NX_CT_V_N: nx_int = 4 |
| 26 | const NX_CT_BYTES: nx_int = 40 |
functions
| 28 | func nx_ct_v_is_valid(v: nx_int) -> nx_int called by 1: main |
| 34 | func nx_ct_target_new(target_id: nx_int, |
| 52 | func nx_ct_target_score_q10(t: *NxChemoTarget) -> nx_int |
| 59 | func nx_ct_target_is_fresh(t: *NxChemoTarget, now_us: nx_size, called by 1: main |
| 67 | func nx_ct_classify(t: *NxChemoTarget, threshold_q10: nx_int) -> nx_int |
| 75 | func nx_ct_pick_strongest(a: *NxChemoTarget, b: *NxChemoTarget) -> *NxChemoTarget |