code wiki / (root) / nx_econsim_app.nx

nx_econsim_app.nx

buildroot/runtime/nx_econsim_app.nx

17697 B117 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_econsim_app.nx -- PLAYABLE in-browser Capitalism Lab client for /econsim. Organ-emitted (nx_vroom_html seam, no hand-written client); JS mirrors the gated nx_caplab_* organs. R5 multi-product portfolio + R6 cities/map (Expand) + R7 FINANCE (take loans up to a credit line, pay interest monthly, repay, go BANKRUPT if net worth sinks below your credit). license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_econsim_app.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ea sys_openat_wr sys_write ↻ sys_exit ↻ sys_close

structs

none

consts

9const EA_OUT: *u8 = "web_assets/econsim.html"
10const EA_CAP: i64 = 262144

functions

12func ea(dst: *u8, off: i64, s: *u8) -> i64
called by 1: main
19func main() -> i64