oh hell nah
Branchless Rust: Making a Filter 4x Faster by Removing an If
31–40 of 124 posts
Re: Branchless Rust: Making a Filter 4x Faster by Removing an If
#32I really hope all these guns give up smoking sometime soon...
Re: Branchless Rust: Making a Filter 4x Faster by Removing an If
#33Great explanation of why a branchless approach results in such a speed up. I've never really had to deal with performance optimization at this level. Generally it's probably best not to get too involved letting the CPU black box do its thing. I do wonder, would the performance characteristics of branchless vs branching be consistent across different CPUs/architectures? If you had a CPU that wasn't trying to be fancy…
I say this as someone who is interested in a special type of processor architecture that has no branch prediction at all and would need a branchless subset of Rust to meaningfully program it at high performance.
Re: Branchless Rust: Making a Filter 4x Faster by Removing an If
#34This article is 100% AI written. The data was interesting, the commentary overly verbose and hard to gain useful insights from.
I'm apparently not good at spotting it. I was put off by the overly dramatic presentation. It gets tiring that the author apparently finds this more exciting than I do, and writes like it's enthralling. I just assumed it was an excess of enthusiasm or the first experience with this kind of thing. If it's AI, I'm way behind the game noticing it.
I wouldn't be surprised though if (especially) non-native speakers unconsciously start adopting the Claude writing style when they stare all day long at Claude generated text at work.
Re: Branchless Rust: Making a Filter 4x Faster by Removing an If
#35Re: Branchless Rust: Making a Filter 4x Faster by Removing an If
#36Re: Branchless Rust: Making a Filter 4x Faster by Removing an If
#37This article is 100% AI written. The data was interesting, the commentary overly verbose and hard to gain useful insights from.
Click on their blog index page, see posts going back to early 2010s and use the same writing style. He must have been time travelling and using AI all this time!
Something like that anyway. There are some very clear AI tells (smoking guns if you like), but most of it does not read like the prose AI produces by default.
Author if you are here I am curious about your writing process, and why you didn't remove the obvious AI tells.
Re: Branchless Rust: Making a Filter 4x Faster by Removing an If
#38Nice post! You can do even a bit better if you're willing to use intrinsics. In particular this kind of operation is well-suited for compress-type operations, available as a first-class operation in at least AVX512, SVE and RVV; you can also emulate them reasonably quickly on NEON and AVX2. Here's an example, building on the OP's work: pub fn filter_compress(input: &[f64], threshold: f64) -> Vec { use std::arch::x86_…
Nice! I saw the code and thought, I bet there’s a way to do some SIMD here… never touched intrinsics in Rust before so I really appreciate you writing it up!
https://deplinenoise.files.wordpress.com/2015/03/gdc2015_afr...
Re: Branchless Rust: Making a Filter 4x Faster by Removing an If
#39Would PGO figure this out?
Re: Branchless Rust: Making a Filter 4x Faster by Removing an If
#40Nice post! You can do even a bit better if you're willing to use intrinsics. In particular this kind of operation is well-suited for compress-type operations, available as a first-class operation in at least AVX512, SVE and RVV; you can also emulate them reasonably quickly on NEON and AVX2. Here's an example, building on the OP's work: pub fn filter_compress(input: &[f64], threshold: f64) -> Vec { use std::arch::x86_…
Would probably have to pass `-C target-cpu=native` to cargo so that llvm is allowed to use AVX512.