🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56628

Re: [yenc] yydecode -- reimplementation of decoder

#56628
From: Neeber
Date: Mon, 18 Feb 2002 17:23
59 lines
3854 bytes
On 18 Feb 2002 11:44:48 GMT, Liyang Hu <newsgroups@nerv.cx> wrote:

>Neeber <a110y2@hotmail.com> wrote:
>> On 18 Feb 2002 00:59:47 GMT, Liyang Hu <newsgroups@nerv.cx> wrote:
>>> Any suggestions as to what the correct behaviour should be?
>> The spec can recommend a minimum behavior (e.g. 'Don't crash on
>> error, just report it in a uniform and predictable way'), at most.
>
>YM ``The spec can demand a minimum behavior, and recommend a `best
>behaviour'.''? (I suggest adopting the vocabulary of RFC 2119.)
>
>As the programs don't /have/ to follow the recommendations, in your
>words, crashing would be acceptable. (Then again, many users of a
>certain popular OS has come to expect this as standard behaviour ...
>^_-)

Ah, true. I've never written an RFC. I'm sure much tighter language
can be used in the final yEnc draft than the loose discussions in this
group. If we truly wanted to be anal about it, we could describe yEnc
behavior in a client/server-style model, with the yEnc-codec as the
'server' reporting classes of errors in a standardized way (i.e.
numeric error codes) and requiring the client application to act on
each error code in a specific way.

But that's just too much rules-lawyering for this mere mortal.

>
>Indeed. ^_- You realise there's a space at the end of every filename
>in your test suite? Should I honour that? (I don't think FAT32 can
>cope, but most UN*X FSs can.)

FAT32 copes just fine with the space at the end, but this would appear
to be a bug with the encoder I used to produce the samples. (aheh...).
I'll make the fixes to the files now.

>
>Just wondering, what are people's opinions on the creed: ``Be strict
>in what you output, but be liberal in what you accept''? (Basically,
>should I be outputing so many warnings / errors?)
>

The user of the application will probably be satisfied to know that
something went awry because the yEnc'd file was corrupt. The specifics
are unimportant (although the user should have access to more detail
if they ask for it), so it probably won't do them all that good to
have their screen fill with warning/error messages on a corrupt
header. The user is in all cases going to hunt down a new, uncorrupted
encode (e.g. 'Please repost this!') no matter what the cause of the
corruption. This is why I like the idea of a logfile to keep track of
every decode-time problem

Alternatively, the application could spit out an invalid output file
and let the user attempt 3rd-party file repair technologies (binary
groups make heavy use of these to conserve bandwidth given to
reposts). Naturally, I don't think this should be default behavior,
but it could work under some circumstances.

Cheers.
Technical Details
Message-ID: <cnc27u84k4kn631k20akmcobu2fbkmcg3m@4ax.com>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.novia.net.MISMATCH!novia!novia!sequencer.newscene.com!not-for-mail
References: <a4i6q4$kr8$1@pegasus.csx.cam.ac.uk> <41299.g22205@archiver.winews.net> <0vct6ugbfkb43j1p6168m37qoml0ahtej9@4ax.com> <a4n4gp$5c6$1@pegasus.csx.cam.ac.uk> <drpv6u0kmvn0fo53r6sj281m2fqct8te97@4ax.com> <a4pjm3$4pg$1@pegasus.csx.cam.ac.uk> <31l17ugmqnq0b8i3scon8hgjrbgavscj7h@4ax.com> <a4qpfg$sol$2@pegasus.csx.cam.ac.uk>

Show Full Headers
Complete Article Headers
Message-ID: <cnc27u84k4kn631k20akmcobu2fbkmcg3m@4ax.com>
Subject: Re: [yenc] yydecode -- reimplementation of decoder
Date: Mon, 18 Feb 2002 17:23:14 +0000
From: Neeber <a110y2@hotmail.com>
References: <a4i6q4$kr8$1@pegasus.csx.cam.ac.uk> <41299.g22205@archiver.winews.net> <0vct6ugbfkb43j1p6168m37qoml0ahtej9@4ax.com> <a4n4gp$5c6$1@pegasus.csx.cam.ac.uk> <drpv6u0kmvn0fo53r6sj281m2fqct8te97@4ax.com> <a4pjm3$4pg$1@pegasus.csx.cam.ac.uk> <31l17ugmqnq0b8i3scon8hgjrbgavscj7h@4ax.com> <a4qpfg$sol$2@pegasus.csx.cam.ac.uk>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.novia.net.MISMATCH!novia!novia!sequencer.newscene.com!not-for-mail
Newsgroups: news.software.nntp
Lines: 58
X-Newsreader: Forte Agent 1.8/32.553 trialware
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit