code wiki / _hdl_build / nx_research_query.nx
nx_research_query.nx
buildroot/runtime/_hdl_build/nx_research_query.nx
about
nx_research_query.nx -- RESEARCH SURFACING over the sovereign Nishi library: at a juncture point, search
our OWN no-link-rot corpus for a term and return the hits as REPRODUCIBLE, CID-cited knowledge chunks (the
citation is a content CID, retrievable byte-identical forever -- a citation that cannot rot). This is the
first rung of the research engine: nx_library (corpus) + this (find) -> nx_researcher/nx_scientist (reason +
reproducibility-review) -> nx_race_referee (measured grade). Composes nx_library. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.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
| 9 | func rq_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 10 | func rq_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: rq_find |
| 11 | func rq_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 } |
| 14 | func rq_find(buf: *u8, n: i64, needle: *u8) -> i64 |
| 27 | func rq_search(term: *u8) -> i64 |
| 58 | func main() -> i64 |