Hacker News new | ask | show | jobs
by FranzVonSuppe 4225 days ago
I don't understand how you can say Java, C++, and Ruby in the same breath. They are not at all alike. Also what optimizations are available to C which are not in C++? C++ is (almost) a strict superset of C.
2 comments

Just because C++ is a superset of C doesn't mean that all C++ features are in a way comparable to C (in compiling and at runtime).
Restrict pointers in C let you write code that's faster than the C++ equivalent for functions that copy a lot of memory.