Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Do have the Crafty the Assembler written core?

Author: Jeremiah Penery

Date: 17:58:37 11/01/99

Go up one level in this thread


On November 01, 1999 at 19:50:12, leonid wrote:

>
>Hi!

Hi. :)

>I have the Crafty game in my Hiarcs 7.32 package. When I plyed with Crafty I was
>impressed and puzzled. Impressed with the game that I found quick and good but
>doubtful about the central part of the game. In what language it was really
>written? Core part in Assembler, or 100% on C?

Some of the speed-critical functions are now in assembler, if it's compiled with
MSVC.  The rest is in C (The TB probe code is C++).

>Just can't retain me to not mention what really puzzled me in the game. It was
>one idea that never went away. Why to write so good game in so slow language?

A slow language? :)

>To
>use the C in this case is like to do the premeditated suicide. Like willingly
>leaving your first place to somebody else. But maybe I rush to the conclusion.

I don't know of any chess program written totally in assembler (Except perhaps
Fritz).  I think most everyone uses C/C++, because it is fast, powerful, and not
too difficult.  It is quite difficult to write an entire program in assembler,
however, because once it's written, it's very difficult to modify the program
very much.  Programs like Crafty are being modified almost every day, to make
them better - doing this in assembler would be a major headache, IMO.
In addition, Bob releases his source so others can see and learn from it.  Since
C is much easier to read than assembler, it seems illogical to do it completely
in assembler.  Nobody could read it if it were totally assembler. :)
This of course doesn't apply to the commercial programs, but they still don't
use totally assembler, I think.

Jeremiah



This page took 0.01 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.