[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python & chess



2006/8/24, Ron Johnson <ron.l.johnson@cox.net>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steve Lamb wrote:
> Paolo Pantaleo wrote:
>> Well Python is not a good language for writing a chess engine
>> (even if a chess engine exists:
>
> Uh... why?  I mean that's a pretty definite statement to throw
> out without an explanation.  For those who are fond of the
> language, such as myself, we're left with extreme curiosity as to
> why you feel that way.

The 1st link in his email describes how when a python chess player
was (mechanically) converted to C++, the resulting app ran 10x faster.

That's it, compiled languages are fastar than interperted ones.
(providing they are both well written...). The only thing that a chess
engine must do is to spend his time computing (with the better
algorithm possible). You can do much more computation in the same time
with C. Usually chess engines are written with recursive functions
(even if any recursive code ca be translated in a itaritive
implementation) that are called hundred of thousands of times (in a
second), and I read that Python is relativley slow in function
calling.

PAolo

- --
Ron Johnson, Jr.
Jefferson LA  USA

Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE7bS8S9HxQb37XmcRAhWxAKDOgzJg4bWhn8W66F5G6gDcnRh3agCghMv+
xMs5/+ckCIHgCPNmjZGBFxE=
=N5K6
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org




--
if you have a minute to spend please visit my photogrphy site:
http://mypic.co.nr



Reply to: