code wiki / _hdl_build / nx_ecodesign.nx

nx_ecodesign.nx

buildroot/runtime/_hdl_build/nx_ecodesign.nx

12202 B206 linesdepth 5pulls 6 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

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

nx_food_science.nx nx_food_provenance.nx nx_seg_store.nx nx_syscalls.nx nx_ecodesign.nx nx_ecodesign_gate.nx

imports: nx_food_science.nxnx_food_provenance.nxnx_seg_store.nxnx_syscalls.nx

imported by: nx_ecodesign_gate.nx

structs

none

consts

none

functions

17func ec_money(dst: *u8, off: i64, cents: i64) -> i64
calls 1: fd_apnum
27func ec_plant_key(id: *u8, out: *u8) -> i64
called by 1: ec_get calls 1: as_append
34func ec_get(prefix: *u8, id: *u8, ptr: *i64, len: *i64) -> i64
39func ec_field_int(prefix: *u8, id: *u8, f: i64) -> i64
47func ec_field_str(prefix: *u8, id: *u8, f: i64, out: *u8) -> i64
53func ec_edible(prefix: *u8, id: *u8) -> i64 { return ec_field_int(prefix, id, 1) }
54func ec_med(prefix: *u8, id: *u8) -> i64 { return ec_field_int(prefix, id, 2) }
55func ec_wild(prefix: *u8, id: *u8) -> i64 { return ec_field_int(prefix, id, 3) }
56func ec_climbing(prefix: *u8, id: *u8) -> i64 { return ec_field_int(prefix, id, 4) }
called by 2: ec_render_designmain calls 1: ec_field_int
57func ec_deer(prefix: *u8, id: *u8) -> i64 { return ec_field_int(prefix, id, 6) }
60func ec_value(prefix: *u8, id: *u8, wfood: i64, wmed: i64, wwild: i64) -> i64
70func ec_share_safe(prefix: *u8, id: *u8) -> i64
called by 2: ec_render_designmain calls 2: ec_wildec_deer
75func ec_capture(roof_m2: i64, rainfall_mm: i64, runoff_pct: i64) -> i64
80func ec_seed(prefix: *u8) -> i64
115func ec_list(prefix: *u8, outids: *i64) -> i64
called by 2: ec_render_designmain calls 2: sys_mmapss_get
143func ec_render_design(prefix: *u8, roof_m2: i64, rainfall_mm: i64, out: *u8) -> i64