< Back to all clusters
[TECHNOLOGY] · 4 sources

started · updated

Rust 1.98.0 introduces algebraic floating-point optimizations

The Rust programming language has released version 1.98.0, introducing significant performance optimizations for numerical workloads. A primary feature is the introduction of algebraic floating-point methods for f32 and f64 types, including algebraic_add, algebraic_sub, algebraic_mul, algebraic_div, and algebraic_rem.

These methods allow the compiler to reorder operations based on algebraic properties, enabling broader loop vectorization and parallel evaluation of partial sums. Because floating-point math is not strictly associative, these methods are explicitly marked as non-deterministic, meaning results may vary slightly between builds.

Additionally, the update introduces a new format_into method for primitive integer types, utilizing the stabilized NumBuffer type. This provides a standard library replacement for integer serialization that performs similarly to the itoa crate. The release also includes stabilized documentation for ManuallyDrop behavior and new APIs for string slicing and UTF-16 conversion.

Entities

Rust