nx_search_extern.nx
buildroot/runtime/nx_search_extern.nx
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
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
structs
| none |
consts
| 12 | const K_MAGIC_4194304: i64 = 4194304 |
| 13 | const K_MAGIC_1024: i64 = 1024 |
functions
| 15 | func sp(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 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 } |
| 17 | func 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 } |
| 18 | func 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 |
| 20 | func se_count(buf: *u8, n: i64, needle: *u8) -> i64 |
| 32 | func se_spans(buf: *u8, n: i64, openm: *u8, closeb: i64, maxk: i64, skip: i64) -> i64 |
| 53 | func se_join(argc: i64, argv: *i64, out: *u8) -> i64 |
| 66 | func se_fetch(store: *TrustStore, url: *u8, out: *u8, cap: i64, label: *u8) -> i64 |
| 87 | func main(argc: i64, argv: *i64) -> i64 |