Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: I'd recommend Delphi

Author: David Blackman

Date: 02:45:12 10/26/99

Go up one level in this thread


On October 25, 1999 at 06:32:19, Steve Maughan wrote:

>On October 25, 1999 at 04:55:29, David Blackman wrote:
>
>>All objects go on the heap, i think?
>
>What do you mean by this?  Object procedures and function only go on the heap if
>there are more than two arguements.

The data storage used by the object itself is on the heap in Delphi. At least i
don't know any way to make it be on the stack. In C++ you can easily choose heap
or stack on an object by object basis.

>I doubt that it is 20% slower than VC++ when doing integer processing (ie chess
>programming).  It may be slower than VC++ for floating point stuff, as there is
>no FP optimization.  In all of the benchmarks I've seen it seems to beat VC++ at
>integer and string manipulation.  Have you seen any test where VC++ has done
>better - I'd be interested (of course not Microsoft).

We just coded up a version of the classic sieve benchmark. That's integers,
arrays and loops. 10.5 seconds GCC on linux. 18 seconds Delphi on Windows 98.
These were actually on the same computer (dual boot). Seive is not necessarily a
representative benchmark of anything important, but it suggests Delphi is not
exactly a speed demon.

Despite this i think Delphi is quite viable for chess. I would start to panic
and choose something else if i saw solid evidence of a factor of 2 slowdown.
This was not quite a factor of 2, and this sloppy benchmark is not solid
evidence.

>Another advantage of Delphi is that the GUI is simple to write.  My freeware
>Othello program only took one day to write the GUI.

This kind of thing can be more important than small speed differences.

>Steve Maughan



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.