Re: Pre compiled headers with g++ - is it possible?
From: Jose McRodrigues Ibn Dulchez Hottab (chungachanga_at_howdoesitsoundtoyou.au)
Date: Fri, 5 Sep 2003 12:00:54 -0700
"Ulrich Eckhardt" <email@example.com> wrote in message
> Julián Albo wrote:
> > Ulrich Eckhardt escribió:
> >>> If speed is the issue, C is always the way to go. C++ wastes way too
> >>> much time and memory.
> >> It is never the language, it is always the programmer that wastes
> >> cycles.
> > If you compile the same program with C and with C++, probably the C++
> > version (if compiles) wastes something. I think that people that blames
> > C++ has that in mind.
> True. The C++ runtime is a bit bigger and more complex than the C runtime.
> However, the startup overhead of the runtime is usually small compared to
> the overhead of forking the new process and both are often small compared
> to the runtime of the program itself.
> No, the legend that C++ is slow is usually connected with wild fantaties
> about virtual functions, C++ iostreams and exception-handling. Often such
> fantasies are mere FUD though, because it is simply assumed that one
> automatically uses such features and ignores that it is a deliberate
> choice made by the programmer (see my initial statement above).
In my experience the choices made by the developers of third party libraries
been incredibly poor. Java and Python are designed with an assumption that
some programmers are, er, underperforming. In C++ (or C) one rotten
third party lib could do wonders to your application (stability and
C++ and C have their place but contrary to what might be believed that place
the mainstream application development. C is good for system programming as
was originally indended and for writing stuff like Python interpreter by
who are in no way novices and produce code of decent quality.
For the rest of us Python and Java are the way to go.
The examples of idiot designed and implemented C/C++ code are abundant
and I don't have to point my finger anywhere. Creative idiot coding in C/C++
is much more dangerous than a creative idiot coding in Java and Python.
You _have to be_ cynical and expect the worst in programmers when you design
languages for the modern age. Kudos to Guido.