code wiki / _hdl_build / nx_dep_retire.nx

nx_dep_retire.nx

buildroot/runtime/_hdl_build/nx_dep_retire.nx

1585 B29 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic dep
docsdependenciesstructsconstsfunctions

about

nx_dep_retire.nx -- track the RETIREMENT of 3rd-party dependencies (operator: "get rid of the remaining dependencies... build the nishi team to retire those, only as benchmarking tools"). Each tool: has the team built a SOVEREIGN NishiLang replacement? -> RETIRED (the tool is now kept ONLY as a benchmark/reference, not a dependency); else REMAINING (owed a replacement); the OS kernel is SUBSTRATE (the floor, not retirable). As replacements land, the Auditor reclassifies the tool from DEPENDENCY to demarcated COMPETITOR. license_tier: ORIGINAL Pairs with nx_auditor.

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_dep_retire.nx nx_dep_retire_test.nx

imports: nx_syscalls.nx

imported by: nx_dep_retire_test.nx

structs

none

consts

10const DR_RETIRED: i64 = 1 // sovereign replacement exists -> the tool is now BENCHMARK-ONLY
11const DR_REMAINING: i64 = 2 // still a real dependency -> owed a sovereign replacement
12const DR_SUBSTRATE: i64 = 3 // OS kernel / hardware -- the floor, not retirable

functions

14func dr_status(has_replacement: i64, is_substrate: i64) -> i64
called by 1: main
21func dr_benchmark_only(status: i64) -> i64 { if status == DR_RETIRED { return 1 } return 0 }
called by 1: main
23func dr_count(statuses: *i64, n: i64, kind: i64) -> i64
29func dr_remaining_deps(statuses: *i64, n: i64) -> i64 { return dr_count(statuses, n, DR_REMAINING) }
called by 1: main calls 1: dr_count