Article View: news.software.nntp
Article #56538Re: [yEnc] some newbie questions
From: Liyang Hu
Date: Sat, 16 Feb 2002 04:36
Date: Sat, 16 Feb 2002 04:36
72 lines
3811 bytes
3811 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > [Liyang Hu] >> >> A lot of binaries are using a lot of NULL characters >> > Is this true? Much more so than other byte values? >> This is a total misconception. > Really? There are two cases: If the data is compressed, the > distribution is pretty uniform, and ROT42 doesn't make any > difference. Which is what I was hinting at. > If the data isn't compressed, there will typically be a lot of NUL > bytes (think BMP and WAV). I think you'll find the majority of binaries on usenet consist of various [MJ]PEG files, and ZIP/RAR/ACE and whatnot. > Since yEnc has to escape NUL, CR and LF (and only these octets), > it is very important to make sure that these byte values appear > seldom. Without using arithmetic coding, isn't a uniform distribution the best we can hope to get? (and just cope with having to escape the three special cases?) >> There are much better ways of removing skew from the symbol >> distribution -- eg. XORing the data bytes with a pseudo-random >> sequence, or better, compress it. > Then it wouldn't be a quick hack to implement it, would it? I think you're talking about the Quick Hack way, while I'm talking about the elegant way. Some times (surprisingly), they're not mutually compatible. A PRNG would have taken a few minutes to implement, and a low- compression pass through zlib not much more work. This would hardly have had any noticeable impact on performance. I'm simply commenting on the lack of insight concerning the design of the encoding ... >> Adding 42 just shifts the skew elsewhere. > Exactly. I'm confused. Which points are you agreeing with me on, and which ones not? Am I feeling paranoid? Is this something to do with my lack of sleep? O_o >> Must have been a fan of ``The Hitchiker's Guide to the Galaxy''. >> Not the best of reasons ... > It's a bit arbitrary, but not entirely. Why don't you look up the > discussion? Are you referring to the end of <3b66baf9.13653632@127.0.0.1> ? I don't get it ... Then again, I only found out about yEnc after my binaries grabber couldn't decode a couple of articles, about a month ago. (And I never looked into it much until the day before yesterday.) Would have been handy if it was linked to from http://www.yenc.org/ ... would someone care to write up / link to a quick 'n' concise history of its development? (I found a few threads on Google groups, but I'm sure that's not all of it ...) oyasumi, /Liyang -- .--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--. | ``Computer games don't affect kids, I mean if Pac Man affected us as | | kids, we'd all be running around in darkened rooms, munching pills and | | listening to repetitive music.'' |
Technical Details
Message-ID:
<a4knl3$3ol$1@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!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mailReferences:
<3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <1rr8nmjix6.fsf@fjorir.ifi.uio.no>Show Full Headers
Complete Article Headers
Message-ID: <a4knl3$3ol$1@pegasus.csx.cam.ac.uk>
Subject: Re: [yEnc] some newbie questions
Date: Sat, 16 Feb 2002 04:36:51 +0000
From: Liyang Hu <newsgroups@nerv.cx>
References: <3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <1rr8nmjix6.fsf@fjorir.ifi.uio.no>
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!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail
Newsgroups: news.software.nntp
Organization: University of Cambridge, England
Lines: 71
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))