code wiki / _hdl_build / nx_library_page.nx
nx_library_page.nx
buildroot/runtime/_hdl_build/nx_library_page.nx
about
nx_library_page.nx -- MLIB-007 (CALLOUT-012). The ENDPOINT: emit the nishi-library UI via the
PROVEN nx_web_builder (responsive CSS baked in -> the browser-exceeds-desktop / responsive
desktop+TV+mobile surface). v1: ONE unified mixed-media grid (auto-fit responsive grid) over
ALL pillars (video/photos+gifs/audio/books+manga/3D-STL/games) + search + trust signals; UX
gated by wb_ux_compliant. Writes knowledge/nishi-library.html, then READS IT BACK and asserts
the markers (no blind emit, rule 5). Live playback / GPU decode / cast / scrub-latency ride the
browser RUNTIME = the next slice (MLIB-008). Self-validating gate (LIBPAGEGATE). license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_web_builder.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
| 11 | const LP_MAGIC_60000: i64 = 60000 |
| 13 | const LP_OUT: *u8 = "knowledge/nishi-library.html" |
functions
| 15 | func lp_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 20 | func lp_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 22 | func lp_readfile(path: *u8, buf: *u8, cap: i64) -> i64 |
| 31 | func lp_contains(buf: *u8, n: i64, needle: *u8) -> i64 called by 1: main |
| 39 | func main() -> i64 |