🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #248598

Re: ? Jeff Relf has set a bad example.

#248598
From: Russ Allbery
Date: Tue, 14 Feb 2012 07:23
101 lines
7604 bytes
Demented Traveler <detravel@simic.net> writes:

> Actually, on further thought, the hypothetical gateway would tend to
> only see already-normalized-to-ASCII message-IDs.

I hope you're not talking about normalizing it *in the article that you
pass on*, instead of just normalizing it internally for comparison!  That
would open a whole different set of problems.  There are good reasons why
one of the cardinal rules of netnews software is that you never, ever
change the article once it's been injected; you pass it on the way that
you got it (with a few well-documented exceptions for trace headers), or
you reject it.

You don't want to break that invariant.  Down that path lies servers
adding advertisements to the bottom of every article that passes through
the server.  You really do not want servers being "helpful" and munging
the article and then propagating their mistakes and bugs and bad decisions
on to everyone else who's unlucky enough to be downstream of them.

> On the flip side, your main objections mostly involve circumstances
> where message-IDs are exposed to users rather than staying under the
> hood. The original objection to allowing 8-bit message-IDs was that it
> was too complicated to be justified to prettify something that was only
> rarely exposed to users. This means that although the more such
> message-IDs are exposed the stronger (some of) your arguments against a
> quick and dirty normalization scheme grow, also the stronger the
> arguments against simply rejecting such message-IDs grow.

I think you're misstating the argument against Unicode message IDs, or
maybe I was overly simplistic in presenting it.  It's not that one doesn't
prettify them because they're rarely exposed to users; it's that one
doesn't prettify them because users don't care about them except as opaque
strings.  Save the work for something where Unicode means the difference
between spelling words properly or butchering them, or between letting
someone use their real name or forcing them to use an English name.
Making system-generated unique keys pretty is just a waste of effort.

> Regarding "full" normalization being complicated and requiring
> occasional updates: you mentioned that other protocols already require
> such normalization, and that one of those was DNS. Every usenet server
> must also use DNS, so if the normalization adopted for message IDs was
> the same one used with DNS you'd be guaranteed that every server
> *already* had the software code on it to do such normalization and
> *already* had to have the occasional updates.

No, the people who did IDNA were much brighter than that.  :)  They
understood the serious compatibility issues with adding Unicode to DNS, so
they took a very aggressive encoding stance.  IDNA says that you convert
Unicode domain names to an encoded form basically as soon as you touch
them, and then everything you do with them uses the encoded form up until
the point at which you display them to a user.  Then you decode them
*only* at the very end, and only for display.  One of the huge advantages
of this approach is that only users who care about Unicode domain names,
and therefore have a reason to care to seek out updates, have to know
anything about the encoding; to everyone else who doesn't care about those
names, they just look like (kind of ugly) random domain names.

Every IDNA name that news server software runs into during normal
operation is already encoded and no news server software needs to know
anything about IDNA (except possibly if someone really wants to make
configuration files friendlier and allow admins to configure domain names
using the unencoded form, but so far as I know no one has yet bothered to
do that).  All that news servers see are DNS names that look like
xn--bcher-kva.ch.  So news servers don't generally have any specific IDNA
support.  That's the sort of rollout strategy that you *have* to have; you
have to assume that only a tiny fraction of the network will know anything
about your new encoding or normalization or whatnot, and that the vast
majority of the network will continue working the way it does now.

Readers may need to know this should they want to display domain names in,
say, email addresses "properly," but I don't know of any readers yet with
that support.  (Hm, maybe current development Gnus?)  But they would
convert to encoded form immediately upon entry of the email address, and
convert back only at the last possible moment for display.

But indeed this is one of the reasons why we were looking at Punycode (the
IDNA encoding format) for newsgroup names as a route to Unicode.  I still
think that's probably the best approach.

> It would just be a matter of a) making the normalization scheme used for
> DNS be exposed as its own API (making it a Unix library that DNS
> software uses as a dependency instead of burying it inside the DNS
> software would suffice) and b) having NNTP server software use that
> API. This avoids duplication of effort and washes NNTP's hands of the
> whole update mess, as the need to keep DNS working is so severe that the
> normalization tables being used on all the servers will all be kept up
> to date already. The NNTP server's normalization will keep itself up to
> date by riding on the coattails of work that will be being done anyway
> on that net host, and which if it isn't done will cause all kinds of
> things to break on that net host anyway.

Certainly if we wanted to pick an encoding format for newsgroup names or
for message IDs, we should use one that people are already using since
libraries are already available.  Rolling our own would be a particularly
bad choice.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87vcn9lvyf.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!nntp.giganews.com!feed.xsnews.nl!border-2.ams.xsnews.nl!xlned.com!feeder7.xlned.com!news2.euro.net!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
References: <slrnjikokv.3g8.steve@news.mixmin.net> <jhb1r2$fqd$1@news.trigofacile.com> <Jeff-Relf.Me@2012_Feb.13^11.35.am> <jhbr4j$ddu$1@news.trigofacile.com> <jhcb00$sks$1@pcls6.std.com> <Jeff-Relf.Me@2012_Feb.13^5.53.pm> <Z@Z> <87lio6m2q9.fsf@windlord.stanford.edu> <jhcqa9$s64$1@speranza.aioe.org> <87hayum1kq.fsf@windlord.stanford.edu> <jhcrdq$ube$1@speranza.aioe.org> <87d39im0fd.fsf@windlord.stanford.edu> <jhcukh$4fu$1@speranza.aioe.org> <jhcvds$65k$1@speranza.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <87vcn9lvyf.fsf@windlord.stanford.edu>
Subject: Re: ? Jeff Relf has set a bad example.
Date: Mon, 13 Feb 2012 23:23:36 -0800
From: Russ Allbery <rra@stanford.edu>
References: <slrnjikokv.3g8.steve@news.mixmin.net> <jhb1r2$fqd$1@news.trigofacile.com> <Jeff-Relf.Me@2012_Feb.13^11.35.am> <jhbr4j$ddu$1@news.trigofacile.com> <jhcb00$sks$1@pcls6.std.com> <Jeff-Relf.Me@2012_Feb.13^5.53.pm> <Z@Z> <87lio6m2q9.fsf@windlord.stanford.edu> <jhcqa9$s64$1@speranza.aioe.org> <87hayum1kq.fsf@windlord.stanford.edu> <jhcrdq$ube$1@speranza.aioe.org> <87d39im0fd.fsf@windlord.stanford.edu> <jhcukh$4fu$1@speranza.aioe.org> <jhcvds$65k$1@speranza.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!nntp.giganews.com!feed.xsnews.nl!border-2.ams.xsnews.nl!xlned.com!feeder7.xlned.com!news2.euro.net!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
Newsgroups: news.software.nntp,alt.free.newsservers,news.software.readers
Organization: The Eyrie
Lines: 101
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: usenet-its.stanford.edu 1329204217 3076 171.67.225.134 (14 Feb 2012
X-Complaints-To: news@usenet-its.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Cancel-Lock: sha1:sYbXdEw0hMk6pyqJjlOvzP6cx2U=
X-Original-Bytes: 7347