Gaviota Tablebases Probing Code (v0.1.2) UPDATE

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: Gaviota Tablebases Probing Code (v0.1.2) UPDATE

Post by michiguel »

rvida wrote:Hi Miguel,

how about building a "gtb.dll" (under windows) or "libgtb.so" (under linux)?

This would reduce the size of executables and allows for future optimizations in TB access without recompiling. Just a thought.

---
Richard
If someone provide the .dll, I will consider doing the .so or Aaron could provide his. I barely use Windows and not at all for this subproject. It may not be the best approach for an engine developer, but maybe it could be good for a user. If the engine developer does not update his/her engine, the engine could improve the performance of the TB access by just updating the .so. Please correct me if I am wrong, I never had the necessity to do this. My lack of formal education in comp. sci. is showing.

Miguel
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: Gaviota Tablebases Probing Code (v0.1.2) UPDATE

Post by michiguel »

michiguel wrote:
Aaron Becker wrote:I've used github.com for hosting public copies of my code, and I'm quite happy with it.
I just took a look at it, and it seems fine. So GitHub will be.

Miguel
Probing code is in GitHub.

http://github.com/michiguel/Gaviota-Tablebases

Miguel
JVMerlino
Posts: 1398
Joined: Wed Mar 08, 2006 10:15 pm
Location: San Francisco, California

Re: Gaviota Tablebases Probing Code (v0.1.2) UPDATE

Post by JVMerlino »

76 hours to generate
11 hours to compress
...and less than 2 hours to implement!

Gaviota TBs FTW! :D

Thanks, Miguel!!

jm
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: Gaviota Tablebases Probing Code (v0.1.2) UPDATE

Post by michiguel »

JVMerlino wrote:76 hours to generate
11 hours to compress
...and less than 2 hours to implement!

Gaviota TBs FTW! :D

Thanks, Miguel!!

jm
I am glad it gave you no troubles. I put a link to Myrddin in the Gaviota TBs site. Two engines so far besides Gaviota and one GUI implemented the TBs. :-)

Miguel
JVMerlino
Posts: 1398
Joined: Wed Mar 08, 2006 10:15 pm
Location: San Francisco, California

Re: Gaviota Tablebases Probing Code (v0.1.2) UPDATE

Post by JVMerlino »

Hi Miguel,

It's probably going to be a little while (at least a few weeks) before I publicly release a version that implements GTB, since I just released 0.83 last week. So I leave it up to you if you want to link to Myrddin on your site.

Just thought you should know.

But thanks again!

jm
mathmoi
Posts: 290
Joined: Mon Mar 13, 2006 5:23 pm
Location: Québec
Full name: Mathieu Pagé

Re: Gaviota Tablebases Probing Code (v0.1.2) UPDATE

Post by mathmoi »

Hi Miguel,

I'm currently trying Gaviota's EGTB for my engine, MatMoi.

Is there any reason why the second arguments of tbpaths_add is not of type const char* ?

Anyhow, thanks for releasing your code.
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: Gaviota Tablebases Probing Code (v0.1.2) UPDATE

Post by michiguel »

mathmoi wrote:Hi Miguel,

I'm currently trying Gaviota's EGTB for my engine, MatMoi.

Is there any reason why the second arguments of tbpaths_add is not of type const char* ?

Anyhow, thanks for releasing your code.
Very good point. They will be better if they are all const.
The next version will all be:

extern const char ** tbpaths_init (void);
extern const char ** tbpaths_add (const char **ps, const char *newpath);
extern const char ** tbpaths_done (const char **ps);

They are not supposed to be changed.

Miguel
PS: I still need to solve an issue brought by John Merlino with a C++ compiler and will release a maintenance update. Do not count too much on tbget_stats, it is the only function that I will change the interface (at least once more time). Changing things internally will give the chance to have different type of stats.
mathmoi
Posts: 290
Joined: Mon Mar 13, 2006 5:23 pm
Location: Québec
Full name: Mathieu Pagé

Re: Gaviota Tablebases Probing Code (v0.1.2) UPDATE

Post by mathmoi »

Hi Miguel,

Thanks for the change, it will make it easier to use them with std::string, since std::string only return pointer to const char*. In the meantime I casted away the constness with a const_cast<char *> but that is really ugly.