Polyglot - merge-book oddity

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

User avatar
hgm
Posts: 27790
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Polyglot - merge-book oddity

Post by hgm »

Ozymandias wrote: Wed Mar 24, 2021 2:44 pmDoesn't the latest one get interrupted by the TC? If the engine waited for them all to finish, wouldn't it lose on time?

Books could be mini-maxed and that would be an improvement over current polyglot 2*W+D, but this still leaves undesirables. For example, in the fool's mate, if you have a PGN with as many 2... Qg5 as 2... Qh4#, you may go for 2. g4. I see no reason to leave Qg5 for the mini-max process to deal with.
Usually one does not create an opening book during a game.
User avatar
Rebel
Posts: 6991
Joined: Thu Aug 18, 2011 12:04 pm

Re: Polyglot - merge-book oddity

Post by Rebel »

Guenther wrote: Wed Mar 24, 2021 2:28 pm
Rebel wrote: Wed Mar 24, 2021 1:20 pm
Guenther wrote: Tue Mar 23, 2021 12:04 pm
Guenther wrote: Sun Mar 21, 2021 1:58 pm

Well, I uploaded the already compiled fixed version from HGM here:
https://drive.google.com/drive/folders/ ... E15NjVyY2M
I will remove this upload now, as HGM has done more essential fixes later anyway.
If there is still interest I could compile the newer fixes and upload again.
Just make a request here or via PM.
Is your compile a separate executable or an Polyglot update?

In case of the latter that would be a serious change as it affects the weights in book-1, not everybody wants that.
I don't quite understand your question?

It should be obvious from the thread reading that I just compiled HGMs first change (for everyone who was interested) and did a quick test on it.
Also in your reply, one can actually see my quote, that I had deleted it meanwhile and the reason for the deletion is also given...
My reply and question was on the part I colored red.
90% of coding is debugging, the other 10% is writing bugs.
User avatar
hgm
Posts: 27790
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Polyglot - merge-book oddity

Post by hgm »

Do you mean to say there are actually pieces that would prefer the old behavior, where positions in book 1 completely eclipse these from book 2? This is not what one would generally consider 'merging'. It is more like a 'replace' function.

Of course it would be possible to keep both functionalities, each activated through a different option.
User avatar
Guenther
Posts: 4605
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Polyglot - merge-book oddity

Post by Guenther »

Rebel wrote: Wed Mar 24, 2021 5:42 pm
Guenther wrote: Wed Mar 24, 2021 2:28 pm
Rebel wrote: Wed Mar 24, 2021 1:20 pm
Guenther wrote: Tue Mar 23, 2021 12:04 pm
Guenther wrote: Sun Mar 21, 2021 1:58 pm

Well, I uploaded the already compiled fixed version from HGM here:
https://drive.google.com/drive/folders/ ... E15NjVyY2M
I will remove this upload now, as HGM has done more essential fixes later anyway.
If there is still interest I could compile the newer fixes and upload again.
Just make a request here or via PM.
Is your compile a separate executable or an Polyglot update?

In case of the latter that would be a serious change as it affects the weights in book-1, not everybody wants that.
I don't quite understand your question?

It should be obvious from the thread reading that I just compiled HGMs first change (for everyone who was interested) and did a quick test on it.
Also in your reply, one can actually see my quote, that I had deleted it meanwhile and the reason for the deletion is also given...
My reply and question was on the part I colored red.
I still don't understand what you mean? What exactly is your question?
I said 'I could compile the newer fixes (done by HGM after my first compilation, which shouldn't needed to be mentioned at all,
if one has followed this thread) and upload again
' (I also coloured the 'could' now for you, because it did not happen anyway)

@other readers
Does anyone understand what Ed means? It feels a bit like an endless loop now.
https://rwbc-chess.de

trollwatch:
Chessqueen + chessica + AlexChess + Eduard + Sylwy
User avatar
Rebel
Posts: 6991
Joined: Thu Aug 18, 2011 12:04 pm

Re: Polyglot - merge-book oddity

Post by Rebel »

hgm wrote: Wed Mar 24, 2021 5:47 pm Do you mean to say there are actually pieces that would prefer the old behavior, where positions in book 1 completely eclipse these from book 2? This is not what one would generally consider 'merging'. It is more like a 'replace' function.
I am just worried that folks who did not read this thread will use the new version without understanding the consequences, hence I gave it a different name, not Polyglot but Merge-Books.
Of course it would be possible to keep both functionalities, each activated through a different option.
Maybe even better that way.
90% of coding is debugging, the other 10% is writing bugs.
User avatar
Rebel
Posts: 6991
Joined: Thu Aug 18, 2011 12:04 pm

Re: Polyglot - merge-book oddity

Post by Rebel »

