Article View: news.software.readers
Article #232829Re: xnews error "bits index out of range"
From: Curt Welch
Date: Sun, 26 Apr 2009 18:22
Date: Sun, 26 Apr 2009 18:22
63 lines
4878 bytes
4878 bytes
Peter J Ross <peadar.ruadh@gmail.com> wrote: > In news.software.readers on 24 Apr 2009 18:32:19 GMT, Curt Welch > <curt@kcwc.com> wrote: > > > Mike Dee <emteedee@invalid.invalid> wrote: > > > >> As for 64 bits... when the day comes that I get a 64 bit 'puter and > >> OS... I might get to understand more about these potential Xnews > >> shortcomings :-) > > > > It won't require an upgrade to a 64 bit computer for the newsreaders to > > fix that. It's trivial to write the code on a 32 bit computer to > > support 64 bit numbers. All modern languages have built in support for > > 64 bit numbers. > > E.g., C has officially supported "long long integers" as well as "long > integers" since at least the C99 standard (1999), and they were > unofficially supported by many C compilers before that. > > > The bitch is simply that someone has to take the time to check > > and change the code, and release the new version. > > Already done in slrn 0.9.9, though IIRC the use of "long longs" isn't > well tested on Windows and therefore is switched off by default if > Windows is detected. > > > And if the 32 bit numbers > > ended up in data files created by the newsreader, it might also require > > writing code to convert the 32 bit based data files to 64 bit data > > files. > > Perhaps I'm missing something here. Why should 32-bit numbers be a > problem for software that can handle 64-bit numbers? I'm talking about the case where a data file format was designed to only support 32 bit numbers such as one with fixed width binary fields of only 4 bytes. So if the 32 bit version of the program writes binary data to the data file (like the files used to store, or index, headers, or track which articles have been read), the 64 bit version of the program has to write a different format file to fit the 64 bit numbers. Either the 64 bit program has to be smart enough to recognize which version the file is, and when witting it out, convert to the 64 bit format, or you have to throw all the old data away when upgrading, or you have to run a conversion program that converts all the old files in one pass as part of the upgrade. One simple example on the server side is that some code has in the past required leading zeroes to be added to the low and high water marks in the active file, so that they could be overwritten in real time without changing the length of the file and without having to update the entire file. If such a file was set up with 10 digit numbers to hold 32 bit values, problems would result when the 64 bit server tried to write an 11 digit number. It's easy to design the file formats so they aren't limited like that, but it's also common not to care and end up with data file formats do have limits like that in them - which just means more work would be required to convert the newsreader and to make it easy for people to upgrade to the new version without having to just throw away what could be a large cache of headers and or articles on their disk. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Technical Details
Message-ID:
<20090426142203.113$ws@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.news-service.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder8.cambrium.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mailReferences:
<Xns9BF4EAC7C30A5pianotech@127.0.0.1> <Xns9BF68C7445A37emteedee@62.141.42.83> <20090423121500.599$dF@newsreader.com> <Xns9BF7E6E1E55Demteedee@62.141.42.83> <20090424142905.346$7i@newsreader.com> <slrngv6l1o.882.pjr@pjr.gotdns.org>Show Full Headers
Complete Article Headers
Message-ID: <20090426142203.113$ws@newsreader.com>
Subject: Re: xnews error "bits index out of range"
Date: Sun, 26 Apr 2009 18:22:05 +0000
From: curt@kcwc.com (Curt Welch)
References: <Xns9BF4EAC7C30A5pianotech@127.0.0.1> <Xns9BF68C7445A37emteedee@62.141.42.83> <20090423121500.599$dF@newsreader.com> <Xns9BF7E6E1E55Demteedee@62.141.42.83> <20090424142905.346$7i@newsreader.com> <slrngv6l1o.882.pjr@pjr.gotdns.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.news-service.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder8.cambrium.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.readers
X-NRC-Trace: NewsReader.Com vqCJbmOmtLxbQ, ce=HD5f7BVXwKpbrRs08VItDrzSvfWzsn8/8
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 63
NNTP-Posting-Host: ceda2a61.nr5-q1.newsreader.com
X-Trace: DXC=Z3Q]U\MEGPLbQI74DDah7FbgZaH`e<A[IZ?:i9<JJBSNQF8CnEO]K1CiJ;
iV2YAoGECNL6:d9bL=IfGN<?0T3CgC
X-Complaints-To: abuse@newsreader.com