code wiki / _hdl_build / nx_realtime_research_run.nx
nx_realtime_research_run.nx source
↩ module page · 34 lines · 2206 B
1// nx_realtime_research_run.nx -- the SOVEREIGN half of the realtime-AV-room SOTA research pass. The tool layer
2// (WebFetch) fetched authoritative 2023-2026 sources into knowledge/fetched/realtime_*_sota.txt; this drives the team's
3// deterministic sovereign extractor (ce_extract) over the corpus. Fetch = tool; extract = Nishi. Mirrors
4// nx_h264_research_run.nx / _research_run.nx. license_tier: ORIGINAL
5import "nx_claim_extract.nx"
6import "nx_syscalls.nx"
7const K_MAGIC_1048576: i64 = 1048576
8const K_MAGIC_1048575: i64 = 1048575
9
10func rr_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
11func rr_putn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 }
12
13func run_one(path: *u8, buf: *u8, cap: i64, out: *i64) -> i64 {
14 let n: i64 = ce_read_file(path, buf, cap)
15 rr_puts(" " as *u8); rr_puts(path); rr_puts(": " as *u8)
16 if n <= 0 { rr_puts("MISSING/empty\n" as *u8); return 0 }
17 ce_extract(buf, n, out)
18 rr_puts("bytes=" as *u8); rr_putn(n); rr_puts(" sentences=" as *u8); rr_putn(out[0]); rr_puts(" fact_claims(num+unit)=" as *u8); rr_putn(out[1]); rr_puts("\n" as *u8)
19 return out[1]
20}
21
22func main() -> i64 {
23 rr_puts("NISHI-RESEARCH (sovereign ce_extract) over tool-fetched realtime-AV-room SOTA corpus:\n" as *u8)
24 let buf: *u8 = sys_mmap(K_MAGIC_1048576)
25 let out: *i64 = sys_mmap(64) as *i64
26 var tot: i64 = 0
27 tot = tot + run_one("knowledge/fetched/realtime_video_sota.txt" as *u8, buf, K_MAGIC_1048575, out)
28 tot = tot + run_one("knowledge/fetched/realtime_audio_sota.txt" as *u8, buf, K_MAGIC_1048575, out)
29 tot = tot + run_one("knowledge/fetched/realtime_netcode_sota.txt" as *u8, buf, K_MAGIC_1048575, out)
30 tot = tot + run_one("knowledge/fetched/realtime_transport_sota.txt" as *u8, buf, K_MAGIC_1048575, out)
31 rr_puts(" ---- TOTAL measurable fact-claims extracted sovereignly = " as *u8); rr_putn(tot); rr_puts(" ----\n" as *u8)
32 sys_exit(0)
33 return 0
34}