Article View: news.software.nntp
Article #62742Re: yEnc decoding implementation
From: Russ Allbery
Date: Sat, 04 Jan 2003 01:21
Date: Sat, 04 Jan 2003 01:21
228 lines
13068 bytes
13068 bytes
Juergen Helbing <archiver@i3w.com> writes:
> it is really hard to read such rants from you.
> I understand a lot of criticism - but yours is yours is bitter.
Well, if it helps any, I'm not particularly bitter about yEnc, and
certainly not bitter towards you personally. I really don't have anything
personally invested in the binary Usenet.
This is the way that I look at it: when discussing protocols here, people
are looking for peer review. Peer review in the Internet community varies
a lot, and some people are better at doing it diplomatically than others.
I'm not particularly diplomatic; you posted something, and I looked at it
and went "ew." But I'm not horrible, either; I'm not Al Viro. :)
Now, the discussion about yEnc tends to start with some sort of very
confrontational presentation, either someone talking about how ugly it is,
or someone who is using it to post binaries coming here and laying into
people for not liking it. Personal insults tend to get thrown around left
and right, and it's hard to have any sort of considered discussion.
What makes this more difficult is that, at least to me, didn't actually
seem all that interested in the results of the peer review. I believe
that you read most or all of them, and you seem to have taken some of them
fairly personally, but they didn't seem to result in much in the way of
changes to the published specification. That adds the frustration of a
feeling of futility to the mix.
That's why, I think, that there's so much emotion flowing around.
I encourage you to not take protocol criticism personally. It's not about
you; it's about a design and a chunk of code. Someone is likely to have a
negative reaction to it, and in the end there are going to be design
tradeoffs in almost anything that are ugly.
There's a bunch of really ugly code in INN, including code I wrote. I
could level considerably harsher commentary at some of that than I'm
levelling at yEnc. I would expect it to get savaged in peer review,
particularly by people with exceptionally good taste (since people with
exceptionally good taste also often tend to be pretty blunt about things
they don't like). I just try to learn from that for the next time, or try
to figure out how to improve the code to make it less hideous.
In other words, none of this is at all personal for me. The emotional
content of the discussions just makes it harder to make that clear.
> An experienced Usenet Elder as you should know exactly that yEnc had
> _never_ the purpose to re-invent MIME.
I understand that this wasn't your intention. Because I can point at a
list of features that are duplicated in yEnc from MIME, I describe
portions of yEnc as reinventing MIME. I just use that as what I think is
accurate terminology for what I see.
Again, this isn't a statement about intention. One of the more common
things to hear in a protocol review is "hey, you're just reinventing X,
why not use it instead?" Frequently the author of the original draft was
unaware of X, didn't know what X could do, or just never looked at what he
or she was working on from the right angle to see the similarity to X.
Now, there *are* places where I think you chose not to listen to messages
posted here about how you were duplicating other work, but I understand
that too. What you were doing accomplishes the goals that you had, and
you were probably personally comfortable with uuencode. yEnc is basically
a better uuencode, and it fits that niche reasonably well. (And I don't
think poorly of the designers of the uuencode protocol; I just think that
we've learned since about a lot of problems with the way it was designed.)
The fact that it works doesn't mean that it works as well as it could, and
won't in and of itself change the opinions other people have about it. In
particular, yEnc behaves very poorly when taken outside of the pure file
sharing context where people want mixed content, structured messages, and
reliable parsing when all messages can't be assumed to either be simple
text messages or binaries. It also has some obvious deficiencies in the
areas of internationalization and content type tagging, not because you
designed those in intentionally, but because you based your design on
uuencode and MIME is light years ahead of uuencode in those areas.
> I never made the _mistake_ to create any Message-Headers especially for
> yEnc - because I always knew that this would not be the job for an
> encoding.
But, see, you put metadata in the body. That's actually *worse* than
putting it in headers when it comes to trying to adapt something to serve
as a MIME encoding. This was a point that I was trying to make before,
but I'm not sure that I ever made it clearly.
It would have been much *better* to have that data in the headers, because
that's what the headers are for. Putting metadata in the body immediately
makes that metadata much less accessible and harder to deal with, even the
way that MIME does it in multiparts with explicit structure so that you
can find the metadata accurately and without guesswork.
> yEnc CAN be used on Usenet. It CAN be also used in other environments
> BECAUSE it does not have any additional headers with important
> information.
What other environments is yEnc being used in? Both e-mail and HTTP use
MIME (although I have no idea why you would use yEnc for HTTP since HTTP
is binary-clean), so this isn't a feature for either of them. I don't
understand what problem you're trying to solve here.
> It CAN be even used if all headers are stripped (what a mess for MIME
> :-) - which often happens during the transitional phase...
No, it can't. If you strip the =ybegin line off of the yEnc message, it's
precisely as usable as raw base64-encoded data.
Those *are* headers. yEnc just puts them in the body of the message from
the NNTP perspective, but they are yEnc headers in every way that matters,
just like the begin line is a uuencode header.
If you strip the metadata off of an encoding that needs metadata, you have
a mess. Yes. That's trivially true. So don't do that. It's not like
the message headers are hard to retain; clearly, the =ybegin line can be
retained.
> I tried to embed yEnc into MIME (and I failed). Jeremy tried it (and
> failed)
Why do you think Jeremy failed?
What happened from my perspective is that you seemed uninterested in
hearing discussions of how yEnc should have used MIME without a concrete
proposal, Jeremey wrote a concrete proposal, and you didn't respond to
it. I don't know if you read it, or what you thought about it.
I don't understand what criteria you're using for failure or success.
> You are wise enough not to try it at all. But you are writing rants
> about the fact that it is not embedded.....
Because I believe that's the right thing to do.
There are three basic levels of interest that someone can have in a
protocol, simplifying somewhat: they can not care at all and ignore it,
they can be interested in it enough to discuss it and analyze it, and they
can be willing to write new protocol documents. You seem to be implying
that the second level of interest shouldn't exist, that unless someone is
willing to implement, they have no business even talking about it. This
seems to me to be contrary to what news.software.nntp is for, and
certainly isn't a description of how peer review normally works.
Besides, Jeremy *did* write a new protocol document, albeit not a fully
formal one (but the existing yEnc protocol isn't fully formal either).
> If you are adding all the time you've meanwhile spent for writing
> comments, complaints and rants then you could have easily done the
> job.
Well, no, I couldn't have. I've spent perhaps eight hours total writing
about yEnc. Writing a full-fledged protocol description would certainly
take me longer than that, and then it would have to be defended,
discussed, revised, and updated. It would require at least an order of
magnitude of time more than I've put into discussing yEnc on this
newsgroup.
Since I don't use the binary Usenet at all, and since the applications
it's currently being used for are not ones that I find interesting, it's
very hard for me to justify that amount of investment of time and effort
into the project. This is particularly true given that you didn't seem at
all interested in Jeremy's work, and since you also seem (and I'm not sure
about this; this is just my impression) to want me to implement the
protocol as well as just describe it.
With a well-done integration with MIME (embedding is the wrong concept,
but more on that in a moment), yEnc could still be bolted on the side of a
news reader, but could be more easily done as an integral component, so
doing an elegant implementation of a yEnc MIME CTE would be a project more
individual to a particular news client. And the one that I personally use
I'm not well-qualified to do that sort of work on, since I'm not a
particularly good Lisp programmer.
> And believe me: I'm still waiting for someone who is competent enough to
> do it.
So, what was your reaction to Jeremy's proposal?
> So either you - or other competent people - declare MIME as important
> for Binary Usenet and ENFORCE its use by creating the necessary _proper_
> multipart embedding for _UUenc_and_yEnc_ in the next time.
I don't understand. Unfortunately, I seem to frequently hit roadblocks in
trying to understand your messages -- I'm just not sure what you're
getting at. (Maybe a language barrier in part?)
How is anyone here going to enforce use of MIME for binaries on Usenet?
Why do you expect anyone to do any additional work on uuencode? How is
that part of what you want out of Usenet?
> Or MIME will be declared to be as DEAD as Outlook for Binary Usenet.
The world just doesn't seem anywhere near as black and white as this to
me. I don't understand why it would look this way to you.
Jeremy already wrote a description of how to use yEnc as part of MIME.
While walking into work today, I worked out what I think would work as a
transition plan from where you are right now to yEnc as a CTE and as a new
Content-Type for multipart binaries. Past experience indicates to me that
you're not really particularly interested, but if you actually are, and
are willing to discuss it, I can write it up and post it here. Are you?
I'm not going to implement Windows software at all (I don't own a machine
on which I could), I'm not going to campaign for some sort of transit
filtering to force a particular encoding, and I'm pretty unlikely to do
much in the way of software implementation of yEnc or anything related to
it, since that would take more time than I can justify spending on
something that doesn't really interest me personally. I get the
impression that this disqualifies me from having an opinion, and I'm not
really interested in writing up thoughts on the topic if the only reaction
is just going to be "ok, now go implement it"; that's just a waste of
everyone's time. You're considerably better at reaching users of the
binary groups than I am and getting them to adopt new software, perhaps
because you actually use them and I don't. Unless you or someone like you
takes a proposal forward, it's not going to happen, no matter how much of
an improvement it might be for client authors.
However, since I've criticized what you've done, I can certainly spell out
part of how I'd improve on it if you're interested in considering that for
a new version.
--
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:
<ylof6xyaj0.fsf@windlord.stanford.edu>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!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<PM0003B2ED450C7E1E@minion.nashville.comcast.net> <20021229082401.490$G0@newsreader.com> <yladioi1w1.fsf@windlord.stanford.edu> <5727b.31320d@archiver.winews.net>Show Full Headers
Complete Article Headers
Message-ID: <ylof6xyaj0.fsf@windlord.stanford.edu> Subject: Re: yEnc decoding implementation Date: Fri, 03 Jan 2003 17:21:55 -0800 From: Russ Allbery <rra@stanford.edu> References: <PM0003B2ED450C7E1E@minion.nashville.comcast.net> <20021229082401.490$G0@newsreader.com> <yladioi1w1.fsf@windlord.stanford.edu> <5727b.31320d@archiver.winews.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 227 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1041643315 1890 171.64.13.23 (4 Jan 2003 01:21:55 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter, sparc-sun-solaris2.6) Cancel-Lock: sha1:n376PPimcVGpFmVrYtgI5Ie5Lo8=