Search found 135 matches

by Sesse
Fri Sep 21, 2018 3:10 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: My PHP Chess Move Generator is slow. Help!
Replies: 11
Views: 364

Re: My PHP Chess Move Generator is slow. Help!

Why should an object-oriented PHP program be significantly slower than a classical PHP program? Most importantly, because you are generating a ton of objects that need to be garbage collected, which takes significant amounts of time. You are also introducing an abstraction penalty that PHP's rather...
by Sesse
Thu Sep 20, 2018 9:09 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: My PHP Chess Move Generator is slow. Help!
Replies: 11
Views: 364

Re: My PHP Chess Move Generator is slow. Help!

Why should an object-oriented PHP program be significantly slower than a classical PHP program? Most importantly, because you are generating a ton of objects that need to be garbage collected, which takes significant amounts of time. You are also introducing an abstraction penalty that PHP's rather...
by Sesse
Wed Sep 19, 2018 9:24 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: My PHP Chess Move Generator is slow. Help!
Replies: 11
Views: 364

Re: My PHP Chess Move Generator is slow. Help!

You have three problems:

1. You are using PHP.
2. Your board structure is based on text (e.g. “a1”) instead of primitive values (e.g. 0, 0).
3. You are doing this object-oriented.

Fix those three, and your code will be much, much faster. :-)
by Sesse
Thu Sep 13, 2018 1:27 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Monte Carlo or Minimax?
Replies: 16
Views: 1182

Re: Monte Carlo or Minimax?

Well, it did manage to have a much smaller branching factor with such an impressive play. But you don't know whether that was from the NN evaluation or due to MCTS. How well would AZ have played with Stockfish's evaluation and AZ's MCTS? Nobody knows. You also have to consider the very real possibi...
by Sesse
Wed Sep 12, 2018 9:54 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: 7-men Syzygy attempt
Replies: 546
Views: 64042

Re: 7-men Syzygy attempt

So with the dust settling from the generation, where are we? Stockfish master has full support; is there a version of Fathom with 7-man support yet?
by Sesse
Tue Sep 11, 2018 10:22 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Newbie's question about printing the PV
Replies: 12
Views: 495

Re: Newbie's question about printing the PV

You can also pick the best move out of the transposition hash, recursively. However, you do risk that it has been overwritten (and if so, the PV gets cut short).
by Sesse
Mon Sep 10, 2018 7:19 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: 7-men Syzygy attempt
Replies: 546
Views: 64042

Re: 7-men Syzygy attempt

Question for Sesse. When you said that your set passes tbcheck, did you do the full check wherein the hash sum is recomputed and compared to the stored value, or did you do the quick check? The quick check only proves that the metadata block containing the sum transferred correctly. It won't catch ...
by Sesse
Sun Sep 09, 2018 7:51 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: 7-men Syzygy attempt
Replies: 546
Views: 64042

Re: 7-men Syzygy attempt

All my files match that checksum file. Success!

(This is after I replaced the faulty KRRNvKRR.rtbz earlier today, of course.)
by Sesse
Sun Sep 09, 2018 4:27 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: 7-men Syzygy attempt
Replies: 546
Views: 64042

Re: 7-men Syzygy attempt

rsync is nice, but very CPU-heavy, so it doesn't scale well for busy servers at all. There are variations like zsync that try to remedy some of this by not requiring an active server that checksums lots of data, but I don't think they ever caught on (and zsync requires extra storage space). I couldn...
by Sesse
Sun Sep 09, 2018 8:49 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: 7-men Syzygy attempt
Replies: 546
Views: 64042

Re: 7-men Syzygy attempt

I've checked file sizes against Lichess. For four of the tables, my file sizes match their mirror. For KRRNvKRR.rtbz and KRBBNvKQ.rtbz, we disagree. Both of these (as well as KQBNvKQN.rtbw, where I match with Lichess but disagree with the posted SHA256 sums) were among the files that were initially ...