🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56918

[yEnc] Keep in focus

#56918
From: Nuutti Kotivuori
Date: Tue, 26 Feb 2002 00:53
116 lines
6067 bytes
I personally am not an avid usenet binary downloader, nor am I a
usenet server administrator. All in all, I don't really care how this
matter is going to end up, since it's not going to affect me anyway. I
do, however, have an interest of "doing things right". So that is why
I'm writing.

First of all, let's keep in focus:

- yEnc is not going to invade mails anytime soon

Even though 8-bit transport is often a possibility these days, if a
message passes through a non-8bit-clean server, it will be encoded in
quoted-printable. This does happen in reality. Having an yEncoded file
encoded with quoted-printable bloats it to humongous proportions. yEnc
would have to also play very well together with MIME.

- yEnc will not be an XML based format

XML does not allow, as such, binary data inside elements. XML always
has a charset for a file - but the real character is (after charset
decoding) as Unicode characters. All the escapes are Unicode character
references as well. 7-bit data can go well inside XML, 8-bit no. And
ofcourse, nobody wants to write an XML-parser to be able to decode
files.

- yEnc cannot require full MIME compliance

Even though many newsreaders today are support MIME fully, I am led to
believe that many don't. Requiring the parsing of MIME-multiparts and
nested constructs for the implementation of a simple usenet binary
grabber is not feasible. Note that this does not mean that the
messages should not be MIME-messages - just that there has to be a way
to extract the binary from the message without parsing the
MIME-constructs.

- yEnc needs to contain metadata _in the body_

In the beginning, many people are going to be saving messages into a
file and decoding by an external program. This saving cannot require
the headers to be written in as well. Also, if the message is a
MIME-message, requiring the internal MIME-headers to be written into a
file is not a good thing - many mailers do not have even the
possibility of doing this. So filenames, CRC's, checksums and the like
need to be in actual encoding format - which doesn't ofcourse mean
that they can't be in the headers _as well_.

- separate yEnc the encoding and yEnc the message format

yEnc as an encoding only is about the file contained in the message
and it's metadata. File parts indicators in subject field should be
standardized - even required for yEnc encoded files - but should not
be a part of the encoding standard.

- yEnc must be one format, not many possible formats

There must be one single draft or standard about yEnc. Decoders should
be certain, that by implementing the draft or standard fully, they
will be able to decode all yEnc messages of the current
version. Features such as compression should not be an optional
implementable part of the protocol, but a required part of the
protocol - even if all messages aren't compressed. This again does not
mean that there must not be any different methods inside the standard
- for example additional escapes could be supported, as long as they
are mentioned in the standard.

***

On a bit more personal note, how things in my opinion should be:

- Arithmetic encoding, not escaping

In my opinion, escaping is ugly, skewing the data doubly
so. Arithmetic encoding solves these both problems at the same time,
and (depending on the actual algorithm) usually a couple more. Easy
implementation is not equal to naive implementation. Implementing
arithmetic encoding is pretty easy and straightforward, even if the
mathematical foundation weren't.

- Arithmetic encoding, not compression

Most of the advantages gained by compression are already achieved from
arithmetic encoding - compression only have marginal use. Even if
arithmetic encoding is not used, compression should not be a part of
the transfer encoding. 

- Separate MIME support

If yEnc is wanted also for MIME - in usened or in mails - it should be
a separate draft. Probably it would be "Content-Transfer-Encoding:
X-yEnc" and have the MIME boundary delimiter starter sequence, '--',
non-appearing in stream as well. This would work very well for 8-bit
clean transports - but is not the same as what usenet binary groups
need yEnc for.

- yEnc documents conforming to common RFC outlook

The documents provided will really need to be rewritten to resemble an
RFC. This also means specifying all things in detail, such as
characters allowed in fields, quoting, and other things. This is
probably something that will happen after the design issues are sorted
out.

***

Well, these were just rambling about things I know something about -
ignore them if they are silly, comment if you have something to
comment about.

In any case, I think it's wonderful that someone is doing innovative
work for binary transport in usenet. But do believe quite firmly that
yEnc, as it is now, is quite an ugly hack - but it's the best there is
right now - and making it right once and for all is quite an important
goal.

-- Naked
Technical Details
Message-ID: <87bsed3vxm.fsf@iki.fi>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!nerim.net!news.stealth.net!news.cc.tut.fi!uutiset.saunalahti.fi!localhost

Show Full Headers
Complete Article Headers
Message-ID: <87bsed3vxm.fsf@iki.fi>
Subject: [yEnc] Keep in focus
Date: Tue, 26 Feb 2002 02:53:41 +0200
From: Nuutti Kotivuori <naked@iki.fi>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!nerim.net!news.stealth.net!news.cc.tut.fi!uutiset.saunalahti.fi!localhost
Newsgroups: news.software.nntp
Organization: SAUNALAHDEN asiakas
Lines: 115
NNTP-Posting-Host: cs183115.pp.htv.fi
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: tron.sci.fi 1014684810 24063 213.243.183.115 (26 Feb 2002 00:53:30 GMT)
X-Complaints-To: newsmaster@saunalahti.fi
NNTP-Posting-Date: 26 Feb 2002 00:53:30 GMT
User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Common Lisp, i386-debian-linux)
Cancel-Lock: sha1:Axo98F3GMn4w4yEuzp+roldQSHA=