Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Languages revisited. Functional language beats C for number cruncing

Author: Uri Blass

Date: 09:48:25 01/10/03

Go up one level in this thread


On January 10, 2003 at 12:38:30, Dan Andersson wrote:

>I tend to use high level languages for just the reason of brevity. Why on earth
>write 1k lines when I can get away with 50-100 in a decent language. And the
>number of bugs tend to be linear to the length of the program. And for testing
>and developement of algorithms I use Forth. That gives me interactive testing.
>
>MvH Dan Andersson

The point is that writing more lines can do the code faster.

I got speed improvement in movei from having special functions for white pawns
and for black pawns inspite of the fact that the code became longer and it is
only one example.

There are a lot of cases when I got faster code by writing longer code.

I am talking about the same language but I believe that usually it is possible
to get faster code by longer code.

I did not understand from your postwhat is the task of number cruncing that
Functional language beated C and it is interesting to know if good C programmers
worked on the problem.

Uri



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.