Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Is C# best ideal for any chess programming?

Author: Ralf Elvsén

Date: 03:14:38 11/27/01

Go up one level in this thread


On November 26, 2001 at 20:39:57, Dann Corbit wrote:

>On November 24, 2001 at 15:53:21, Kevin Stafford wrote:
>
>>On November 24, 2001 at 15:40:24, Tom Kerrigan wrote:
>>
>>>C# is more or less the same as Java, so to answer your question, no, there will
>>>not be many chess engines written in C#, just as there are not many written in
>>>Java.
>>>
>>>-Tom
>>
>>C# is not more or less the same as java. They share a similar syntax, but there
>>are major differences in the implementation. C# as a I understand it provides
>>the option of native compilation, so that there is no VM layer. Even natively
>>compiled it won't be as fast as C or even C++, but should be measurably faster
>>than java. Whether it will be suitable to chess applications, its still to early
>>to say.
>
>There are compilers for Java also.
>Even with these compilers, performance still pales.
>There is no dynamic memory allocation in either Java or C#.

I don't see why this is relevant. I have written chess programs in
Java and C. I use dynamic memory allocation in neither version.
In fact, I avoid it just because it is slow.

Besides, when an object is created in Java, as far as I understand it,
this is analogous to a call to malloc. You just don't have to
call free :)

>Therefore, it is unspeakably lame as a language for writing chess engines.

Tell Peter Kappler...

>Hoever, I predict that dozens of people will write one {just like Java}, and
>(further) that only _most_ of them will blow chunks.  On the other hand, none of
>them is going to be a world-beater, not even the creamy ones with a chewy nougat
>center.



This page took 0.01 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.