code wiki / _hdl_build / nx_softdyn_gate.nx
nx_softdyn_gate.nx
buildroot/runtime/_hdl_build/nx_softdyn_gate.nx
about
nx_softdyn_gate.nx -- prove the secondary-dynamics solver is REAL PHYSICS, not a wobble hack.
T1 INERTIAL LAG soft mass trails an accelerating anchor (that IS jiggle)
T2 OVERSHOOT when the anchor stops, the mass passes THROUGH it (sign change) = oscillation
T3 DAMPED SETTLE energy decays and it comes to rest (no perpetual motion)
T4 IMPULSE/RECOIL a kick on a still point displaces then returns -- the SAME solver serves firearms
T5 BOUNDED a violent anchor can never separate tissue past the clamp (divergence impossible)
T6 DETERMINISM identical replay, bit-for-bit
T7 ANTI-VACUITY a STIFF+damped config shows ~no lag => T1's lag is the SOLVER, not an always-on bug
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_softdyn.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
| 13 | const SG_SOFT_K: i64 = 120 |
| 14 | const SG_SOFT_C: i64 = 100 |
| 15 | const SG_STIFF_K: i64 = 900 |
| 16 | const SG_STIFF_C: i64 = 800 |
| 17 | const SG_MAXD: i64 = 40 |
functions
| 19 | func sg_hw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 20 | func sg_pn(v: i64) -> i64 |
| 30 | func main() -> i64 |