I published a piece of software I use in Sapeli.
https://github.com/SamuraiDangyo/Eucalyptus
These bitbases tells whether a position is a draw or not.
Your chess engine will never lose a drawn KPK endgame ever again!
Pretty simple to use. See in Sapeli.
https://github.com/SamuraiDangyo/Sapeli ... li.c#L2253
Eucalyptus - KPK Bitbases Generator
Moderators: hgm, Rebel, chrisw
-
- Posts: 491
- Joined: Sat Mar 02, 2013 11:31 pm
-
- Posts: 1871
- Joined: Sat Nov 25, 2017 2:28 pm
- Location: France
Re: Eucalyptus - KPK Bitbases Generator
Is it worth using KPK as precomputed ? why not on the fly ?
-
- Posts: 491
- Joined: Sat Mar 02, 2013 11:31 pm
Re: Eucalyptus - KPK Bitbases Generator
Thanks for the reply!
Why not on the fly? To save cycles. It takes 800ms to generate these bitbases on my pc. Plus it is polluting RAM with all these generating arrays.
To be honest it doesn't make much difference in +ELO hunting.
But once generated you don't have to touch that array ever again.
Once generated that header is 72kB.
Eucalyptus only tells whether a position is draw.
For example Stockfish has fast on-the-fly KPK generator. Not sure if it is similar to mine. But precomputed arrays are always faster.
Why not on the fly? To save cycles. It takes 800ms to generate these bitbases on my pc. Plus it is polluting RAM with all these generating arrays.
To be honest it doesn't make much difference in +ELO hunting.
But once generated you don't have to touch that array ever again.
Once generated that header is 72kB.
Eucalyptus only tells whether a position is draw.
For example Stockfish has fast on-the-fly KPK generator. Not sure if it is similar to mine. But precomputed arrays are always faster.
-
- Posts: 2559
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Eucalyptus - KPK Bitbases Generator
Are you crazy? You attach GPL to the generated kpk table?!JohnWoe wrote: ↑Sat May 25, 2019 1:39 am I published a piece of software I use in Sapeli.
https://github.com/SamuraiDangyo/Eucalyptus
So when someone includes it, you force the cancerous GPL crap on him?
I wonder why some people still believe that open source = GPL. There are many other (much better and much less restrictive) options.
Martin Sedlak
-
- Posts: 2488
- Joined: Tue Aug 30, 2016 8:19 pm
- Full name: Rasmus Althoff
Re: Eucalyptus - KPK Bitbases Generator
Marcels generator takes a few milliseconds: https://github.com/kervinck/pfkpk
I've baked the resulting bitbase into my engine because my target platform has a lot of free ROM, but not RAM.
The freedom to make closed source software out of open source software is a freedom that harms everyone except the freeloader. Just like the freedom to burn down any house would harm everyone except the arsonist.There are many other (much better and much less restrictive) options.
Rasmus Althoff
https://www.ct800.net
https://www.ct800.net
-
- Posts: 1871
- Joined: Sat Nov 25, 2017 2:28 pm
- Location: France
-
- Posts: 2559
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Eucalyptus - KPK Bitbases Generator
That's a really weird analogy. Closed source is a freedom of choice as well, and it doesn't have to be that big evil corporation
who wants to harm you. How exactly does closed source harm you? This is just paranoia.
So how do you make closed source software out of a generated kpk table? It's not even code but data.
It's not Linux kernel either (and there's FreeBSD).
Martin Sedlak
-
- Posts: 2488
- Joined: Tue Aug 30, 2016 8:19 pm
- Full name: Rasmus Althoff
Re: Eucalyptus - KPK Bitbases Generator
The GPL doesn't prevent that choice. You can make closed source all day long. It's just that you can't take GPL software for that and reap where otheres have harvested.
Closed source itself doesn't, but the inherent competetive advantage of the leecher does harm the ecosystem. With the GPL, someone may add additional 10% on top of the existing code, but has to give that back so that also the original authors may include the patches.How exactly does closed source harm you?
Of course, there's also the other way around where you obviously don't want to GPL your non-GPL-software just because of a hundred LOC. Then just write them yourself - the GPL only protects the code, not the underlying ideas.
The output of a GPL program is not under GPL, the FSF explains that quite clearly.It's not even code but data.
Rasmus Althoff
https://www.ct800.net
https://www.ct800.net
-
- Posts: 491
- Joined: Sat Mar 02, 2013 11:31 pm
Re: Eucalyptus - KPK Bitbases Generator
Thanks for the reply!mar wrote: ↑Sat May 25, 2019 11:20 amAre you crazy? You attach GPL to the generated kpk table?!JohnWoe wrote: ↑Sat May 25, 2019 1:39 am I published a piece of software I use in Sapeli.
https://github.com/SamuraiDangyo/Eucalyptus
So when someone includes it, you force the cancerous GPL crap on him?
I wonder why some people still believe that open source = GPL. There are many other (much better and much less restrictive) options.
It was poorly worded. I meant the generator to be under GPLv3 not the 64bit KPK table.
I updated 1.01. I need to think whether this probing code needs licensing.
Nice! There are public domain generators for all sort of projects!
-
- Posts: 2559
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Eucalyptus - KPK Bitbases Generator
From experience, people who use open source libraries (with truly free licenses) in their closed source programs often create PRs to help fix/add new features.Closed source itself doesn't, but the inherent competetive advantage of the leecher does harm the ecosystem. With the GPL, someone may add additional 10% on top of the existing code, but has to give that back so that also the original authors may include the patches.
Speaking of "leechers" and "arsonists", I see 3 cheap SF clones in top 10 in CCRL, for example.
To me it's actually the cloners who are the leechers: people who take an existing chess program (where others have harvested), attach their name to it, rename the engine (reap where) and make random changes and pollute rating lists.
They still "honor" the GPL so it's perfectly legal, but I can't respect those at all (I don't see any honor in cloning existing programs).
There's way more "open source" chess programs like this than closed source.
Martin Sedlak