Fearless SIMD v1.0, SIMD에서 unsafe를 제거하다
Rust SIMD 추상화 라이브러리 fearless_simd가 1.0 버전을 출시했다. 이 크레이트는 unsafe 코드 없이 SIMD를 사용할 수 있게 해주며, 성능 저하 없이 안전성을 보장한다. 커널 매크로와 안전한 transmute 모듈을 통해 대부분의 unsafe를 제거했고, #[simd] 매크로로 함수 멀티버저닝을 간편하게 처리한다. 이미 30개 크레이트가 직접 의존하고, 1000개 이상이 간접적으로 사용 중이다.
Thanks to the power of Rust's type system, we only need to audit these two small, self-contained building blocks. As long as they are memory-safe, the rest of the codebase is guaranteed to be memory-safe as well. At last, SIMD in Rust can be truly fearless.