Re: Python chess

2006-08-25 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steve Lamb wrote:
 Ron Johnson wrote:
 but it could be grat for chess interfaces, for drawing boards, 
 and similar things.
 
 Then I fail to see the problem unless he is unaware that Python
 can call a C compiled lib and for computationally intensive tasks
 the author is encouraged to do just that.  I fail to see when
 that is taken into account that Python is unsuited to the task.

Written in C and called by Python

is not the same as

Written in Python

- --
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

iD8DBQFE7pzFS9HxQb37XmcRArLyAKC2hlrv74IjHs7GdXE5wBp/tpa7lACg0Jtv
AgEFwCLqLLqR7xnPNjiivio=
=hze4
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Python chess

2006-08-25 Thread Paolo Pantaleo

2006/8/25, Katipo [EMAIL PROTECTED]:

Paolo Pantaleo wrote:

 Well Python is not a good language for writing a chess engine (even if
 a chess engine exists:
 http://www.kolumbus.fi/jyrki.alakuijala/pychess.html), but it could be
 grat for chess interfaces, for drawing boards, and similar things. I
 foudn out a library for these things
 (http://www.alcyone.com/software/chess/). Does anyone konw about more
 chess related modules?

What are you trying to do, exactly?

Your last post seemed to be an enquiry toward the manufacture of chess
boards.
Now you are talking about engines and the generalised subject of
'chess-related modules'.

If you are not interested in the conversation you must not read it.
Since Tobiah asked why Python is not good for writing a chess engine I
aswered him.



If you don't know what you are specifically looking for, nobody here can
help you to find it, and you would be far better off going to the debian
onsite package search, and type in 'chess'.

I am looking for Python modules that can draw boards and handle the
data to represent a board and a game. I don't think this is so vague.

Maybe this is not the right list for asking a so Python specific
subjext and I am sorry for that

PAolo



Regards,


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]





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


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Python chess

2006-08-24 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paolo Pantaleo wrote:
 Well Python is not a good language for writing a chess engine (even if
 a chess engine exists:
 http://www.kolumbus.fi/jyrki.alakuijala/pychess.html), but it could be

Maybe NumPy would speed things up?

 grat for chess interfaces, for drawing boards, and similar things. I
 foudn out a library for these things
 (http://www.alcyone.com/software/chess/). Does anyone konw about more
 chess related modules?


- --
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

iD8DBQFE7YuHS9HxQb37XmcRAu01AKCbfE7EcbdRIdYt1bVIivOBwVTaeACg2xKR
mMnFTkeWYGPBT7cPVrqBraY=
=g05y
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Python chess

2006-08-24 Thread Steve Lamb
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.

-- 
 Steve C. Lamb | But who decides what they dream?
   PGP Key: 8B6E99C5   |   And dream I do...
---+-



signature.asc
Description: OpenPGP digital signature


Re: Python chess

2006-08-24 Thread Ron Johnson
-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.

- --
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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Python chess

2006-08-24 Thread Paolo Pantaleo

2006/8/24, Ron Johnson [EMAIL PROTECTED]:

-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 [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]





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


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Python chess

2006-08-24 Thread Katipo
Paolo Pantaleo wrote:

 Well Python is not a good language for writing a chess engine (even if
 a chess engine exists:
 http://www.kolumbus.fi/jyrki.alakuijala/pychess.html), but it could be
 grat for chess interfaces, for drawing boards, and similar things. I
 foudn out a library for these things
 (http://www.alcyone.com/software/chess/). Does anyone konw about more
 chess related modules?

What are you trying to do, exactly?

Your last post seemed to be an enquiry toward the manufacture of chess
boards.
Now you are talking about engines and the generalised subject of
'chess-related modules'.

If you don't know what you are specifically looking for, nobody here can
help you to find it, and you would be far better off going to the debian
onsite package search, and type in 'chess'.
Regards,


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Python chess

2006-08-24 Thread Steve Lamb
Paolo Pantaleo wrote:
 2006/8/24, Ron Johnson [EMAIL PROTECTED]:
 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.

This is true.  However in modern computing most programs are sitting idle
so scripted languages are not as ill-suited as they once were.  Furthermore,
in the case of Python, they readily admit that there are some things that a
scripting language is poor for and, when those things are identified, it is
encouraged to the author to port the slow code to a far faster compiled
version which is called from within Python.  In doing this one retains the
speed of development that Python offers as well as the speed of execution that
a compiled language offers.  IE, code the 90-95% of the idle intensive stuff
in Python, optimize the 5% intensive in C/C++.

So, strictly speaking, Python is not ill-suited if one follows the advice
of Python's own advocates.  :)  Write the interface in Python and have it call
the engine written in C.

-- 
 Steve C. Lamb | But who decides what they dream?
   PGP Key: 8B6E99C5   |   And dream I do...
---+-



signature.asc
Description: OpenPGP digital signature


Re: Python chess

2006-08-24 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steve Lamb wrote:
 Paolo Pantaleo wrote:
 2006/8/24, Ron Johnson [EMAIL PROTECTED]:
 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.
 
 
 This is true.  However in modern computing most programs are
 sitting idle so scripted languages are not as ill-suited as they
 once were.  Furthermore,
[snip]
 a compiled language offers.  IE, code the 90-95% of the idle
 intensive stuff in Python, optimize the 5% intensive in C/C++.
 
 So, strictly speaking, Python is not ill-suited if one follows
 the advice of Python's own advocates.  :)  Write the interface in
 Python and have it call the engine written in C.

You need to re-read the OP:

but it could be grat for chess interfaces, for drawing boards,
and similar things.

- --
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

iD8DBQFE7lrdS9HxQb37XmcRAlXPAJ9ft9XBm3TaC/rNz8BhUZQZJqLLbwCfYeE3
pUGiPpuNA1IRK3ks3bPaAPM=
=A7+y
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Python chess

2006-08-24 Thread Steve Lamb
Ron Johnson wrote:
 but it could be grat for chess interfaces, for drawing boards,
 and similar things.

Then I fail to see the problem unless he is unaware that Python can call a
C compiled lib and for computationally intensive tasks the author is
encouraged to do just that.  I fail to see when that is taken into account
that Python is unsuited to the task.

-- 
 Steve C. Lamb | But who decides what they dream?
   PGP Key: 8B6E99C5   |   And dream I do...
---+-



signature.asc
Description: OpenPGP digital signature