delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/01/16:07:48

Date: Sun, 1 Aug 1999 11:38:04 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Bas Hamstra <bas DOT hamstra1 AT wxs DOT nl>
cc: djgpp AT delorie DOT com
Subject: Re: is djgpp object-oriented?
In-Reply-To: <7ntjli$lmj$1@reader1.wxs.nl>
Message-ID: <Pine.SUN.3.91.990801113342.20304O-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019