code wiki / _hdl_build / nx_research_query.nx

nx_research_query.nx

buildroot/runtime/_hdl_build/nx_research_query.nx

3354 B65 linesdepth 10pulls 12 transitivereach 0 importersview sourcekind tooltopic research
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_library.nx nx_research_query.nx

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

main rq_w sys_write rq_search rq_w ↻ sys_mmap lib_list cat_list ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 ssc_retire_handle cat_idx_load sys_mmap ↻ ss_hget sys_mmap ↻ ss_idx_find cat_idx_key lib_get cat_get ar_get_by_cid ss_open_cached ↻ ss_hget ↻ rq_find rq_strlen rq_pfx sys_mmap ↻ sys_write ↻ lib_meta sys_mmap ↻ ss_get sys_mmap ↻ ss_scan sys_mmap ↻

structs

none

consts

none

functions

9func 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 }
called by 2: rq_searchmain calls 1: sys_write
10func 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
11func 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 }
called by 1: rq_search calls 2: sys_mmapsys_write
14func rq_find(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: rq_search calls 1: rq_strlen
58func main() -> i64