HGM's Polyglot reference material

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

AndrewGrant
Posts: 1847
Joined: Tue Apr 19, 2016 6:08 am
Location: U.S.A
Full name: Andrew Grant

HGM's Polyglot reference material

Post by AndrewGrant »

HGM, I hope you'll read this thread.

I've just been looking at http://hgm.nubati.net/book_format.html, in order to confirm the work of a colleague. Under the heading "Sample code", there is pg_key.c and pg_show.c, but neither file exists still on your website, nor are they archived by the wayback machine.

Do you still have those files on hand?
Friendly reminder that stealing is a crime, is wrong, and makes you a thief.
"Those who can't do, clone instead" - Eduard ( A real life friend, not this forum's Eduard )
User avatar
Rebel
Posts: 7140
Joined: Thu Aug 18, 2011 12:04 pm
Full name: Ed Schröder

Re: HGM's Polyglot reference material

Post by Rebel »



pg.zip
90% of coding is debugging, the other 10% is writing bugs.
AndrewGrant
Posts: 1847
Joined: Tue Apr 19, 2016 6:08 am
Location: U.S.A
Full name: Andrew Grant

Re: HGM's Polyglot reference material

Post by AndrewGrant »

Thanks, Ed. This will be very helpful.
Friendly reminder that stealing is a crime, is wrong, and makes you a thief.
"Those who can't do, clone instead" - Eduard ( A real life friend, not this forum's Eduard )
User avatar
hgm
Posts: 28010
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: HGM's Polyglot reference material

Post by hgm »

I think I never had those. The HTML page with the format description was copied from Michel VandenBergh's website, and I added the part about variants to it. I never noticed that it contained relative links, which therefore started referring to my own website.
smatovic
Posts: 2872
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: HGM's Polyglot reference material

Post by smatovic »

Dave Gomboc
Posts: 13
Joined: Sun Aug 15, 2021 12:22 am
Full name: Dave Gomboc

Re: HGM's Polyglot reference material

Post by Dave Gomboc »

Is there a definitive upstream repository for Polyglot somewhere? While I do see a repository or two on Github, but nothing published by F. Letouzy (original author) or H.G. Muller (author of updates in "2.x" version).
User avatar
hgm
Posts: 28010
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: HGM's Polyglot reference material

Post by hgm »

Unfortunately the GitWeb interface for my on-line source repository is down, and I haven't had time to repair it. But isn't Polyglot available as a Debian (source) package? I haven't done anything on Polyglot for many years, so one supposes that the latest changes I made should have trickeld through to Debian.

I consider Polyglot obsolete, and have focused on UCI2WB as adapter for XBoard.
Dave Gomboc
Posts: 13
Joined: Sun Aug 15, 2021 12:22 am
Full name: Dave Gomboc

Re: HGM's Polyglot reference material

Post by Dave Gomboc »

hgm wrote: Wed Sep 04, 2024 6:52 pm Unfortunately the GitWeb interface for my on-line source repository is down, and I haven't had time to repair it. But isn't Polyglot available as a Debian (source) package? I haven't done anything on Polyglot for many years, so one supposes that the latest changes I made should have trickeld through to Debian.

I consider Polyglot obsolete, and have focused on UCI2WB as adapter for XBoard.
AFAIK, the tip of GNU's XBoard repository is currently using polyglot to communicate with UCI engines. Is switching to use UCI2WB one of the improvements that you have made to Winboard that isn't yet upstreamed? Let's try to get all your updates integrated into the GNU XBoarc repository. I'm happy to not care about Polyglot once it can be eliminated from the next point release of Winboard/XBoard!
User avatar
hgm
Posts: 28010
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: HGM's Polyglot reference material

Post by hgm »

Neither Polyglot nor UCI2WB is a GNU project. They cannot be in the XBoard repository at Savannah without transferring the copyrights to GNU. And Polyglot has many contributors.

Originally UCI2WB started as a rule-agnostic adapter for UCI dialects, so that it could handle arbitrary variants. Downside compared to Polyglot was that it was a pure protocol adapter. It did not store engine settings, and did not convert the PV to SAN. (Which is not possible without rule knowledge.)

But when CECP was extended to support engine-define options too, outsourcing these additional tasks to an adapter became undesirable, and I added the possibilty to save such settings and produce SAN PVs to the GUI itself.
Dave Gomboc
Posts: 13
Joined: Sun Aug 15, 2021 12:22 am
Full name: Dave Gomboc

WinBoard/XBoard reintegration and UCI2WB (was Re: HGM's Polyglot reference material)

Post by Dave Gomboc »

hgm wrote: Sat Sep 07, 2024 2:00 pm Neither Polyglot nor UCI2WB is a GNU project. They cannot be in the XBoard repository at Savannah without transferring the copyrights to GNU. And Polyglot has many contributors.
Well, the copyright transfer is definitely preferred, but I do believe that one acceptable alternative to GNU is that the author(s) explicitly contribute their work to the public domain. Even that would still require specific sign-off from every contributor, though, so it sounds like that's definitely not a practical option for Polyglot.

I did a web search to learn more about UCI2WB. https://www.chessprogramming.org/UCI2WB indicates that while there was some original program named the same back a couple of decades ago, that the one you're referring to is actually something that you created beginning with USI2WB in 2009 and released a version 4.0 of back in 2018 (viewtopic.php?t=69203). So, I wonder: are you the only author of the current code in the current edition UCI2WB, and are you (and any other authors that might exist) amenable to placing that code upstream in Savannah?

I was hoping to get all of your outstanding Winboard changes merged into Savannah's XBoard, then publish an official point release that contains it. However, if that's not a realistic option and WinBoard is just never going to be fully integrated back into Savannah, then it's better that I know that sooner rather than later so that I don't keep barking up the wrong tree.

Dave

P.S. Would calling it UCI2CECP instead make things less or more confusing if it's integrated into GNU XBoard?