LANGUAGES Signal 327
Rust 1.98.0 adds algebraic float methods and buffered integer formatting
Rust 1.98.0 introduces algebraic floating-point methods for f32 and f64, a format_into method for integer formatting, and a stable guarantee for ManuallyDrop and Box interaction.
Algebraic float methods let the compiler reorder floating-point arithmetic for better performance, at the cost of non-deterministic results. The format_into method provides a faster path for integer formatting without dynamic dispatch. The ManuallyDrop fix removes a source of undefined behavior for code that moves dropped boxes.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
Algebraic methods for f32 and f64 allow compiler reordering of arithmetic operations, enabling optimizations like loop vectorization.
The new format_into method for integer types uses an opaque NumBuffer to bypass dynamic dispatch and match itoa performance.
The ManuallyDrop and Box interaction is now documented as a stable guarantee that moving a dropped Box is not undefined behavior.
THE CLUSTER
↗