code wiki / _hdl_build / nx_research_grow_full.nx

nx_research_grow_full.nx

buildroot/runtime/_hdl_build/nx_research_grow_full.nx

4591 B88 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic research
docsdependenciesstructsconstsfunctions

about

nx_research_grow_full.nx -- ECOSYSTEM-NATIVE driver: grow the researcher index until it has caught up to the whole fetched corpus, WITHOUT any shell loop (operator: no sh / no 3rd party -- the repetition itself is a Nishi organ). It forks nx_research_grow as a fresh process each pass (so every pass is OOM-safe -- the toolchain has no munmap, so one giant process would leak; many bounded passes do not), then reads the growth-ledger artifact (loose coupling -- it consumes grow's output, never reaches into grow) to detect caught-up (last line new=0). Stops at caught-up or GF_MAX passes. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_search_inverted_persist.nx nx_itoa_lib.nx nx_research_grow_full.nx

imports: nx_search_inverted_persist.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gf_puts gf_last_unique sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close gf_run sys_fork sys_openat_wr sys_dup3 sys_execve sys_wait4 gf_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write sys_munmap

structs

none

consts

10const GF_MAX: i64 = 40 // safety cap on passes (40*50 = 2000 docs >> corpus)

functions

12func gf_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main
17func gf_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
20func gf_run(organ: *u8) -> i64
44func gf_last_unique() -> i64
called by 1: main calls 1: sys_read_file
67func main() -> i64