code wiki / _hdl_build / nx_bootstrap.nx

nx_bootstrap.nx

buildroot/runtime/_hdl_build/nx_bootstrap.nx

1868 B36 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind orphan library
docsdependenciesstructsconstsfunctions

about

nx_bootstrap.nx -- LIB: the DOOMSDAY self-sufficiency + ROI model. Scales the digital-twin/supply-chain capability from a single product up to the WHOLE fabrication bootstrap: the chain of machines/processes from the tiniest input (feedstock) up to making our OWN CPUs/GPUs. Each stage carries real numbers: capital cost (cents), build time (days), value produced (cents/day), and self_made (1 = we can build it from lower stages in-house, 0 = a must-buy "vitamin"). Computes SELF-SUFFICIENCY (permil makeable in-house), per-machine ROI/PAYBACK days, and the BOTTLENECKS (what stays bought -- chips, steppers per Gershenfeld). The leverage: closing the chip bottleneck (garage litho / additive CPU printing) is the biggest self-sufficiency jump. Inputs are RESEARCH-GROUNDED ESTIMATES (RepRap/OSE/Zeloof/CMU Hacker Fab); the rollup MATH is exact. never-brick #26: pure arithmetic, deterministic. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_bootstrap.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

12func boot_selfsuff_permil(self_made: *i64, n: i64) -> i64
19func boot_payback_days(capital: i64, value_per_day: i64) -> i64
25func boot_bottlenecks(self_made: *i64, n: i64) -> i64
32func boot_total_capital(capital: *i64, n: i64) -> i64