Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Python (was Symbolic: The KBNK recognizer)

Author: Andrei Fortuna

Date: 10:50:19 02/24/04

Go up one level in this thread


On February 23, 2004 at 15:45:04, Russell Reagan wrote:

>On February 23, 2004 at 13:52:47, Christophe Theron wrote:
>
>>Forth...
>
>>It is fast, efficient...
>
>I have heard this about Forth. Is it really comparable to the speeds of C? I
>couldn't find many benchmarks, but I did find one (from 2001). It showed Forth
>(gforth) to be the same distance (~50 points) from Java (Sun's java) as Java is
>from C (gcc). Python and Perl are the same distance behind Forth, and Python is
>certainly not known for being fast.

Python is fast for the built-in list and dictionaries and it is designed to be
extended with C/C++ functions or at least this is my understanding.

I've seen sometimes my chess engine getting crushed by programs running on much
lower hardware configuration and one of my ideas was to write my next chess
engine prototype in Python and only much later when he can beat most of medium
strength engines convert it to C++. If an engine can beat many opponents running
handicapped (by CPU and/or the programming language beeing slow), imagine the
strength when this handicap is removed.

Python is very good for fast prototyping and I think that is important for a
chess engine.

Just a thought, feel free to disagree :)

Cheers,
Andrei






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.