ELSEIF
Your brief EB
413 stories from 119 feeds 461 clusters Refreshed 4 minutes ago next pull 21:01

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.

WHY IT MATTERS

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 source

The three things worth knowing

01

Algebraic methods for f32 and f64 allow compiler reordering of arithmetic operations, enabling optimizations like loop vectorization.

02

The new format_into method for integer types uses an opaque NumBuffer to bypass dynamic dispatch and match itoa performance.

03

The ManuallyDrop and Box interaction is now documented as a stable guarantee that moving a dropped Box is not undefined behavior.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
Rust Blog Announcing Rust 1.98.0 Open ↗