TLDR DevOps · MISCELLANEOUS
FASTER FLOATING-POINT MATH WITH RUST'S NEW API
Summary from the TLDR DevOps newsletter
Rust 1.98 adds algebraic floating-point operations that let developers explicitly permit reassociation and fused instructions without enabling every risky optimization associated with fast-math. Allowing the compiler to reorder independent calculations can unlock SIMD vectorization and significantly accelerate numerical workloads, with the tradeoff that results may vary slightly because floating-point addition is not associative.