nx_award_page_probe.nx source
↩ module page · 44 lines · 3257 B
1// nx_award_page_probe.nx -- MEASURED evidence that web_assets/lds_award.html demonstrates the award-winning
2// TECHNIQUES the nx_award_ui_census marked ABSENT. Byte-scans the page for each technique marker (composes
3// nx_uxcx_grade's pure uxg_has_lit). HONEST: this proves the TECHNIQUE is present (byte-detectable), NOT that
4// it is beautiful -- award-quality is human-judged (the operator). Moves census cells ABSENT->PRESENT, never
5// ->EXCEEDS. license_tier: ORIGINAL expect_exit: 0
6import "nx_syscalls_x86_64.nx"
7import "nx_uxcx_grade.nx"
8
9func pw(s: *u8) -> i64 { var n: i64=0; while s[n]!=0 { n=n+1 } sys_write(1,s,n); return 0 }
10func pn(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 }
11func chk(h: *u8, n: i64, lit: *u8, cell: *u8, tot: *i64) -> i64 {
12 let ok: i64 = uxg_has_lit(h,n,lit)
13 pw(" " as *u8); pw(cell); pw(" : " as *u8)
14 if ok==1 { pw("PRESENT (technique detected)\n" as *u8); tot[0]=tot[0]+1 } else { pw("absent\n" as *u8) }
15 tot[1]=tot[1]+1
16 return 0
17}
18
19func main() -> i64 {
20 let len_p: *i64 = sys_mmap(8) as *i64
21 let h: *u8 = sys_read_file_x86_64("web_assets/lds_award.html" as *u8, len_p)
22 if h == (0 as *u8) { pw("cannot read web_assets/lds_award.html\n" as *u8); return 5 }
23 let n: i64 = len_p[0]
24 let tot: *i64 = sys_mmap(16) as *i64
25 tot[0]=0; tot[1]=0
26
27 pw("=== nx_award_page_probe -- award TECHNIQUES demonstrated by lds_award.html (measured, not self-scored) ===\n" as *u8)
28 chk(h, n, "class=\"constel" as *u8, "AD generative-SVG hero (constellation) " as *u8, tot)
29 chk(h, n, "radial-gradient" as *u8, "AD generative aurora backdrop " as *u8, tot)
30 chk(h, n, "#0A0A0F" as *u8, "AD bold palette on dark " as *u8, tot)
31 chk(h, n, ">01</div>" as *u8, "AD editorial storytelling (01/02/03) " as *u8, tot)
32 chk(h, n, "11.5vw" as *u8, "TY expressive display type (fluid huge) " as *u8, tot)
33 chk(h, n, "background-clip:text" as *u8, "TY gradient-filled type " as *u8, tot)
34 chk(h, n, "@keyframes rise" as *u8, "MO entrance animation " as *u8, tot)
35 chk(h, n, "animation-timeline:view" as *u8, "MO scroll-driven choreography (no-JS) " as *u8, tot)
36 chk(h, n, "nth-child(even)" as *u8, "LA grid-breaking / asymmetric editorial " as *u8, tot)
37 chk(h, n, "prefers-reduced-motion" as *u8, "MO reduced-motion respected (a11y) " as *u8, tot)
38
39 pw("--- TECHNIQUE COVERAGE = " as *u8); pn(tot[0]); pw(" / " as *u8); pn(tot[1]); pw(" ---\n" as *u8)
40 pw(" These move nx_award_ui_census AD/TY/MO/LA cells ABSENT->PRESENT (technique present).\n" as *u8)
41 pw(" STILL ABSENT (honest): distinctive TYPEFACE (needs a bundled font), 3D/WebGL, real photography/illustration.\n" as *u8)
42 pw(" EXCEEDS stays UNCLAIMED -- award-quality beauty is human-judged (operator), not byte-scannable.\n" as *u8)
43 return 0
44}