Help please with alpha-beta

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

Alexandr Novikov
Posts: 22
Joined: Tue Sep 15, 2015 8:21 pm

Re: Help please with alpha-beta

Post by Alexandr Novikov »

H.G.Muller,
I have no doubt that there is a faster way , but if you do not believe me , I can send you two copies of the software source code and you will see for yourself that the same number of nodes while the program is characterized by five times
User avatar
hgm
Posts: 27703
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Help please with alpha-beta

Post by hgm »

No need, I blieve you. I just wanted to express my surprise that the compiler would implement the test if something is contained in a set in such an inefficient way. From the speedup you quote it seems like it must keep the set as a list, and then scan through the list every time. Otherwise I could not explain how it could be slower than calculating 'mod'.
Joost Buijs
Posts: 1562
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: Help please with alpha-beta

Post by Joost Buijs »

Which compiler do you use?

In the past I did a lot of programming in Pascal, which was needed for one of my jobs, and I found that all the compilers I tried were not very good at code generation when compared to current C and C++ compilers.
Most of them had bugs, and there was hardly any optimization noticeable.
In the beginning I used Turbo Pascal, later on I used Borland Delphi and the RAD studio from Embarcadero, the last years I use Free Pascal in combination with Lazarus.
Alexandr Novikov
Posts: 22
Joined: Tue Sep 15, 2015 8:21 pm

Re: Help please with alpha-beta

Post by Alexandr Novikov »

I use pascal abc net, pascal clear for me. it also supports multiprocessing , but I this is still very far away )
Joost Buijs
Posts: 1562
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: Help please with alpha-beta

Post by Joost Buijs »

Pascal ABC net, I never heard of this, I found the site, most of the other sites describing it are in Russian.
I'm gonna check it out to see what it can do, maybe it is better than Free Pascal.
Alexandr Novikov
Posts: 22
Joined: Tue Sep 15, 2015 8:21 pm

Re: Help please with alpha-beta

Post by Alexandr Novikov »

It better then old dos pascal, i think
Joost Buijs
Posts: 1562
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: Help please with alpha-beta

Post by Joost Buijs »

I just installed ABC net and tried to compile an old version of my engine which I ported to Pascal 5 years ago.
Unfortunately it doesn't seem to understand variant records and the compiler generates 32 bit code only.
It looks very nice, and it probably is very good at the things it is designed for.
Maybe I can make my engine work with it, but I guess it is not worth the effort.
Alexandr Novikov
Posts: 22
Joined: Tue Sep 15, 2015 8:21 pm

Re: Help please with alpha-beta

Post by Alexandr Novikov »

Joost Buijs wrote:I just installed ABC net and tried to compile an old version of my engine which I ported to Pascal 5 years ago.
Unfortunately it doesn't seem to understand variant records and the compiler generates 32 bit code only.
It looks very nice, and it probably is very good at the things it is designed for.
Maybe I can make my engine work with it, but I guess it is not worth the effort.
Yes , it's not for all tasks and also based on Delphi.