Tech News
← Home  ·  All topics

Intrinsics

2 GoKawiil briefs on this topic · RSS for intrinsics

Rust 1.87 lets compiler verify SIMD safety, removing need for manual unsafe blocks

Rust's SIMD abstractions previously required wrapping raw intrinsic calls in unsafe blocks because the compiler couldn't verify at compile time whether the CPU running the code actually supported the needed instruction set. As of Rust 1.87, the compiler itself tracks which instruction sets are available, letting developers call SIMD intrinsics without manually marking them unsafe or writing complex cross-referencing logic.

Fearless SIMD reaches v1.0, offering safe SIMD abstractions in Rust

The Fearless SIMD project, first prototyped eight years ago, has released version 1.0 according to a blog post by its maintainer Shnatsel. The library provides portable SIMD abstractions and safe access to platform intrinsics without requiring unsafe code, while supporting both autovectorization and manual control for performance-critical code.