Article View: news.software.nntp
Article #89889Re: Proposal specifications for MAXARTNUM
From: Richard Kettlewell
Date: Thu, 22 Dec 2022 21:14
Date: Thu, 22 Dec 2022 21:14
32 lines
2660 bytes
2660 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes: > I believe something needs being said about the maximum allowed, so as > not to be vague. Agreed... > And better put a limit corresponding to the "next > step" (2^128) instead of the one we consider in 2022 (2^64). ...but I’m not so sure that a limit around 2^128 is right. > This way, the problem is closed for version 2 of the protocol. As you > say, it should normally be enough for several years or maybe forever > for the needs of NNTP. (As a side note, future 128-bit processors > will probably treat "long long" as 128-bit integers, and existing > implementations built on such architectures may advertise that > length... I don't know how current 256-bit GPU treat "long long".) I’d note that there is a practical advantage to a 63-bit (or 64-bit) limit: parsing integers up to 64 bits is straightforward in current C implementations[1], while parsing larger integers usually involves stepping outside the built-in types and using some kind of large integer representation. If article numbers above 64 bits were realistic then this consideration would be irrelevant. But they aren’t; as such I don’t think we should make life harder for implementors to handle an implausible contingency. [1] strtoull has existed since C99; even Microsoft support it now. -- https://www.greenend.org.uk/rjk/
Technical Details
Message-ID:
<wwvmt7fuons.fsf@LkoBDZeT.terraraq.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<tnqm14$35bas$1@news.trigofacile.com> <wwvwn6lggvf.fsf@LkoBDZeT.terraraq.uk> <tnvor4$38u1h$1@news.trigofacile.com> <wwvr0wr38b7.fsf@LkoBDZeT.terraraq.uk> <to28sj$3alfe$2@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <wwvmt7fuons.fsf@LkoBDZeT.terraraq.uk>
Subject: Re: Proposal specifications for MAXARTNUM
Date: Thu, 22 Dec 2022 21:14:15 +0000
From: Richard Kettlewell <invalid@invalid.invalid>
References: <tnqm14$35bas$1@news.trigofacile.com> <wwvwn6lggvf.fsf@LkoBDZeT.terraraq.uk> <tnvor4$38u1h$1@news.trigofacile.com> <wwvr0wr38b7.fsf@LkoBDZeT.terraraq.uk> <to28sj$3alfe$2@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: terraraq NNTP server
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6"; logging-data="9737"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:mFv8OH6mKr8V66XdCnZPrqFDCjc=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^ F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha +r0NzP?vnz:e/knOY)PI-
X-Boydie: NO