🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #1884

Re: book.dat and some other patches [Was: Re: book.dat]

#1884
From: Goswin Brederlow
Date: Thu, 17 Jan 2002 23:40
37 lines
2737 bytes
Simon Waters <Simon@wretched.demon.co.uk> writes:

> Goswin Brederlow wrote:
> > I fixed some compiler warnings and an error in the Rand32() function
> > (must be int on 64 Bit cpus, not long) and wrote a converter for the
> > book.dat file to/from host byteorder/padding to a general packed big
> > endian byteorder. Save a lot of time during compilation for Debian,
> > because one book now fits all architectures.
> > 
> > Intrested?
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=129653&repeatmerged=yes
> 
> Always interested - I'm doing this to learn these things -
> mostly I've think I've come to appreciate Java better so far ;)
> 
> As of last week there aren't any compiler warnings in the CVS
> version at Savannah (finally). So probably some duplication of
> effort going on here.

I will take a look at the cvs when this compile run is done, which
means about 10 days or if I find time inbetween.

I found some stupid bugs in the conversion, which made it a nop. I
fixed that now, url stands as it is once it updates. I tested it with
a much smaller book and that now worked.

I'm doing a full compile on different archs now to compare the result
of the native compile, conversion to general form and back. Does
anyone have a middle_endian system? I'm ignoring them for now.


I also experimented with using a GHashTable (from libglib1.2) instead
of a simple array while building the book. Doesn't seem to make much
of a dent in the speed, but it should improve the bigger the book gets.

MfG
        Goswin
Technical Details
Message-ID: <87k7ugo8by.fsf@dual.intern.brederlow.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <87k7uhh4tl.fsf@dual.intern.brederlow.de> <3C469CE2.881B939@wretched.demon.co.uk> <87bsftq84i.fsf@dual.intern.brederlow.de> <3C471EFE.3AE8A47B@wretched.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,1243ad013bd6d81e
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 2002-01-17 15:43:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: Goswin Brederlow <goswin.brederlow@student.uni-tuebingen.de>
Newsgroups: gnu.chess
Subject: Re: book.dat and some other patches  [Was: Re: book.dat]
Date: 18 Jan 2002 00:40:01 +0100
Organization: T-Online
Lines: 37
Sender: mrvn@dual
Message-ID: <87k7ugo8by.fsf@dual.intern.brederlow.de>
References: <87k7uhh4tl.fsf@dual.intern.brederlow.de> <3C469CE2.881B939@wretched.demon.co.uk> <87bsftq84i.fsf@dual.intern.brederlow.de> <3C471EFE.3AE8A47B@wretched.demon.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.t-online.com 1011310802 06 28369 GHhfTp7GSDY2K 020117 23:40:02
X-Complaints-To: abuse@t-online.com
X-Sender: 520045864123-0001@t-dialin.net
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)