code wiki / _hdl_build / nx_solarsim_html.nx
nx_solarsim_html.nx
buildroot/runtime/_hdl_build/nx_solarsim_html.nx
about
nx_solarsim_html.nx -- SOVEREIGN packager: the real N-body solar-system wasm -> self-contained .html that runs in
any browser. The emitted JS does ONLY: (1) BLIT our wasm framebuffer to the canvas via putImageData (copy bytes,
NOT canvas drawing), (2) drive the sim each animation frame (ex.tick(0)) and forward R (reset) / space (pause).
ALL gravity physics + integer rasterization live in our sovereign wasm (no JS logic, no canvas-draw, no float,
no 3rd-party). Honest copy: this is the real N-body solar system whose periods EMERGE from the physics and match
real measured planetary data (validated by nx_sim_validation_real_gate + nx_solarsim_gate).
usage: nx_solarsim_html <in.wasm> <out.html>. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_base64.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
| none |
functions
| 11 | func hw(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 } |
| 13 | func main(argc: i64, argv: *i64) -> i64 |