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

Gaviota Tablebases Probing Code (v0.1.2) UPDATE

Post by michiguel »

Small maintenance update

* Name of some source files changed for better organization (they are gtb-*.c and gtb-*.h now)
* Number of paths are only limited by memory (before it was accepted only up to 5, the rest were rejected silently)
* Number of files that could be open at the same time has been increased. It is up to FOPEN_MAX in Windows, and more on Linux.
* Some variables that started with double underscored were renamed to avoid problems with certain compilers
* License.txt separated from readme.txt

http://sites.google.com/site/gaviotache ... e/releases

Thanks Aaron for your feedback.

Miguel
User avatar
jshriver
Posts: 1356
Joined: Wed Mar 08, 2006 9:41 pm
Location: Morgantown, WV, USA

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

Post by jshriver »

Woohoo. :)
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

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

Post by Sven »

Very minor hint ...

Code: Select all

% rm *~
(i.e., remove all backup copies with a ~ at the end of the file name) will make your source archive slightly smaller and - more important - look a bit cleaner :-)

Sven
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 »

Sven Schüle wrote:Very minor hint ...

Code: Select all

% rm *~
(i.e., remove all backup copies with a ~ at the end of the file name) will make your source archive slightly smaller and - more important - look a bit cleaner :-)

Sven
:oops:

I thought I did not have that. "git archive" spits a compressed folder with the sources that are in the project. I looks like I must have "added" the files at the beginning when I had the *~ floating around. If that is the case, git thinks that *~ belong to the project and includes them. Sorry and thanks, I will fix it.

Miguel
PS: There are lots of things that need to cleaned in the source files...
Aaron Becker
Posts: 292
Joined: Tue Jul 07, 2009 4:56 am

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

Post by Aaron Becker »

If you're keeping this all in git, would you be willing to make a public repository available? I integrated gtb into Daydreamer, but if there was a public repository I could manage updates (like this one) a lot better, and also submit patches easily.
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 »

Aaron Becker wrote:If you're keeping this all in git, would you be willing to make a public repository available? I integrated gtb into Daydreamer, but if there was a public repository I could manage updates (like this one) a lot better, and also submit patches easily.
I am all open to suggestions. Where do I put it?

Miguel
Aaron Becker
Posts: 292
Joined: Tue Jul 07, 2009 4:56 am

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

Post by Aaron Becker »

I've used github.com for hosting public copies of my code, and I'm quite happy with it.
User avatar
rvida
Posts: 481
Joined: Thu Apr 16, 2009 12:00 pm
Location: Slovakia, EU

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

Post by rvida »

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
Aaron Becker
Posts: 292
Joined: Tue Jul 07, 2009 4:56 am

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

Post by Aaron Becker »

I already put together a Makefile that generates a gtb.a to avoid recompiling the gtb library excessively, so this wouldn't be hard to provide if there's demand. It's kind of a pain to make your program find and load the shared library dynamically compared to just compiling it in, though.
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 »

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