code wiki / (root) / nx_emitter_bench.nx

nx_emitter_bench.nx

buildroot/runtime/nx_emitter_bench.nx

6937 B114 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind bench
docsdependenciesstructsconstsfunctions

about

nx_emitter_bench.nx -- BENCHMARK the autonomous UI emitters on their ACTUAL emitted output. Operator: "benchmark the autonomous site emitter and template generator ... so we get s class exceeds." For each emitter's real output HTML we MEASURE (never self-score) three honest dimensions: (1) STRUCTURE/A11Y/SOVEREIGNTY -- the 7 page checks of nx_uxcx_grade (composed: uxg_* are pure). (2) DESIGN SIGNALS /9 -- mirrors nx_brand_aesthetic bq_score's objective HTML signals (any-token / :root / type-hierarchy / responsive / reduced-motion / focus-visible / semantic-landmarks / hover / padding), scanned via the composed uxg_has_lit. (3) CANONICAL TOKENS -- does the page use var(--nx-*), the shared design-token SSOT? This is the S-class differentiator: the "fragmented adoption" gap the operator is hitting. SUBJECTIVE beauty stays human-judged (nx_brand_census R6 honest-BEHIND) -- NOT claimed here. (Mirrors bq_score via uxg_has_lit instead of importing nx_brand_aesthetic, which pulls nx_syscalls.nx and would collide with the nx_syscalls_x86_64 file-read layer -- the syscall-dup gotcha.) license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_uxcx_grade.nx nx_emitter_bench.nx

imports: nx_syscalls_x86_64.nxnx_uxcx_grade.nx

imported by: nobody (leaf or entry point)

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

main bw grade_one pad bw ↻ page_uxcx uxg_escaping_ok uxg_has_lit uxg_has uxg_len uxg_viewport_ok uxg_has_lit ↻ uxg_skiplink_ok uxg_has_lit ↻ uxg_lang_ok uxg_has_lit ↻ uxg_title_ok uxg_has_lit ↻ uxg_nav_ok uxg_has_lit ↻ uxg_sovereign_ok uxg_has_lit ↻ design_signals uxg_has_lit ↻ canonical_tokens uxg_has_lit ↻ bn gaps canonical_tokens ↻ bw ↻ uxg_has_lit ↻ uxg_skiplink_ok ↻ bn ↻

structs

none

consts

none

functions

17func bw(s: *u8) -> i64 { var n: i64=0; while s[n]!=0 { n=n+1 } sys_write(1,s,n); return 0 }
called by 3: gapsgrade_onemain
18func bn(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-(m/10)*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 }
called by 2: grade_onemain
19func pad(name: *u8, w: i64) -> i64 { var n: i64=0; while name[n]!=0 { n=n+1 } sys_write(1,name,n); while n<w { sys_write(1," " as *u8,1); n=n+1 } return 0 }
called by 1: grade_one
22func page_uxcx(h: *u8, n: i64) -> i64
34func design_signals(h: *u8, n: i64) -> i64
called by 1: grade_one calls 1: uxg_has_lit
48func canonical_tokens(h: *u8, n: i64) -> i64 { return uxg_has_lit(h,n,"var(--nx-" as *u8) }
called by 2: gapsgrade_one calls 1: uxg_has_lit
51func gaps(h: *u8, n: i64) -> i64
61func grade_one(name: *u8, path: *u8, tot: *i64) -> i64
83func main() -> i64
calls 3: bwgrade_onebn