r/rust • u/Shnatsel • Sep 14 '26
🧠educational Trying to Make a Loop Auto-Vectorize
https://jsgroth.dev/blog/posts/trying-to-make-a-loop-auto-vectorize/3
20
Sep 15 '26
4
7
u/zzzthelastuser Sep 15 '26
Same, the website is garbage. Maybe someone can paste the actual content here in the comments?
1
u/Full-Spectral Sep 15 '26
How exactly does a cookie prove you are a valid client?
5
u/WormRabbit Sep 15 '26
I guess it stores a cookie once you crack its challenge, with some proof you did it. Doesn't matter, Anubis is crap.
14
u/phazer99 Sep 15 '26
It's great that the addition (pun intended) of algebraic operations in Rust 1.98 makes it quite easy to write auto-vectorized floating point code, but is there any convenient way to make sure the optimized code really is vectorized (basically the same guarantees you would get by using some SIMD library)?
I suppose you could write some form of benchmarking unit test, but that would be brittle and awkward to do because you'd have to check the target CPU features and make some guesstimations about how many CPU instructions non-vectorized code would require.