code wiki / _hdl_build / nx_ecodesign.nx
nx_ecodesign.nx
buildroot/runtime/_hdl_build/nx_ecodesign.nx
about
nx_ecodesign.nx -- LIB: the REGENERATIVE LANDSCAPE calculator (operator: "more than edibles -- medicinal +
wildlife in ALL our calculations; rainwater harvesting w/ 3D-printed concrete structures; climbing useful
plants (jasmine/grapes) on the concrete; share with wildlife while discouraging damage; optimal use of the
environment while improving it"). Every plant is valued on MULTIPLE axes (edible/medicinal/wildlife/climbing/
water/deer-resistance), so the design optimizes total ecosystem value, not just food. Rainwater capture is
integer math (no float). Climbing multi-value plants go on the 3D-printed concrete cistern wall. "Share with
wildlife while discouraging damage" = high wildlife value AND high deer-resistance. Each plant CITEs a real
fetched research source. Plants live in the food store keyed eco:plant:<id>.
Schema: eco:plant:<id> -> name <t> edible(0/1) <t> medicinal(0-10) <t> wildlife(0-10) <t> climbing(0/1) <t>
water(1-5) <t> deer_resist(0-10) <t> nfix(0/1) <t> cite
license_tier: ORIGINAL
dependencies 4 imports · 1 importers
imports: nx_food_science.nxnx_food_provenance.nxnx_seg_store.nxnx_syscalls.nx
imported by: nx_ecodesign_gate.nx
structs
| none |
consts
| none |
functions
| 17 | func ec_money(dst: *u8, off: i64, cents: i64) -> i64 calls 1: fd_apnum |
| 27 | func ec_plant_key(id: *u8, out: *u8) -> i64 |
| 34 | func ec_get(prefix: *u8, id: *u8, ptr: *i64, len: *i64) -> i64 |
| 39 | func ec_field_int(prefix: *u8, id: *u8, f: i64) -> i64 |
| 47 | func ec_field_str(prefix: *u8, id: *u8, f: i64, out: *u8) -> i64 |
| 53 | func ec_edible(prefix: *u8, id: *u8) -> i64 { return ec_field_int(prefix, id, 1) } |
| 54 | func ec_med(prefix: *u8, id: *u8) -> i64 { return ec_field_int(prefix, id, 2) } |
| 55 | func ec_wild(prefix: *u8, id: *u8) -> i64 { return ec_field_int(prefix, id, 3) } |
| 56 | func ec_climbing(prefix: *u8, id: *u8) -> i64 { return ec_field_int(prefix, id, 4) } |
| 57 | func ec_deer(prefix: *u8, id: *u8) -> i64 { return ec_field_int(prefix, id, 6) } |
| 60 | func ec_value(prefix: *u8, id: *u8, wfood: i64, wmed: i64, wwild: i64) -> i64 |
| 70 | func ec_share_safe(prefix: *u8, id: *u8) -> i64 |
| 75 | func ec_capture(roof_m2: i64, rainfall_mm: i64, runoff_pct: i64) -> i64 |
| 80 | func ec_seed(prefix: *u8) -> i64 |
| 115 | func ec_list(prefix: *u8, outids: *i64) -> i64 |
| 143 | func ec_render_design(prefix: *u8, roof_m2: i64, rainfall_mm: i64, out: *u8) -> i64 |