code wiki / _hdl_build / nx_browser_js_census.nx

nx_browser_js_census.nx

buildroot/runtime/_hdl_build/nx_browser_js_census.nx

11855 B144 linesdepth 7pulls 22 transitivereach 0 importersview sourcekind tooltopic browser
docsdependenciesstructsconstsfunctions

about

nx_browser_js_census.nx -- RESEARCH-GROUNDED scorecard + build-ladder for the Nishi browser's JS-EXECUTION rung (operator 2026-07-06: "keep going on the nishi browser ... works for user AND search AND researcher ... really use nishi researcher to get it state of the art on what you called out"). MECHANICAL: each JS-capability row RUNS a real snippet through the gated engine (js_run_source) -- a present capability RUNS (rc=0), an absent one ERRORS (rc=1) NAMING its build organ. Self-flips when the rung lands (like nx_browser_os_census). Grounded vs the banked SOTA refs (knowledge/fetched/br_*). State threaded via args (NishiLang has no mutable module globals): hfd = HTML fd, st = *i64 tallies [0]=have [1]=gap [2]=broken. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_js_eval.nx nx_browser_js_census.nx

imports: nx_js_eval.nx

imported by: nobody (leaf or entry point)

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

main bw cexists bn sys_openat_wr hw cslen hwn jsrow cprobe cslen ↻ bw ↻ hw ↻ citerow cexists ↻ bw ↻ hw ↻ cprobe ↻

structs

none

consts

none

functions

11func bw(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: jsrowciterowmain
12func bn(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(24); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } let o: *u8=sys_mmap(24); var q: i64=k-1; var x: i64=0; while q>=0 { o[x]=t[q]; x=x+1; q=q-1 } sys_write(1,o,x); return 0 }
called by 1: main
13func cslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: cprobehw
14func cexists(p: *u8) -> i64 { let fd: i64 = sys_openat_rd(p); if fd >= 0 { sys_close(fd); return 1 } return 0 }
called by 2: citerowmain
15func cprobe(s: *u8) -> i64 { let out: *i64 = sys_mmap(16) as *i64; return js_run_source(s, cslen(s), out) }
called by 2: jsrowmain calls 1: cslen
18func hw(fd: i64, s: *u8) -> i64 { sys_write(fd, s, cslen(s)); return 0 }
called by 3: jsrowciterowmain calls 1: cslen
19func hwn(fd: i64, v: i64) -> i64 { if v==0 { sys_write(fd,"0" as *u8,1); return 0 } var m: i64=v; if m<0 { sys_write(fd,"-" as *u8,1); m=0-m } let t: *u8=sys_mmap(24); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } let o: *u8=sys_mmap(24); var q: i64=k-1; var x: i64=0; while q>=0 { o[x]=t[q]; x=x+1; q=q-1 } sys_write(fd,o,x); return 0 }
called by 1: main
22func jsrow(fd: i64, st: *i64, name: *u8, snippet: *u8, mustrun: i64, organ: *u8) -> i64
called by 1: main calls 3: cprobebwhw
43func citerow(fd: i64, st: *i64, name: *u8, kind: i64, evid_path: *u8, note: *u8) -> i64
called by 1: main calls 3: cexistsbwhw
56func main(argc: i64, argv: *i64) -> i64