code wiki / (root) / nx_econsim_page.nx

nx_econsim_page.nx

buildroot/runtime/nx_econsim_page.nx

15361 B245 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_econsim_page.nx -- EMIT the live nishifamily.com/econsim page for the Capitalism Lab (EconSim). Self-contained game-side emitter: it imports the sovereign sim organs and renders their output COMPUTED AT RENDER TIME (no hand-typed numbers), then writes web_assets/econsim.html. Publishing is the separate sovereign step nx_aw_push (additive, vault-backed) -- the shared loop every property reuses. No JS/HTML is hand-written; this organ authors the page. license_tier: ORIGINAL genealogy_id: capitalism_lab_econsim_page lineage_id: nx_econsim_page_v1

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_caplab_market.nx nx_caplab_compete.nx nx_caplab_supply.nx nx_caplab_sim.nx nx_caplab_quality.nx nx_econsim_page.nx

imports: nx_syscalls.nxnx_caplab_market.nxnx_caplab_compete.nxnx_caplab_supply.nxnx_caplab_sim.nxnx_caplab_quality.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_now_realtime_sec sys_mmap sys_clock_gettime_real sys_mmap ↻ ec_cat ec_catn sys_mmap ↻ nx_clab_optimal_price nx_clab_profit nx_clab_demand nx_clab_demand ↻ nx_clab_profit ↻ nx_clab_demand ↻ nx_clab_revenue nx_clab_demand ↻ nx_clab_split nx_clab_appeal_sum nx_clab_appeal sys_mmap ↻ nx_clab_appeal ↻ nx_clab_firm_profit nx_clab_unit_cost nx_clab_throughput nx_clab_sim_run sys_mmap ↻ nx_clab_sim_tick sys_mmap ↻ nx_clab_split ↻ nx_clab_split_qb sys_mmap ↻ nx_clab_appeal_qb nx_clab_apportion sys_mmap ↻ sys_openat_wr sys_write sys_exit sys_close

structs

none

consts

19const EC_OUT: *u8 = "web_assets/econsim.html"
20const EC_CAP: i64 = 262144

functions

23func ec_cat(dst: *u8, off: i64, s: *u8) -> i64
called by 1: main
31func ec_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
44func main() -> i64