code wiki / _hdl_build / nx_library_consume.nx
nx_library_consume.nx
buildroot/runtime/_hdl_build/nx_library_consume.nx
about
nx_library_consume.nx -- the CONSUME engine: ingest a queue of fetched science documents into the sovereign
no-link-rot library (nx_library). The queue is an INLINED sovereign seed (extensible; grows as the
researcher fetches more during downtime -- the eventual data-driven source list lives in the seg_store, NOT
a TSV). Each doc -> content-addressed CID + dedup + running index + metadata. Idempotent (re-run = all DUP).
This is "downtime consuming": fetch (nx_research_fetch) lands files in knowledge/fetched/, this sweeps them
into the corpus so the knowledge is owned + reproducibly citable forever. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_library.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 11 | func cw_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 16 | func cw_n(v: i64) -> i64 { nxi_out(v); return 0 } calls 1: nxi_out |
| 17 | func cw_pfx(cid: *u8, k: i64) -> i64 { var i: i64=0; while i<k { if cid[i]==(0 as u8){break} let o: *u8=sys_mmap(1); o[0]=cid[i]; sys_write(1,o,1); i=i+1 } return 0 } |
| 19 | func cons_one(path: *u8, src: *u8, title: *u8, nw: *i64, dup: *i64) -> i64 |
| 27 | func main() -> i64 |