🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89823

Re: Advertising the MAXARTNUM extension

#89823
From: Julien ÉLIE
Date: Sun, 11 Dec 2022 10:42
50 lines
3273 bytes
Salut Franck,

> Since this number is (usually) based on the integer type used by the 
> developer, I really don't see the point of accepting anything other than 
> the maximum values of the main integer types.
> 
> So I'll go for a single, simple syntax, in both directions, like :
> 
> MAXARTNUM INT32        => ^31
> MAXARTNUM UINT32    => ^32
> MAXARTNUM INT64        => ^63
> MAXARTNUM UINT64    => ^64
> MAXARTNUM        => Unlimited.
> 
> Away goofy numbers, away very confusing ^N (meaning ^N-1 !).

OK for removing the confusing ^N notation.
However, I still have a concern about what you call "goofy numbers". 
What would be their definition? :-)

I explain: how could you be sure that all implementations are limited to 
the proposed types?
32-bit Perl for instance can go up to signed 2^53-1 integers on systems 
with double-precision floats (after that number, the integer precision 
is lost).
And I bet there are other languages with different possible limits.

If a news client or server advertises a number, it is normally for a 
good reason, and not a random one changing at each session.

That's why I'm still not convinced that we should introduced names types 
like UINT64 as it seems to be restrictive and not easily scalable in the 
future.  We would for instance have to handle a IANA registry of such 
names and if we want to add UINT128 or any other type (based on powers 
of 3 or anything else), it will be difficult to have implementations be 
updated to understand these new types.
On the contrary, numbers will always be numbers :-)



> What is the real benefit of a MAXARTNUM 1234567890?
> What is the real benefit of a MAXARTNUM ^35?

Probably not these numbers, but 2^53-1 and 2^128-1 may are.  As well as 
other kinds of ints with future processors or compilers.

-- 
Julien ÉLIE

« Mens sana in corpore sano. » (Juvénal)
Technical Details
Message-ID: <tn4c68$2nf65$3@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
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <tn3245$2mbfk$2@news.trigofacile.com> <Cmr6pS8uULc@news.spitfire-nntp.fr>

Show Full Headers
Complete Article Headers
Message-ID: <tn4c68$2nf65$3@news.trigofacile.com>
Subject: Re: Advertising the MAXARTNUM extension
Date: Sun, 11 Dec 2022 11:42:16 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <tn3245$2mbfk$2@news.trigofacile.com> <Cmr6pS8uULc@news.spitfire-nntp.fr>
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: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 11 Dec 2022 10:42:16 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="2866373"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1
Cancel-Lock: sha1:YuniCf4BcMz6a4Ca6D/jitPMgUE= sha256:d3mv78cgN628yjl0TrJorDxDbf2+vfPYVO00sujHgeI= sha1:yM/8FnUldznpa8BUylvNM9SzgOE= sha256:dbcx1RNAyqAortfZ0wk6BeoMyKLbNHqxVwxd7msfwbE=
In-Reply-To: <Cmr6pS8uULc@news.spitfire-nntp.fr>
Lines: 49