code wiki / _hdl_build / nx_crawl_burst.nx
nx_crawl_burst.nx
buildroot/runtime/_hdl_build/nx_crawl_burst.nx
about
nx_crawl_burst.nx -- Coordinates distributed web crawling with governed budgets, lease atomicity, and shard merging into a unified index.
dependencies 4 imports · 0 importers
imports: nx_gate_gn.nxnx_gate_base.nxnx_resource_governor.nxnx_syscalls.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
| 20 | const NX_MAGIC_4096: i64 = 4096 |
| 21 | const NX_MAGIC_65536: i64 = 65536 |
| 22 | const NX_MAGIC_5000: i64 = 5000 |
| 24 | const NX_CB_URLS_PER_UNIT: i64 = 10 // URLs a node crawls per governed budget-unit, per beat -- named (rule 11) |
functions
| 28 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 30 | func crawl_budget(ncpu: i64) -> i64 { return rg_hw_budget(RG_POLITE, ncpu, 0, 1000) * NX_CB_URLS_PER_UNIT } |
| 34 | func place_frontier(nurls: i64, budget: *i64, nnodes: i64, assign: *i64, claim: *i64) -> i64 |
| 47 | func main() -> i64 |