4 ms·
> that C can express that Rust cannot The reverse is probably more true, though. Rust has native SIMD support for example, while in standard C there is no way
by gf000 11mo ago
> that C can express that Rust cannot
The reverse is probably more true, though. Rust has native SIMD support for example, while in standard C there is no way to express that.
'C is not a low-level language' is a great blog post about the topic.
- kristianp 11mo agoSo use the fairly common SIMD extensions in C, that's not much of an argument.
- ndiddy 11mo agoAFAIK std::simd is still nightly only. You can use the raw intrinsics in std::arch, but that's not any better than "#include <immintrin.h>".
- exDM69 11mo ago> Rust has native SIMD support std::simd is nightly only. > while in standard C there is no way to express that. In ISO Standard C(++) there's no SIMD. But in practice C vector extensions are available in Clang and GCC which are very similar to Rust std::simd (can use normal arithmetic operations). Unless you're talking about CPU specific intrinsics, which are available to in both languages (core::arch intrinsics vs. xmmintrin.h) in all big compilers.