Comparing Parallel Rust and C++
This is a wonderfully written comparison benchmark and it deserves attention even for that reason alone. It knows its target audience, explains what&#x27;s going on succinctly but completely, and avoids most of the usual benchmark pitfalls that result in comparing apples to oranges. Great job.<p>The one glaring issue that is ignored is the floating point model used. I understand Rust still doesn&#x27;t have a usable equivalent to -ffast-math, so I assume it wasn&#x27;t used for that reason. Some discussion of whether it&#x27;s permissible in this algorithm (I believe so?) and how much advantage that might give to C++ seems crucial when performance is a priority.<p>Ironically, reading this has further convinced me that, for all of its disadvantages, I much prefer C++ to Rust for my needs. I&#x27;m sure others will draw the opposite conclusion and that&#x27;s great. Rust is a language that clearly knows what it wants and if your priorities are aligned with that, the performance gap is shrinking and implementation-related reasons to avoid it are rapidly decreasing in number.