The syntax of sort and templates

Ola Fosheim Grostad via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 26 10:04:37 PDT 2017


On Friday, 26 May 2017 at 15:49:06 UTC, Ali Çehreli wrote:
> For example, Stroustrup has the article "Learning Standard C++ 
> as a New Language"[1]. It compares sorting performance of C to 
> C++ in section 3, "Efficiency". With those old C and C++ 
> compilers he used (in May 1999), C++ was 1.74 to 4.62 times 
> faster than C.

c++ language advocacy bullshit. C++ template bloat wouldn't be 
able to run on the low end machines from that era. The only thing 
from C stdlib you would use in performance code is memcpy and 
math.h, the rest is convinience and baggage...

If people have to use C stdlib as an example then they have 
already lost the argument...





More information about the Digitalmars-d-learn mailing list