Comment

Comment by flukus

> It is not possible for a C program to be faster than the C++ version.

That is simply not true and easily demonstrably false: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

> Compile the C program with a C++ compiler, and they are exactly the same.

Why would I compile a C program with a C++ compiler? But in any case the above link both used gcc and shared most of the compiler backend.

> If you knew C++ I could go into more detail, but if you knew C++ we would not need to have this conversation.

Your assumptions is wrong on multiple levels, I know C++ (admittedly rusty though) and it is not self evident, the opposite in fact.

parent flukus 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton