Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Can a Programming Language Cause Engines to be Slow?

Author: Angrim

Date: 16:10:38 11/15/02

Go up one level in this thread


On November 14, 2002 at 22:31:43, Robert Hyatt wrote:

>On November 14, 2002 at 20:15:44, Vincent Diepeveen wrote:
>
>>On November 14, 2002 at 13:01:55, Robert Hyatt wrote:
>>
>>Implementation matters a lot indeed, but functional languages
>>will *never* be as fast as c(++). Also JAVA will *never* be
>>as fast as c(++), no *matter* the implementation.
>
>Sure it can be.  A java compiler that compiles directly to native machine
>language has no particular problems to overcome beyond those that a C
>compiler has to deal with.
>

As just one simple counter-example, the Java language specifies that
all array accesses are bounds-checked.  Thus, any code which uses
arrays has to be slower in Java than in C unless you put bounds
checking in your C code manually.

Angrim



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.