Skip to content

Codebase cleanup phases 0-4#33

Merged
gvonness-apolitical merged 2 commits intomainfrom
cleanup/phase-0-4
Mar 14, 2026
Merged

Codebase cleanup phases 0-4#33
gvonness-apolitical merged 2 commits intomainfrom
cleanup/phase-0-4

Conversation

@gvonness-apolitical
Copy link
Contributor

Summary

  • Phase 0-1: Add SAFETY comments to intentional unsafe patterns (integer casts, unchecked indexing), replace ad-hoc suppression comments with structured justifications
  • Phase 2-3: Harden CI (pin GitHub Actions by SHA, add Clippy/rustfmt checks), update documentation, consolidate duplicated code in sparse Jacobian reverse-mode and bytecode forward pass
  • Phase 4: Decompose stde.rs (1409 lines) into 9-file directory module, bulk-add #[must_use] to 65 pure functions across 9 files, document GPU u32 cast assumptions

Test plan

  • cargo build --features bytecode,taylor,stde,parallel,diffop
  • cargo test --features bytecode,taylor,stde,parallel,diffop — all 122 tests pass
  • cargo clippy --features bytecode,taylor,stde,parallel,diffop -- -D warnings — clean
  • cargo clippy -- -W clippy::must_use_candidate — 0 warnings remaining
  • stde public API unchanged (70 stde tests pass, crate::stde::EstimatorResult resolves for GPU module)

Phase 0-1: Add SAFETY comments to intentional unsafe patterns,
replace suppression comments with structured justifications.

Phase 2-3: Harden CI (pin actions by SHA, add Clippy/rustfmt
checks), update documentation and consolidate duplicated code
in sparse Jacobian reverse-mode and bytecode forward pass.

Phase 4: Decompose stde.rs (1409 lines) into 9-file directory
module, bulk-add #[must_use] to 65 pure functions, and document
GPU u32 cast assumptions.
@gvonness-apolitical gvonness-apolitical merged commit fb6746b into main Mar 14, 2026
6 checks passed
@gvonness-apolitical gvonness-apolitical deleted the cleanup/phase-0-4 branch March 14, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant