🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56593

Re: [yEnc] some newbie questions

#56593
From: Liyang Hu
Date: Mon, 18 Feb 2002 01:17
39 lines
2862 bytes
=-lordsnow-= <lordsnow@home.nl> wrote:
> On 16 Feb 2002 01:20:01 GMT, Liyang Hu <newsgroups@nerv.cx> wrote:
>> >> A lot of binaries are using a lot of NULL characters
>> > Is this true? Much more so than other byte values?
>> Again, this difficulty arises from the fact that the symbol
>> distribution is skewed in some way: say you had a binary that
>> consisted solely of the character 214 (==-42 modulo 256). Then every
>> byte would have to be escaped as `=@', doubling the size of the
>> output, compared to say if it was 213 instead. Indeed, this is
>> significantly worse than either UUencode or Base64.
> The two problems above may be soved by using the following
> compression scheme (example taken from the BinHex RFC):

>      2) Compression of repetitive characters.

>   ($90 is the marker, encoding is made for 3->255 characters)

>   00 11 22 33 44 55 66 77   -> 00 11 22 33 44 55 66 77
>   11 22 22 22 22 22 22 33   -> 11 22 90 06 33
>   11 22 90 33 44            -> 11 22 90 00 33 44

Nooo! You've just described RLE (run-length encoding). It's not even
something worth mentioning in a CS textbook ...

If you must use compression, zlib has been around for years, is
/very/ easy to use, and it's free, in the sense that even commercial
programs may use it.

Personally, I think it should be up to the user to compress their
own data. Remember, this is an encoding format, not another
compressed file format. Keep it simple.

/Liyang
-- 
.--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--.
| "Up your butt with a coconut!"                                         |
| "You've got facial hair like a polar bear!"                            |
|   -- Daphne and Celeste: "Ooh Stick You"                               |
Technical Details
Message-ID: <a4pknt$4pg$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!headwall.stanford.edu!hub1.nntpserver.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail
References: <3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <3c702e8c.7007252@news>

Show Full Headers
Complete Article Headers
Message-ID: <a4pknt$4pg$2@pegasus.csx.cam.ac.uk>
Subject: Re: [yEnc] some newbie questions
Date: Mon, 18 Feb 2002 01:17:49 +0000
From: Liyang Hu <newsgroups@nerv.cx>
References: <3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <3c702e8c.7007252@news>
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!headwall.stanford.edu!hub1.nntpserver.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail
Newsgroups: news.software.nntp
Organization: University of Cambridge, England
Lines: 38
Sender: Liyang Hu <lh259@portal.acad.cai.cam.ac.uk>
NNTP-Posting-Host: portal.acad.cai.cam.ac.uk
User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.4.17-xfs+lvm10+intl (i686))