🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53647

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

#53647
From: J.B. Moreno
Date: Sat, 04 Aug 2001 02:04
111 lines
5357 bytes
In article <34369.381202@archiver.winews.net>, The Archiver
<archiver@i3w.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
> 
-snip-
> >> 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. 

Well, there's always a trade-off no matter what you do.  You simply
have to ask yourself whether the result does what you want at a price
you consider acceptable.

-snip-
> >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.

A better compression algorithm will be more complex than can be easily
handled in an encoding scheme who's main good point is that it allows
the use of all 8 bits in a byte.

> 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.

Sure, but RLE is great for use in combinations with some other process,
it can be layered upon top of the other process, helping when it can
and costing nothing when it can't.

> 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.

Well, you're not going to introduce a great or even an especially good
compression step into Usenet -- not without a whole lot of work.  OTOH,
switching over to QP-lite or whatever is feasible as long as it's kept
fairly simple.

I'm not completely unsure, but I'm not complete sure either -- I still
have some doubts, my two primary "pros" (which may be at odds with one
another) is availability of tools to handle it, and the ability to
easily add it to existing tools or even to do it manually.  My con's
are simply the reverse of the pro's -- complexity and no support.

I think the rotating scheme that Y uses is an added complexity that
precludes using simple text editing tools for decoding so it can't be
done manually, and there's no pre-existing support for it.  The same
thing is of course true (mainly) for the RLE extension that I suggested
as well.

My inclination is that the extra 3-5% saving isn't worth it at this
point, let that come latter (i.e. no rotating, no RLE).

But if you're going to include one or the other (or I guess both), it
should only be after analyzing a lot of posts to see which would
produce better results.

-snip-
> >> 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.

Yep.

> >> 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....

Hopefully you'll be able to get your MIME help without worrying about
the mail portion of it.

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

Glad to hear it.

-- 
J.B. Moreno
Technical Details
Message-ID: <030820012204223693%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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!flame.newsreader.com!planb
References: <3b67be46.14498597@127.0.0.1> <310720011406256023%planb@newsreaders.com> <21579.181203@archiver.winews.net> <010820011326177216%planb@newsreaders.com> <34369.381202@archiver.winews.net>

Show Full Headers
Complete Article Headers
Message-ID: <030820012204223693%planb@newsreaders.com>
Subject: Re: yEncode: A quick and dirty 8 bit encoding method
Date: Fri, 03 Aug 2001 22:04:22 -0400
From: "J.B. Moreno" <planb@newsreaders.com>
References: <3b67be46.14498597@127.0.0.1> <310720011406256023%planb@newsreaders.com> <21579.181203@archiver.winews.net> <010820011326177216%planb@newsreaders.com> <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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!flame.newsreader.com!planb
Newsgroups: news.software.nntp
Organization: bofh wannabe
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 8bit
User-Agent: Thoth/1.2.4 (Carbon/OS X)
X-Trace: flame.newsreader.com d0CNdkDTBPvwpl.3Hr0QQ1DC.YBYEw@w9DGS7P1pe==Ftn+=K
Lines: 110