Computer Chess Club Archives


Search

Terms

Messages

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

Author: Robert Hyatt

Date: 19:24:20 11/01/99

Go up one level in this thread


On November 01, 1999 at 21:32:56, leonid wrote:

>On November 01, 1999 at 21:17:07, Robert Hyatt wrote:
>
>>On November 01, 1999 at 19:50:12, leonid wrote:
>>
>>>
>>>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?
>>>
>>>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? 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.
>>>
>>>Leonid.
>>
>>
>>C isn't slow... it is perhaps the fastest 'compiled' language in use.  Crafty
>>is 100% C, but for the X86 architecture it has a few of the 'bit-operations"
>>hand-coded in assembly language for speed...
>>
>>To write in assembly is not a good plan.  Yes it is faster.  But what about
>>portability to other platforms?  there is _zero_ when the program is written
>>in assembly.
>
>Writing in C is OK but why not write just one version on Assembler for going to
>international competition?


It is not a 1 month job.  Cray Blitz was mostly assembler for the cray, and it
was a years-long effort to hand-code and optimize that program to run as fast as
it ran (it did run over 5x faster than the pure fortran version).  But even
after all that work, each year saw many man-weeks of effort to incorporate all
the changes from the previous year.

Not fun.  Not profitable over the long haul...



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.