code wiki / _hdl_build / nx_perma_mine.nx
nx_perma_mine.nx
buildroot/runtime/_hdl_build/nx_perma_mine.nx
about
nx_perma_mine.nx -- LIB: GRIND the permaculture corpus into structured AFFORDABILITY facts (operator: "grind
this as part of our affordability improvement"). Two extractions over the license-clean perma_*.raw corpus:
1. COMPANION PLANTING -- crop co-occurrence in the corpus = which crops to grow together for better yield
(more food per square foot = more affordability). Promoted to garden:companion:<a>:<b>.
2. SOIL-IMPROVEMENT RANKING -- how often each cheap soil practice (compost, mulch, cover crop, ...) appears
= an evidence-ranked list of the cheapest ways to build fertility (free compost beats bought fertilizer).
FACTS-ONLY + LICENSE-GATED (reuses the recipe miner fm_* + the provenance gate). This GROWS the researcher
from a fetcher into a synthesizer (signal extraction), per the grow-the-researcher doctrine. license_tier: ORIGINAL
dependencies 6 imports · 1 importers
imports: nx_food_recipe_mine.nxnx_garden.nxnx_food_provenance.nxnx_food_science.nxnx_seg_store.nxnx_syscalls.nx
imported by: nx_perma_mine_gate.nx
structs
| none |
consts
| none |
functions
| 17 | func pm_count_term(c: *u8, clen: i64, term: *u8, tl: i64) -> i64 called by 1: main |
| 37 | func pm_lower_term(t: *u8) -> i64 |
| 44 | func pm_promote_companions(prefix: *u8, world: *i64, cooc: *i64) -> i64 |
| 77 | func pm_companion(prefix: *u8, a: *u8, b: *u8) -> i64 |