nx_emitter_bench.nx
buildroot/runtime/nx_emitter_bench.nx
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
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
structs
| none |
consts
| none |
functions
| 17 | func bw(s: *u8) -> i64 { var n: i64=0; while s[n]!=0 { n=n+1 } sys_write(1,s,n); return 0 } |
| 18 | func 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 } |
| 19 | func 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 |
| 22 | func page_uxcx(h: *u8, n: i64) -> i64 called by 1: grade_one calls 7: uxg_escaping_okuxg_viewport_okuxg_skiplink_okuxg_lang_okuxg_title_okuxg_nav_ok+1 |
| 34 | func design_signals(h: *u8, n: i64) -> i64 |
| 48 | func canonical_tokens(h: *u8, n: i64) -> i64 { return uxg_has_lit(h,n,"var(--nx-" as *u8) } |
| 51 | func gaps(h: *u8, n: i64) -> i64 |
| 61 | func grade_one(name: *u8, path: *u8, tot: *i64) -> i64 |
| 83 | func main() -> i64 |