Guenther wrote: Wed Mar 24, 2021 5:53 pm
Rebel wrote: Wed Mar 24, 2021 5:42 pm
Guenther wrote: Wed Mar 24, 2021 2:28 pm
Rebel wrote: Wed Mar 24, 2021 1:20 pm
Guenther wrote: Tue Mar 23, 2021 12:04 pm
Guenther wrote: Sun Mar 21, 2021 1:58 pm

Well, I uploaded the already compiled fixed version from HGM here:
https://drive.google.com/drive/folders/ ... E15NjVyY2M
I will remove this upload now, as HGM has done more essential fixes later anyway.
If there is still interest I could compile the newer fixes and upload again.
Just make a request here or via PM.
Is your compile a separate executable or an Polyglot update?

In case of the latter that would be a serious change as it affects the weights in book-1, not everybody wants that.
I don't quite understand your question?

It should be obvious from the thread reading that I just compiled HGMs first change (for everyone who was interested) and did a quick test on it.
Also in your reply, one can actually see my quote, that I had deleted it meanwhile and the reason for the deletion is also given...
My reply and question was on the part I colored red.
I still don't understand what you mean? What exactly is your question?
I said 'I could compile the newer fixes (done by HGM after my first compilation, which shouldn't needed to be mentioned at all,
if one has followed this thread) and upload again
' (I also coloured the 'could' now for you, because it did not happen anyway)

@other readers
Does anyone understand what Ed means? It feels a bit like an endless loop now.
I will rephrase :D - if you get a PM with the request for the new version, then: what name do you give that compile, Polyglot.exe or new name as I have done?
90% of coding is debugging, the other 10% is writing bugs.
User avatar
Guenther
Posts: 4605
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Polyglot - merge-book oddity

Post by Guenther »

Rebel wrote: Wed Mar 24, 2021 7:49 pm
I will rephrase :D - if you get a PM with the request for the new version, then: what name do you give that compile, Polyglot.exe or new name as I have done?
This question finally makes some sense for me :)
There will be no request, because I am not interested it in anymore. (actually I wasn't from the beginning, I just wanted to help)

If I had done it, the binary would have become the name the source had offered for it of course, which wouldn't have been my responsibilty,
as the fork is maintained by HGM. So I guess I was most of the time the wrong recipient for your question(s).
https://rwbc-chess.de

trollwatch:
Chessqueen + chessica + AlexChess + Eduard + Sylwy
User avatar
hgm
Posts: 27790
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Polyglot - merge-book oddity

Post by hgm »

Rebel wrote: Wed Mar 24, 2021 7:16 pmI am just worried that folks who did not read this thread will use the new version without understanding the consequences, hence I gave it a different name, not Polyglot but Merge-Books.
Well, the old behavior should count as a bug, right? No one should ever expect a 'merge' to work this way. You didn't expect this, and called it an 'oddity'...

So I suppose that it will cause more confusion all in all to let the old behavior persist, whether in a program called polyglot.exe or in any orther executable. If the old behavior should stay available, I would make it available under another option name.
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: Polyglot - merge-book oddity

Post by Michel »

hgm wrote: Wed Mar 24, 2021 9:46 pm
Rebel wrote: Wed Mar 24, 2021 7:16 pmI am just worried that folks who did not read this thread will use the new version without understanding the consequences, hence I gave it a different name, not Polyglot but Merge-Books.
Well, the old behavior should count as a bug, right?'...
.
For historical accuracy I should point out that this behaviour is by design. I was told by the late Marc Lacrosse that he requested it to be this way when he created the opening book for Fruit when it was competing in the WCCC. It goes without saying that Fabian Letouzey could have implemented a symmetric merge if he had wanted to.
Ideas=science. Simplification=engineering.
Without ideas there is nothing to simplify.
User avatar
Ozymandias
Posts: 1534
Joined: Sun Oct 25, 2009 2:30 am

Re: Polyglot - merge-book oddity

Post by Ozymandias »

Michel wrote: Thu Mar 25, 2021 5:55 am
hgm wrote: Wed Mar 24, 2021 9:46 pm
Rebel wrote: Wed Mar 24, 2021 7:16 pmI am just worried that folks who did not read this thread will use the new version without understanding the consequences, hence I gave it a different name, not Polyglot but Merge-Books.
Well, the old behavior should count as a bug, right?'...
.
For historical accuracy I should point out that this behaviour is by design. I was told by the late Marc Lacrosse that he requested it to be this way when he created the opening book for Fruit when it was competing in the WCCC. It goes without saying that Fabian Letouzey could have implemented a symmetric merge if he had wanted to.
Exactly, you don't describe a bug's behavior when you talk about a new feature (as already quoted). I didn't know who's idea it was, thanx for the historical note.

BTW, I find the way it works to be useful and a lot of fun to play with, if you know what you're doing.