code wiki / _hdl_build / nx_scilib_build.nx

nx_scilib_build.nx

buildroot/runtime/_hdl_build/nx_scilib_build.nx

3208 B52 linesdepth 10pulls 13 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_scilib_build.nx -- driver: ingest the FOUNDATIONED science documents we have fetched (NIST CODATA, NIST Atomic Weights, IUPAC/CIAAW) into the sovereign Nishi library (nx_library), then print the running index. Each doc is now content-addressed in our own store -> we OWN the bytes -> no link rot. Re-running is idempotent (dedup by CID). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_library.nx nx_scilib_build.nx

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

main sb_w sys_write sb_ingest sys_mmap lib_ingest sys_mmap ↻ lib_read sys_openat_rd sys_read sys_close cat_ingest_cid ar_cid cid_of sys_mmap ↻ sha256_digest cid_from_digest sys_munmap ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_cat ss_loadfile ss_load_aux2 ssl_total_keys ssl_pow2 ssl_build ss_r32 ssl_lookup ss_manifest_free sys_munmap ↻ sys_mmap ↻ cat_idx_load sys_mmap ↻ ss_hget sys_mmap ↻ ss_idx_find cat_idx_key cat_idx_has

structs

none

consts

none

functions

9func sb_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: sb_ingestmain calls 1: sys_write
14func sb_n(v: i64) -> i64 { nxi_out(v); return 0 }
calls 1: nxi_out
15func sb_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: sb_ingest calls 2: sys_mmapsys_write
17func sb_ingest(path: *u8, src: *u8, title: *u8) -> i64
called by 1: main calls 4: sys_mmaplib_ingestsb_wsb_pfx
25func main() -> i64
calls 2: sb_wsb_ingest