code wiki / (root) / nx_search_extern.nx

nx_search_extern.nx

buildroot/runtime/nx_search_extern.nx

6571 B114 linesdepth 21pulls 147 transitivereach 3 importersview sourcekind tooltopic search
docsdependenciesstructsconstsfunctions

about

nx_search_extern.nx -- SOVEREIGN EXTERNAL-SEARCH FEDERATION (the #1 discovery gap). Queries OTHER search systems -- arXiv (the research frontier) + GitHub (code frontier) -- over Nishi's OWN sovereign TLS 1.3 (no external SDK, no API key), parses their responses, and merges into one frontier list. This is what lets the intake engine SEE where a field is moving (mature 'lightbulb' vs emergent 'photonic/quantum') instead of relying on a hand-kept URL list. Composes nx_https_fetch_follow (proven live: arXiv 200 + GitHub 200). Usage: nx_search_extern <term> [term ...] (default: photonic computing) license_tier: ORIGINAL

dependencies 5 imports · 3 importers

nx_syscalls.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_https_fetch_follow.nx nx_net_polite.nx nx_search_extern.nx nx_frontier_watch.nx nx_search_emerge.nx nx_search_extern_gate.nx

imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.nxnx_net_polite.nx

imported by: nx_frontier_watch.nxnx_search_emerge.nxnx_search_extern_gate.nx

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

main sp sys_write nx_trust_store_load_from_c sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_nss_certdata_parse sys_mmap ↻ _pat_class_cert _pat_value_octal _pat_end _find_newline _starts_with _parse_octal_line sys_mmap ↻ _is_space _decode_octal_escape _is_octal trust_store_alloc sys_mmap ↻ nx_x509_trust_store_load sys_mmap ↻ x509_parse sys_mmap ↻ asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_tag asn1_read_length asn1_read_length ↻ x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id

structs

none

consts

12const K_MAGIC_4194304: i64 = 4194304
13const K_MAGIC_1024: i64 = 1024

functions

15func sp(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 3: se_spansse_fetchmain calls 1: sys_write
16func sn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } var m: i64=v; if m<0 { sys_write(1,"-" as *u8,1); m=0-m } let t: *u8=sys_mmap(28); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } while k>0 { k=k-1; sys_write(1,(((t as i64)+k) as *u8),1) } return 0 }
called by 2: se_fetchmain calls 2: sys_writesys_mmap
17func se_app(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8) { dst[off+i]=s[i]; i=i+1 } return off+i }
called by 3: mainse_joinmain
18func se_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8) { n=n+1 } return n }
called by 1: se_spans
20func se_count(buf: *u8, n: i64, needle: *u8) -> i64
called by 2: mainmain
32func se_spans(buf: *u8, n: i64, openm: *u8, closeb: i64, maxk: i64, skip: i64) -> i64
called by 2: mainmain calls 3: se_strlenspsys_write
53func se_join(argc: i64, argv: *i64, out: *u8) -> i64
called by 2: mainmain calls 1: se_app
66func se_fetch(store: *TrustStore, url: *u8, out: *u8, cap: i64, label: *u8) -> i64
87func main(argc: i64, argv: *i64) -> i64