nx_world_emit.nx
buildroot/runtime/nx_world_emit.nx
about
nx_world_emit.nx -- NATIVE WORLD-FRAME EMISSION: the sovereign world scene, rendered SERVER-SIDE
by the promoted capture instrument (nx_world_snap.elf -- the same nx_wasm_craft engine source the
browser wasm is compiled from), PUBLISHED into the world docroot as plain media (PNG) that ANY
browser -- Nishi native, Chrome, Waterfox, Edge -- consumes with zero JS, zero wasm, zero WebGL,
zero third-party runtime. This ships the browser-board watch contract `we_world_frame_emit`
(browser.matrix row: Native world-frame EMISSION path, filed 2026-08-27, operator: "i want to
emit i dont want webgl and other 3d parties receiving our work and capabilities"): the
capability stops shipping client-side; only the FRAME leaves the estate.
COMPOSITION, NOT A TWIN: rendering stays in nx_world_snap (one engine, one ruler); this organ is
the missing SHIP LANE for frames -- render -> stage-assert -> atomic rename -> read-back, the
founding law of nx_craft_emit's page lane (what LANDED is the claim, never what was written).
usage: nx_world_emit [v] [seed] [ticks] (defaults v=1 seed=20260728 ticks=8; out pinned to
sites/nishifamily/world/emit_craft.png -- served at /world/emit_craft.png)
exit: 0 emitted+read-back-verified | 5 render-or-not-png | 6 deploy-rename | 7 readback
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| 18 | const WE_SNAP: *u8 = "nx_world_snap.elf" as *u8 |
| 19 | const WE_OUT: *u8 = "sites/nishifamily/world/emit_craft.png" as *u8 |
| 20 | const WE_STAGE: *u8 = "sites/nishifamily/world/emit_craft.png.stage" as *u8 |
| 24 | const WE_DEF_V: *u8 = "1" as *u8 |
| 25 | const WE_DEF_SEED: *u8 = "20260728" as *u8 |
| 26 | const WE_DEF_TICKS: *u8 = "8" as *u8 |
| 27 | const WE_STYLE_NONE: *u8 = "-" as *u8 |
| 28 | const WE_PNG_SIG: i64 = 8 |
functions
| 30 | func we_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 31 | func we_puts(s: *u8) -> i64 { sys_write(1, s, we_slen(s)); return 0 } |
| 32 | func we_pn(v: i64) -> i64 |
| 47 | func we_run5(elf: *u8, a1: *u8, a2: *u8, a3: *u8, a4: *u8, a5: *u8) -> i64 |
| 69 | func we_png_ok(b: *u8, n: i64) -> i64 |
| 84 | func we_world_frame_emit(v: *u8, seed: *u8, ticks: *u8) -> i64 |
| 117 | func main(argc: i64, argv: *i64) -> i64 |