code wiki / _hdl_build / nx_video_client_wasm_vm_gate.nx
nx_video_client_wasm_vm_gate.nx
buildroot/runtime/_hdl_build/nx_video_client_wasm_vm_gate.nx
about
nx_video_client_wasm_vm_gate.nx -- SOVEREIGN deploy gate for the rebuilt
nx_video_client.wasm (the family-room browser core). The ecosystem's OWN
wasm VM (nx_wasm_vm) EXECUTES the freshly-rebuilt wasm and DIFFs it against
the native source (nx_video_client_wasm) -- no cmp/xxd/grep, all in-organ.
Why this exists: the rebuilt wasm came out ~3KB smaller than the 2-week-old
deployed one. Before pushing to the LIVE family room we PROVE the rebuild is
(a) parseable, (b) functionally COMPLETE (every export app.js calls is
present), and (c) FAITHFUL -- the VM-executed functions match native byte
for byte, including vc_ladder_floor (the exported pure neighbor of the
governor fix vc_ladder_step, same file + same compile pass) and the
byte-memory path vc_wr_u32/vc_rd_u32 (the exact thing a bad wat->wasm
lowering would corrupt). If this is GREEN, the smaller size is just a more
compact compiler, not missing/!broken logic. expect_exit: 0 license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_wasm_vm.nxnx_video_client_wasm.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
| 20 | const VCW_PATH: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/web_assets/nx_video_client.staged.wasm" |
| 21 | const VCW_LOG: *u8 = "knowledge/status/vc_wasm_vm.log" |
functions
| 23 | func fw(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 24 | func main() -> i64 |