Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Chess and perl.

Author: James Swafford

Date: 07:13:53 03/04/06

Go up one level in this thread


On March 04, 2006 at 07:07:34, Tord Romstad wrote:

>On March 03, 2006 at 22:34:36, Joshua Shriver wrote:
>
>>Anyone know of a chess engine written perl? I know it's not the fastest language
>>but I would say the speed is similar to java which seems to have a couple
>>engines.
>
>I haven't followed the Perl world at all for the last few years, but unless
>some really dramatic changes have happened, I think a chess program
>written in Perl would be slower than a Java program by at least an order
>of magnitude.  Isn't Perl still dynamically typed without support for
>type declarations?
>

You're probably right, and from my experience Java is bad enough.
I recently wrote a move generator in Java and quit right there- I
couldn't even get in the same ballpark as Prophet's move gen, and
Prophet is not terribly fast. (Prophet is C++ btw.)

Yes, Perl is dynamically typed, and I think the lack of real type
safety coupled with being interpreted makes Perl a horrible choice
if you want to make something even semi-competitive.  Of course,
anything goes if you're just out to tinker around.

--
James




>>If anything it seems like a nice language to test ideas out quickly :)
>
>There are much better languages for that kind of stuff, you know. ;-)
>
>Tord



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.