Re:Rust is now overall faster than C in benchmarks
by gameswithgo on Sunday January 03, 2021 @03:53PM
(#25625136)
cpu feature detection is way easier in rust. its just built into the core libs.
[ Parent
| on HN ]
Re:Rust is now overall faster than C in benchmarks
by colejohnson66 on Sunday January 03, 2021 @04:42PM
(#25625536)
Doesn’t gcc have a CPU feature branching system? You use it by attaching attributes to functions that say what instructions are required. Granted, it’s not as “elegant” as Rust, but it does exist.
Re:Rust is now overall faster than C in benchmarks
by bsder on Sunday January 03, 2021 @05:14PM
(#25625734)
And?
These are the kind of things that make working in one language different from another.
I'd actually like to see the SSE version in C so I can compare the two implementations and how much grief you have to go through.