Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: c,c++5,c#.

Author: Gerd Isenberg

Date: 11:42:04 08/12/04

Go up one level in this thread


On August 12, 2004 at 12:30:53, Anthony Cozzie wrote:

>On August 12, 2004 at 11:17:15, Gerd Isenberg wrote:
>
>>>This is why languages like C++ and Java are the anus of the body of programming
>>>languages.  If you want to sacrifice speed and write in Lisp, I may not agree
>>>with you, but I can at least see where you are coming from.  If you want to
>>>write in HLA-attempt-C++, I can only consider you a moron.
>>>
>>>anthony
>>
>>So you explicitly call me a moron? Thanks, very nice.
>>People stating "absolute knowledge" without any self-doubt are always a bit
>>suspect to me.
>>
>>Gerd
>
>Flames are always more fun than rational discussions. ;)

Sorry, i don't like it if the "fun" becomes single sided.
People are vulnerable and vain and your reply to Bo was snidely as well a
affront to the community of C++ programmers ;-)

 Besides Gerd, with all
>your assembly you _definitely_ do not fall under the HLA-attempt-C++ category,
>unless you are using tons of STL and inheritance behind the scenes ;)
>
>anthony

For instance i like compile time polymorphism using Barton-Nackman trick or was
it Curiously Recurring Template Pattern to pass the type of the derivatives XMM
or GP as templates to a "pair of bitboard"-base, to wrap the whole SIMD (SSE2)
or swar (GP) vector stuff. Which other language makes it possible, to mix GP-
with XMM- or MMX-Kogge-Stones with a common source and compile time type
templates? Isn't that a kind of hardware abstraction, several disjoint register
files for int-vector stuff?

I wrote tons of stuff, libs and applications and portable GUI-stuff, all using C
(or Pascal and PL/M) and later C++. I don't want to miss C++ anymore. The first
C++ project was the GUI of my first DOS-IsiChess, MDI, simultaniuos play with up
to ten boards, own message loop, mouse events, all kind of widgets and dialogs
etc. No external classes - may be that was a didactical advantage.

I even used multiple inheritance, there are IMHO reasonable applications for
that. I admit that i inspected assembly to get the final idea of down casting
and multiple pointer to virtual tables.

STL is not that bad and rather slim for most applications, with some care and
pre-allocation sufficient fast, probably even for chess. Maybe STL was too late
- so much commercial and rather pragmatical C++ libaries like MFC sprawled
already around, all providing own string and container classes and iterator
concepts. So from some persistance layer one had to use RWDBString, for GUI
CString or QString. So mixing that even with STL-string or even chars becomes
really terrible. I don't like MFC, COM and Smartpointer so much, and antiquated
as i am, i like to take care for memory leaks or too early destroyed objects by
myself.

Cheers,
Gerd



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.