Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Linebender 4 min read Release easyNovice

Fearless SIMD v1.0 is here

Fearless SIMD v1.0 is a Rust crate for SIMD with no ad-hoc unsafe code. Its safety rests on two small audited building blocks: a kernel! macro that uses target feature v1.1 to call intrinsics without unsafe, and a safe transmute module that covers loads and stores. It provides portable abstractions with precise and fast variants for platform-divergent edge cases, native-width vectors, and zero-overhead safe drop-down to intrinsics. A new #[simd] macro handles function multiversioning without inline(always) tuning. v1.0 comes with three years of security updates and is meant to complement std::simd, not compete with it.

Assumes: SIMD basicsRust unsafeCPU target features

Related posts

  • Announcing Rust 1.99.0

    Rust Blog mediumAdept

    Rust 1.99.0 stabilizes defining C-ABI variadic functions in Rust using `...`, typed as `VaList` (ABI-compatible with C `va_list`) with readable types gated by the `VaArgSafe` trait. It also stabilizes `Layout::for_value_raw`, `mem::size_of_val_raw` and `mem::align_of_val_raw`, settling the safety rules for getting size and alignment from raw pointers to unsized types. The `Box::leak` docs now recommend against later deallocating leaked memory because it interacts badly with compiler optimizations and upcoming custom allocators, so `Box::into_raw` or `Box::into_non_null` should be used instead. Other stabilized APIs include `Vec::into_parts`/`from_parts`, `String::from_utf8_lossy_owned` and `std::fs::set_times`.

  • Platform-independent SIMD in Go

    The Go Blog hardMaster

    Go 1.27 adds an experimental, size-agnostic `simd` package, loosely modeled on Highway for C++. It hides differences in vector width, masking schemes and instruction sets across AVX/AVX2/AVX512, NEON and wasm, and falls back to emulation on platforms without SIMD support. Vector types such as `simd.Float32s` have no fixed length; they load from and store to slices and expose only operations in the cross-platform intersection, with gaps filled by emulation. When an operation is missing, code can drop into the architecture-specific `archsimd` package via `ToArch()`/`FromArch`, and the compiler specializes away the type switch, as shown with a lookup-table popcount implementation for AVX/AVX2.

  • Announcing Rust 1.99.1

    Rust Blog mediumAdept

    Rust 1.99.1 is a point release fixing three regressions. LLVM's loop-idiom-wcslen pass could emit calls to `wcslen` on targets lacking it, breaking UEFI builds using `std`, so compiler-builtins now provides a fallback. FFI functions returning `bool` on x86_64 could leave bits 1-7 of the return register unspecified; the return type is again marked for zero-extension as the ABI requires. `rust-lld` on macOS could fail to load libLLVM when invoked without the rustup proxy and now carries an rpath entry for libLLVM.dylib.

  • Bringing Rust to the Pixel Baseband

    Google Online Security Blog hardMaster

    Pixel 10 ships the first memory-safe code in Pixel's cellular baseband: a Rust DNS response parser built on hickory-proto, replacing a risky untrusted-input parser in the modem firmware. The team added no_std support upstream to hickory-proto and its dependencies (including rust-url and ipnet), then built all crates as rlibs via rustc driven by Pigweed/GN instead of cargo, using cargo-gnaw to generate build rules for 30+ dependencies. Integration details include a GlobalAlloc backed by the firmware's C allocator, a panic handler routed to Pigweed's crash backend, and bindgen-generated FFI callbacks into existing C code. The Rust footprint is about 371KB, with 350KB from hickory-proto. Stripping compiler_builtins was necessary because its weak memset/memcpy symbols displaced the modem's optimized versions and caused power and performance regressions.

  • Porting the Solana eBPF JIT compiler to ARM64

    Trail of Bits hardMaster

    Solana's RBPF JIT compiler, which translates eBPF smart contracts to native code on validators, was ported from x86-only to ARM64, and its x86 backend gained Windows support. The port rewrote the register map, calling convention, shared subroutines (address translation, exceptions, indirect calls, instruction metering) and per-opcode translations. ARM64's fixed 4-byte instructions mean immediates often need several instructions, and the M1 enforces 16-byte stack alignment where QEMU does not. Running the port under MSAN exposed an uninitialized-memory bug: unsafe code read a Rust enum discriminant that was only a u8, so 7 bytes of stack garbage landed in JIT code and weakened its code-reuse mitigations. The fix adds #[repr(u64)] and layout tests, and both new targets remain behind feature gates until reviewed.

The quest for software engineering knowledge.

Look:
Layout: