Mail Archives: djgpp/1999/08/01/16:07:48
On Sat, 31 Jul 1999, Bas Hamstra wrote:
> >Both are extremely useful: for example, UNIX is written in C, and ... (I
> >was going to be fair and impartial here, but I couldn't think of
> >anything popular that's written in C++).
>
> Wait a minute :) Speed and efficiency are extremely important for chess
> programs. Yet... One of the *fastest* chess program is written in pure C++
> (Junior).
AFAIK, Junior doesn't use any of the STL features, and is written very
carefully to avoid anything in C++ that will produce inefficient code.
People who write C++ usually don't want to restrain themselves like
that.
FWIW, Groff, the GNU replacement fro the Troff/Nroff package, is also
written in C++, and it also carefully avoids any expensive C++ features.
> You don't *have* to create and destroy all over.
You can't even dereference a pointer in C++ without being sure it wasn't
overloaded by some class that is called deep inside the libraries you are
using.
- Raw text -