Search found 805 matches

by Joost Buijs
Sat Mar 23, 2019 6:12 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Some x64 assembler for the curious
Replies: 4
Views: 233

Re: Some x64 assembler for the curious

The good old days! The first chess program I wrote during 1977/1978 was in assembler too. I remember the move generator being quite fast 15 kns, but the program overall did 700 ns on the Heatkit H8 (2MHz. Intel 8080 with 16k static memory ). In the beginning I used 2 cassette drives, one to load the...
by Joost Buijs
Thu Mar 21, 2019 2:14 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Deep mate question
Replies: 12
Views: 550

Re: Deep mate question

Nightmare (10 threads) takes 19 ply and 14 seconds to solve this position with ~270 million nodes. It uses aspiration window values: 50, 150, 450, 900, and Infinite. These are rule of thumb values, I never optimized them. info depth 15 score cp 79 time 180 nodes 1900795 nps 10559972 tbhits 0 pv h5h6...
by Joost Buijs
Sun Mar 17, 2019 12:24 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: On-line engine blitz tourney March
Replies: 13
Views: 490

Re: On-line engine blitz tourney March

I expected LeelaRB to win the tournament, but somehow it didn't live up to expectations. Indeed it did not do that well. In the absence of Arasan and Texel I thought it could fight for the win, but at the end of the day the £100 GTX 1050 was probably not enough. A £700 - £800 RTX 2080 would have be...
by Joost Buijs
Sun Mar 17, 2019 6:28 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: On-line engine blitz tourney March
Replies: 13
Views: 490

Re: On-line engine blitz tourney March

Henk, this probably has to do with the Mc.Mahon system. Nightmare was very lucky this time, two of its opponents were so friendly to let their clock run out of time in a drawn endgame, so it should probably have had 1 point less. Both Texel and Arasan and were missing and that also increases ones wi...
by Joost Buijs
Sat Mar 16, 2019 12:27 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: CPW bitscan with reset could someone explain this line?
Replies: 9
Views: 378

Re: CPW bitscan with reset could someone explain this line?

When you define this function inline in a header file interprocedural or linktime optimization is not necessary, at least that is my experience with the compilers I use. It might be different for g++, I don't know. Sure, files that are #included are basically the same file. Usually it is considered...
by Joost Buijs
Sat Mar 16, 2019 11:18 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Need MSVC with assembler file help
Replies: 24
Views: 560

Re: Need MSVC with assembler file help

the default alignment MSVC uses for structures is 8 bytes, since you only seem to use 32 bit integers in your structs it should be very straightforward to calculate the proper offset. Sorry, but this is not true. The default alignment is simply the alignment of a member that requires maximum aligme...
by Joost Buijs
Sat Mar 16, 2019 8:05 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Need MSVC with assembler file help
Replies: 24
Views: 560

Re: Need MSVC with assembler file help

Yes, basically that is it. With inline assembly you can have the compiler handle this for you, unfortunately MSVC doesn't support inline assembly in 64 bit mode. Maybe there are also ways to access labels and declarations in C from external assembly, that is something I can't tell because I never us...
by Joost Buijs
Sat Mar 16, 2019 7:26 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Need MSVC with assembler file help
Replies: 24
Views: 560

Re: Need MSVC with assembler file help

Are you programming in assembler, or C? If the latter, why do you care what the .asm is? --Jon I am programming in both. Some functions like initialization functions and engine protocol functions are in C. Search functions will be in assembler. MSVC can compile both kind of files and link them. I k...
by Joost Buijs
Fri Mar 15, 2019 4:40 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: CPW bitscan with reset could someone explain this line?
Replies: 9
Views: 378

Re: CPW bitscan with reset could someone explain this line?

When you define this function inline in a header file interprocedural or linktime optimization is not necessary, at least that is my experience with the compilers I use. It might be different for g++, I don't know.
by Joost Buijs
Fri Mar 15, 2019 2:08 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: CPW bitscan with reset could someone explain this line?
Replies: 9
Views: 378

Re: CPW bitscan with reset could someone explain this line?

Agreed, it is just that I don't see any reason why the optimizer could not inline that routine everywhere.