3 ms·
Rust chose to adopt the vendors' naming schemes exactly as they were defined, instead of inventing their own. The idea was that these intrinsics are official, w
by pornel 8y ago
Rust chose to adopt the vendors' naming schemes exactly as they were defined, instead of inventing their own. The idea was that these intrinsics are official, well-understood and people will build higher-level abstractions on top of them anyway.
- kibwen 8y agoTo elaborate a bit, the intention is to first stabilize the platform-dependent low-level intrinsics just as specified by each vendor, under the "arch" namespace in the standard library (e.g. `use std::arch::x86_64::whatever`, which is quite self-explanatorily nonportable). This will hit stable Rust as of the next release, on June 21. Future work will focus on building a more portable, more Rust-like, higher-level API on top of these intrinsics under the "simd" namespace in the standard library; you can see the current state of this work at https://rust-lang-nursery.github.io/stdsimd/x86_64/stdsimd/simd/index.html https://rust-lang-nursery.github.io/stdsimd/x86_64/stdsimd/s... .