Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Opinions? A Crafty experiment...

Author: Robert Hyatt

Date: 19:47:04 05/28/04

Go up one level in this thread


On May 28, 2004 at 21:58:46, Dann Corbit wrote:

>On May 28, 2004 at 21:24:05, Anthony Cozzie wrote:
>
>>On May 28, 2004 at 20:59:45, Dann Corbit wrote:
>>
>>>On May 28, 2004 at 12:46:10, Anthony Cozzie wrote:
>>>
>>>>On May 28, 2004 at 12:37:31, Sune Fischer wrote:
>>>>
>>>>>On May 28, 2004 at 12:18:22, Anthony Cozzie wrote:
>>>>>
>>>>>>>These super rapid games are also great for stress testing, if nothing else.
>>>>>>
>>>>>>Definitely.  I knew I had *zero* bugs in my threading implementation when Zappa
>>>>>>survived a 500 game 1 0 match with pondering against crafty without crashing or
>>>>>>losing on time :)
>>>>>>
>>>>>>anthony
>>>>>
>>>>>I'm still trying to find a good ponder implementation.
>>>>>
>>>>>I really want to avoid using peeknamedpipe so I use one thread for
>>>>>communication, one for pondering and N-threads for the search (currently N=1
>>>>>always).
>>>>>
>>>>>I like to think of the search as being "the engine" and the communication is
>>>>>just something wrapped around it, like sort of an "engine interface".
>>>>>
>>>>>The problem for me is that pondering becomes something inbetween on its own
>>>>>thread.
>>>>>It really adds one level of complexity that just drives me nuts, e.g. when
>>>>>trying to stop pondering before or after the search has begun makes a
>>>>>difference.
>>>>>
>>>>>-S.
>>>>
>>>>Why? I have 2 threads: one does IO, and the other searches.  I use select() to
>>>>determine if there is data, it times out every 20 ms.  No idea if this works on
>>>>windows.
>>>
>>>There is no select() function on Windows except in Winsock, and that one only
>>>works on sockets, not on files.
>>
>>It would appear that Zappa is now officially unsupported on Windows :)
>>
>>select() is practically the foundation of IO on unix.  Unbelievable that M$
>>doesn't support it.
>
>Of course, it is your choice.  But for sure, you could add a module for Windows
>that does what you want in less than one day.
>
>I know a lot of people really despise windows (I certainly despise Windows ME,
>which sounds like some invitation for a practical joke and actually turns out to
>be one).  But for the most part, one OS is the same as another for me.

For me that isn't the case, because I like to use many O/S kernel services.
While most have common facilities, they are often accessed in different ways
making portability an issue.  IE lightweight vs heavyweight processes (threads
vs processes for those that prefer that nomenclature).  select() is another big
difference in how asynchronous I/O is done.  That why parts of Crafty read like
godzilla ate a bunch of C programs and puked up one big wad with lots of #if
conditional compilation tests...




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.