🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56764

Re: [yEnc] some newbie questions

#56764
From: Liyang Hu
Date: Thu, 21 Feb 2002 23:51
37 lines
2415 bytes
Curt Welch <curt@kcwc.com> wrote:
> usenet@janc.cjb.net wrote:
>> A sort of BASE-224 encoding for Usenet already exists:
>> <http://b-news.sf.net/>
> Base 251 encoding would be a lot of math overhead

Computers are a lot of maths (and logic). It's about time some
programmers realised this.

> and produce almost exactly the same expansion as the escape
> expansion already defined for yEnc.

No.

> For each 256 random characters now, yenc would need to expand about 5
> characters in that set to twice their size, giving you a 256 to 261
> expansion.

> Base 251 encodng would turn 256 characters into 256 * 256 / 251 or 261.09
> characters giving you a 256 to 261.09 expansion.

No, you're not doing your maths correctly:

Each Base-251 digit[1] gives you (log to base 2[0])
    log_2(251) == 7.972 bits.
256 bytes comes out as 256.91 digits.

(Note that I'm proposing base-224.)

/Liyang
[0] That'll be log(n)/log(2), if you're trying to use your calculator.
[1] Each digit fits in a byte, of course.
-- 
.--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--.
| drug, n: A substance that, when injected into a rat,                   |
|          produces a scientific paper.                                  |
Technical Details
Message-ID: <a5415o$7i4$8@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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.gamma.ru!Gamma.RU!peer.news.eu-x.com!server2.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail
References: <3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <yleljh722r.fsf@windlord.stanford.edu> <04477.k22202@archiver.winews.net> <a500oj$736$1@pegasus.csx.cam.ac.uk> <Xns91BC3666AD674JanC@213.119.4.20> <20020221164013.542$dP@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <a5415o$7i4$8@pegasus.csx.cam.ac.uk>
Subject: Re: [yEnc] some newbie questions
Date: Thu, 21 Feb 2002 23:51:20 +0000
From: Liyang Hu <newsgroups@nerv.cx>
References: <3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <yleljh722r.fsf@windlord.stanford.edu> <04477.k22202@archiver.winews.net> <a500oj$736$1@pegasus.csx.cam.ac.uk> <Xns91BC3666AD674JanC@213.119.4.20> <20020221164013.542$dP@newsreader.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!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.gamma.ru!Gamma.RU!peer.news.eu-x.com!server2.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail
Newsgroups: news.software.nntp
Organization: University of Cambridge, England
Lines: 36
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))