🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53633

Re: yEncode: A quick and dirty 8 bit encoding method

#53633
From: The Archiver
Date: Fri, 03 Aug 2001 07:36
98 lines
4584 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:

>> I would be happy to remove TABs.
>> But I've already seen one server which does not accept 
>> 8-bit-lines with a DOT in the first column with 127 chars behind 
>> it. So it will be necessary to include the removal of the TAB 
>> into a comprehensive test.
>
>Not a problem for testing, but it'd normally just be extra escaping to
>no purpose.

Extra escaping should be really avoided.

>> The rotation of the character table by 42 is used _before_ the
>> encoding is done. So NULL chars from the binary are convert to
>> '*' before encoding - and stay just one byte.
>> (This is exactly why I did introduce my own proposal).
>
>That doesn't really change things -- whatever you escape can appear
>frequently in the content and then you have a problem because of the
>doubling necessary for straight escaping.

Yes, the theory says that.
But because a general approach would add a lot of complexity
I tend to use simple solutions. 

I'm not sure if the tendency of the last few years - trying to find very
general approaches - is a good one. 

>> This allows easily to add more characters which must be escaped.
>> The decoder will always fetch the second character, subtract 64
>> (and then 42 ) and then write the result to the output stream.
>
>Yeah, it allows you to escape anything, but it doesn't lend itself to
>compression.  What I described above is a simple Run Length Encoding
>compression and although it doesn't save a lot of space, it should save
>enough that the rotating is unnecessary.

I would really love to implement also compression.
But if I'd really do this, then I would prefer to use a 'good' compressor,
not just RLE encoding.

Perhaps I misunderstand you in this case - but actually I've got a 
problem with mixing up the different things.

My primary target (which is not reachable) would be to introduce
real 8 bit transfer. Then the best compressors could be used.

As an 'intermediate' solution (and reachable target) a better 
- and simple - encoding should be used. 

Between both targets there is a huge range of options.
And now I'm completely unsure what way should be gone
for Usenet.

>With the escape and RLE method that I described, =y can happen when you
>have 57 characters in a row with the same value -- i.e. =y=1 would be a
>block of 57 nulls.

I understand now that this would be a requirement for RLE. Thanks.

>> I had already problems with 128 long lines which had a '.' in the
>> first column. I dont know why that server messed it up, but it did.
>
>This isn't a matter of sever trouble -- the spec says you don't do
>that.  This would simply avoid you have to check for it -- if it's
>there, there is a standard way of escaping it -- double the period, the
>receiving program should automatically be turning double periods at the
>beginning of a line into a single period.

Yes, doubling the dot only if it is in the first column is the easier way
than to escape it generally. Thanks.

>> I'm not sure how the different news-reader and other tools will
>> handle such parts - and how to use filenames with it.....
>
>Most of them should handle it just fine, saving to an encoded file on
>disk.

Sounds good - and easy.

>> But this should be really discussed in a MIME group.
>> Any recommendations for a group ?
>
>comp.mail.mime would be my first choice.

Sigh - I did avoid to touch mail as long as possible.
More lessons to learn....


Thanks for taking the time to scan my proposal so extensively.
This did help me a lot.

-- 
Juergen, [The Archiver]


Technical Details
Message-ID: <34369.381202@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!newsfeed.google.com!newsfeed.stanford.edu!headwall.stanford.edu!news-out.nibble.net!hub1.nntpserver.com!cyclone-sjo1.usenetserver.com!usenetserver.com!news.alt.net!archiver.winews.net!not-for-mail
References: <3b67be46.14498597@127.0.0.1> <310720011406256023%planb@newsreaders.com> <21579.181203@archiver.winews.net> <010820011326177216%planb@newsreaders.com>

Show Full Headers
Complete Article Headers
Message-ID: <34369.381202@archiver.winews.net>
Subject: Re: yEncode: A quick and dirty 8 bit encoding method
Date: Fri, 03 Aug 2001 07:36:34 +0000
From: archiver@i3w.com (The Archiver)
References: <3b67be46.14498597@127.0.0.1> <310720011406256023%planb@newsreaders.com> <21579.181203@archiver.winews.net> <010820011326177216%planb@newsreaders.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!newsfeed.google.com!newsfeed.stanford.edu!headwall.stanford.edu!news-out.nibble.net!hub1.nntpserver.com!cyclone-sjo1.usenetserver.com!usenetserver.com!news.alt.net!archiver.winews.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 97
X-Newsreader: MyNews