Re:D is being used for autonomous driving research – Audi an...
by totalperspectiv on Monday June 24, 2019 @06:22PM
(#20269145)
Good point, I had always just taken for granted that C would be faster, and it's not! (Obvious disclaimers about benchmarks inserted here https://benchmarksgame-team.pages.debian.net/benchmarksgame/...).
[ Parent
| on HN ]
Re:D is being used for autonomous driving research – Audi an...
by __d on Tuesday June 25, 2019 @08:39AM
(#20273586)
I'll point out that those benchmarks show C++ faster for four, C faster for five, and both the same for one scenario.
Modern C++ enables some very concise expression, at the cost of significant language complexity, and enormous compile-time cost.
C requires more work from the programmer, but is vastly quicker to compile.