Skip to content

EAFAR v1.0.0 — Rust rewrite (zero-dependency crate)

Latest

Choose a tag to compare

@kostyk348 kostyk348 released this 30 Oct 10:35
· 14 commits to main since this release
233f7a1

main is now a pure Rust crate; the C++23 implementation lives in git history.

What is inside

  • modules S1–S10: field_map, event_queue, region_scheduler, automaton, fuzzy, dependency, diffusion, snapshot, rng, visualizer + prelude;
  • edition 2021, zero dependencies, #![forbid(unsafe_code)];
  • 78 contract tests (C++ suite of 72+ ported 1:1 and extended): SplitMix64 reference vectors bit-identical to C++, bit-exact snapshot rollback (NaN payloads, -0.0), replay identity after rollback;
  • bench: cargo run --release --bin eafar-bench — 478× speedup on a 4096×4096 world with 0.1% active regions;
  • examples/heatmap.rs — sparse-world picture generator;
  • CI on cargo (build + test, non-blocking cross-platform checks).

Determinism

Same seed + same event sequence → bit-identical history; ascending-id iteration everywhere (BTreeSet); identical float-op ordering in diffusion kernels.

Full history: CHANGELOG.md