Article View: news.software.nntp
Article #56534Re: [yEnc] some newbie questions
From: Liyang Hu
Date: Sat, 16 Feb 2002 01:20
Date: Sat, 16 Feb 2002 01:20
74 lines
3906 bytes
3906 bytes
=-lordsnow-= <lordsnow@home.nl> wrote: > Let me start by apologising beforehand if they were already > answered, I came to this discussion late. I don't think there was any serious discussion of late ... none that I can see anyway. > I have read the yEnc draft at www.yenc.org and am left with the > following questions/comments: >> 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. I don't think the draft was very well thought through. 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. Adding 42 just shifts the skew elsewhere. >> so the entire character table is rotated by 42: > Why 42? Must have been a fan of ``The Hitchiker's Guide to the Galaxy''. Not the best of reasons ... >> If one of the critical chars encounters then write '=' as escape >> character to the output stream followed by the critical+64. > Again.. why 64 instead of some other value? No idea. To map Ctrl-letter to `letter'? Again, this choice seems rather arbitrary. >> It is difficlut to calculate the number of lines for a message >> [so] the "Lines:" header for yEncoded messages is still >> calculated as if UUencode would be used ... the number of lines >> is still calculated as: "binary size / 45". > If you're using 255 byte lenght lines, then wouldn't it simply be > "binary size / 255" + a few preface text lines and management > lines? 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. Basically, taking the worst case scenario, there's an uncertainty of 100% in the number of lines in the output article. On a further point, limiting the length of the lines just to accommodate Pascal seems like another rather silly thing to do. That's a limitation of Pascal, why should everyone else be forced to live with it? > And finally, is there a web-based Forum anywhere for yEnc? Not yet, but I've applied for a SourceForge account for yydecode, maybe we can use that. (Not that I would condone[0] such a thing. WWW is not meant for discussions, Usenet is for discussions.) mata ne, /Liyang [0] Note the fallacy in my reasoning here ... Usenet wasn't exactly meant for transporting binaries either. -- .--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--. | It's important for us to explain to our nation that life is important. | | It's not only life of babies, but it's life of children living in, you | | know, the dark dungeons of the Internet. -- George `Dubya', 2000-10-24 |
Technical Details
Message-ID:
<a4kc41$ou1$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!canoe.uoregon.edu!arclight.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!fu-berlin.de!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mailReferences:
<3c6e6798.9093644@news>Show Full Headers
Complete Article Headers
Message-ID: <a4kc41$ou1$2@pegasus.csx.cam.ac.uk>
Subject: Re: [yEnc] some newbie questions
Date: Sat, 16 Feb 2002 01:20:01 +0000
From: Liyang Hu <newsgroups@nerv.cx>
References: <3c6e6798.9093644@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!canoe.uoregon.edu!arclight.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!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: 73
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))