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

6061 B101 linesdepth 7pulls 23 transitivereach 0 importersview sourcekind gate/prooftopic video
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_gate_emit_lib.nx nx_wasm_vm.nx nx_video_client_wasm.nx nx_video_client_wasm_vm_gate.n

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

main g_puts sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit g_pn sys_mmap ↻ sys_write ↻ wm_new sys_mmap ↻ wm_parse sys_mmap ↻ wv_u8 wv_uleb g_check g_puts ↻ wm_find_export wm_name_eq wm_run wm_find_export ↻ sys_mmap ↻ wm_call sys_mmap ↻ wv_u8 ↻ wm_memo_get wm_match_end sys_mmap ↻ sys_write ↻ sys_exit ↻ wv_u8 ↻ wm_skip_imm wv_u8 ↻ wv_uleb ↻ wv_sleb

structs

none

consts

20const VCW_PATH: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/web_assets/nx_video_client.staged.wasm"
21const VCW_LOG: *u8 = "knowledge/status/vc_wasm_vm.log"

functions

23func 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 }
called by 1: main calls 1: sys_write
24func main() -> i64