Search found 16820 matches

by bob
Sun Sep 22, 2019 11:07 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: macOS users, proceed with caution with Xcode v11
Replies: 5
Views: 1686

Re: macOS users, proceed with caution with Xcode v11

I installed this yesterday. And at least for compiling crafty (using profile-guided optimizations as well) it worked flawlessly. This on a 2017-ish MacBook air.
by bob
Sun Sep 22, 2019 11:06 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Basic endgames
Replies: 33
Views: 5854

Re: Basic endgames

same as my other suggestion. PSQ for losing side hates the edge of the board. Winning side wants to get king close to losing king. The rook will automatically do the right thing to hem the king on the edge of the board and keep it there, thanks to the losing side's PSQ hating the edge. Those two sim...
by bob
Wed Sep 18, 2019 7:41 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Basic endgames
Replies: 33
Views: 5854

Re: Basic endgames

Pfft. It shouldn't get more complicated. Already took too much time. Only counts distance from corner and distance between kings. Maybe hash table needs to be rewritten for it does not take symmetry into account? O wait I see I introduced a bug. To be provided. [d] 4k3/8/8/R7/4K3/8/8/8 w - - Depth ...
by bob
Wed Sep 18, 2019 7:39 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 5604

Re: Crafty 25.3 MSVS 2019

There is still a problem, however. Works fine for unix-based systems. Still working on the windows version. Think I have it fixed in the source I sent you today, will wait for Joshua to confirm..
by bob
Tue Sep 17, 2019 4:54 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 5604

Re: Crafty 25.3 MSVS 2019

That's the big question. :) I'm not a windows user, and I am not doing these compiles. Can you give me any hints to pass on to Joshua as to what exactly is needed to indicate "this is a 64 bit application"???
by bob
Mon Sep 16, 2019 5:22 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 5604

Re: Crafty 25.3 MSVS 2019

OK, we are still mucking around with this. Joshua is compiling using the latest MSVC stuff. Here's our problem (I don't have a windows box to try this on so am getting compile help.) We can access __popcnt() with no problems including intrin.h. but we can NOT access __popcnt64(). Apparently the comp...
by bob
Sun Sep 15, 2019 4:20 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 5604

Re: Crafty 25.3 MSVS 2019

Mike:

Still working on this. Send me the email you are using and I will send the source code once I finish this cleanup...
by bob
Sat Sep 14, 2019 6:04 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 5604

Re: Crafty 25.3 MSVS 2019

For MSVC (_MSC_VER defined) you want: _BitScanForward64, _BitScanReverse64 for LSB, MSB: https://docs.microsoft.com/en-us/cpp/intrinsics/bitscanforward-bitscanforward64?view=vs-2019 Those seem to be ugly, returning the result through a pointer passed as an argument. Not so good for me as ALL of my ...
by bob
Thu Sep 12, 2019 4:40 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Back To The Beginning
Replies: 35
Views: 6401

Re: Back To The Beginning

most know I am a long-time assembly language user on dozens of architectures. The biggest gains I found in asm programming, thinking about the x86 stuff came from (1) accessing low-level hardware such as BSF/BSR before compiler intrinsics existed. (2) knowing more about the program's execution envir...
by bob
Thu Sep 12, 2019 4:24 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Back To The Beginning
Replies: 35
Views: 6401

Re: Back To The Beginning

thought I would reply out of interest. On my 2 year old MacBook, 2.2ghz i7 circa 2017 I see this number for perf 6 from start position: White(1): perft 6 total moves=119060324 time=3.11 White(1): Here's the next one: White(1): perft 7 total moves=3195901860 time=82.65 My perft was never optimized f...