Article View: news.software.nntp
Article #82096Re: Question about message numbers in news groups
From: Curt Welch
Date: Fri, 13 Nov 2009 20:56
Date: Fri, 13 Nov 2009 20:56
53 lines
4438 bytes
4438 bytes
Frank Slootweg <this@ddress.is.invalid> wrote: > Curt Welch <curt@kcwc.com> wrote: > > "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> wrote: > > > "Russ Allbery" <rra@stanford.edu> wrote in message > > > news:87fx8jchsv.fsf@windlord.stanford.edu... > > > > "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes: > > > > > ... > > > > > If it must remain a signed quantity, then what does a negative > > > > > value mean? > > > > > > > > Negative values aren't allowed. See RFC 3977. > > > > > > If such isn't permitted and doesn't make sense, why wasn't the value > > > defined as unsigned to begin with? > > > > > > To me, having declaring it as unsigned was a "no-brainer." > > > > Usenet was never designed. It just happened. There was no "beginning > > design". > > I think a likely reason might have been that not all *hardware* (i.e. > CPUs) at the time had *un*signed 32-bit integers. Well, there's no difference in signed vs unsigned ints on all modern CPUs except for the > and < comparison and I've never seen a CPU that could do signed ints that you couldn't easily code an unsigned compare. So it's not really a hardware limitation at work here. I think the real issue has more to do with the idea that 16 bits was too small, so they went with the next larger size of 32 bits which was available as longs in C on 16 bit PDP-11s before Usenet was created (and as the standard int on the Vax that were typical at the time NNTP was being created). But 32 bits was complete overkill (would not run out of bits for 50 thousand years for any real group) so the distinction between whether it was coded as signed (31 bits) vs unsigned (32 bits) was just mostly irrelevant. And as such, how it got coded was random luck depending on the thinking of each programmer. When you write a loop that goes from 1 to 10, and you code it with a 32 bit int, you don't bother to say to yourself, "gee, maybe someone in the future will want this loop to go to 4 billion instead of 10 so I better define it as an unsigned int now just to get ready for that day!". This issue with article numbers for Usenet is much the same. It's only now become an issue because Usenet (especially boneless) is being used in a way it was never intended to be used. When you use software in a way totally incompatible with the way it was first intended to be used, these sorts of problems are just normal and expected. You have to do back and re-code everything that breaks. And when you have as much working software in the field as we have to keep Usenet running, it becomes very disruptive and expensive to just "fix everything". -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Technical Details
Message-ID:
<20091113160013.936$ll@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.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!transit3.readnews.com!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mailReferences:
<hdh39c$d96$1@news.mixmin.net> <20091112183047.0D63E1A7BC7@www.ecn.org> <hdhq3m$ggh$1@tioat.net> <hdhs48$r41$1@news.trigofacile.com> <hdi149$o2n$1@snarked.org> <87r5s3gysj.fsf@windlord.stanford.edu> <hdi2na$pp8$1@snarked.org> <87my2rgy90.fsf@windlord.stanford.edu> <hdid9m$s7a$1@snarked.org> <87fx8jchsv.fsf@windlord.stanford.edu> <hdieke$t6u$1@snarked.org> <20091112233629.141$Rv@newsreader.com> <7m5tkgF3fsiioU1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <20091113160013.936$ll@newsreader.com>
Subject: Re: Question about message numbers in news groups
Date: Fri, 13 Nov 2009 20:56:37 +0000
From: curt@kcwc.com (Curt Welch)
References: <hdh39c$d96$1@news.mixmin.net> <20091112183047.0D63E1A7BC7@www.ecn.org> <hdhq3m$ggh$1@tioat.net> <hdhs48$r41$1@news.trigofacile.com> <hdi149$o2n$1@snarked.org> <87r5s3gysj.fsf@windlord.stanford.edu> <hdi2na$pp8$1@snarked.org> <87my2rgy90.fsf@windlord.stanford.edu> <hdid9m$s7a$1@snarked.org> <87fx8jchsv.fsf@windlord.stanford.edu> <hdieke$t6u$1@snarked.org> <20091112233629.141$Rv@newsreader.com> <7m5tkgF3fsiioU1@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!transit3.readnews.com!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com UYJ5yG0nPfx52-2m_XD1q88ncNaA-Jh19R6ZXZ8DtSolnFlW
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: 53
NNTP-Posting-Host: f85f9006.nr5-q1.newsreader.com
X-Trace: DXC=lAL:BfIUgmO@40WeZ]YZ4MbgZaH`e<A[IZ?:i9<JJBSNlMIZ=W7XdNCiJ;
iV2YAoGEGBE[b`8c?I@N8W0cKbCTDF
X-Complaints-To: abuse@newsreader.com