Navigation
Search
|
Rust 1.87 shines on anonymous pipes, architecture intrinsics
Monday May 19, 2025. 09:47 PM , from InfoWorld
The Rust Release Team has shipped Rust 1.87, an update to the fast and safe programming language that features accommodations for anonymous pipes and architecture intrinsics.
The new release was announced May 15, the same day as Rust’s 10th anniversary. Users with a previous version of Rust installed via rustup can update via the following command: rustup update stable. Rust 1.87 adds access to anonymous pipes to the standard library. This includes integration with the input/output methods of std::process::Command. Joining the stdout and stderr streams into one is now relatively straightforward, for example, whereas it used to require either extra threads or platform-specific functions, the Rust team said. Rust 1.87 also brings more safety to architecture intrinsics. Most std::arch intrinsics that are unsafe due to requiring target features to be enabled now are callable in safe code that has those features enabled, the Rust team said. The team provided an example of a toy program that implements summing an array using manual intrinsics that now can use safe code for the core loop. Also in Rust 1.87, inline assembly (asm!) now can jump to labeled blocks within Rust code. This enables low-level programming such as implementing optimized control flow in operating system kernels or more efficient interaction with hardware. Rust 1.87 also stabilizes specifying the specific captured generic types and lifetimes in trait definitions using impl Trait return types, thus allowing the use of this feature in trait definitions. This feature expands on the stabilization of non-trait functions in Rust 1.82, from October 2024. Additionally in Rust 1.87, the Tier 2 target i586-pc-windows-msvchas been removed. Users currently targeting i586-pc-windows-msvc are advised to migrate to i686-pc-windows-msvc. Rust 1.87 also stabilizes dozens of APIs. Rust’s 10th anniversary comes at a time when the language has been gaining in popularity. Rust began as a Mozilla research project partly meant to reimplement key components of the Firefox browser. The priorities of the original project were driven by the need to make better use of multicore processors in Firefox, and the ubiquity of web browsers meant that those features had to be safe to use. The Rust language moved over to the Rust Foundation in 2021.
https://www.infoworld.com/article/3989643/rust-1-87-shines-on-anonymous-pipes-architecture-intrinsic...
Related News |
25 sources
Current Date
May, Fri 23 - 11:45 CEST
|