🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56544

Re: [yEnc] some newbie questions

#56544
From: The Archiver
Date: Sat, 16 Feb 2002 07:50
90 lines
4577 bytes
lordsnow@home.nl (=-lordsnow-=) wrote:

>> A lot of binaries are using a lot of NULL characters
>Is this true? Much more so than other byte values?

The topic was discussed here last summer (2001).
When we were talking generally about 8-bit-encodings
we wanted to know how often NULL aand CRLF appear
on 'commonly posted format' - because these chars
_must_ be encoded (which increases the overhead).

I did download a bunch of MPG, AVI, JPG and created
a few ZIPs. Then I made a character analysis on them.
The results were posted here.
It was interesting (also for me) to see that NULL had a 
probabilty of >2% (I dont remember the exact number 
right now). And also some other chars (0xE0, 0xFE, 0xC0
0xFF) had a significant higher value than the expected 
0.3%.

Of course the sentence "a LOT of NULL characters"
does not mean 10% - but 4-10 times more than other
characters.

>>  so the entire character table is rotated by 42:
>Why 42?

If you look at the 'peaks' of the character distribution
then you want to use a different encoding (character table).
Adding a constant offset would be easy to implement.
And '42' is one of the possible value which avoids that
the found 'peak-characters' are encoded with double bytes.

Of course other values would have been also possible.
But '42' is the general answer to all problems - also to this one.

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

A lot of programmers ((and specs) are using CTRL+A  or 
CTRL+M CTRL+J as a name for the control characters 0-31. 

So if you add 64 then =A is the former 0x01.

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

This sentence is complete nonsense in the yEnc-Draft.
I did assume that some news-servers would use the Lines: header
from the message. Then the overview on the newsreader would have
shown the same amount of lines as for UUencode. This would have
shown the neticens that a 5000 lines yEncoded post contains the same
amount of data as a yEncoded post. 

I did not realise that most news-servers are calculating the LINES header
based on the data they receive.

The yEnc-draft (and the posting tools) does not offer "transitional" information 
to the users what size they should use. Today a 5000 lines yEnc post
contains more bytes than a 10.000 UUencoded message.

This is a big mistake which will be corrected in the final yEnc spec.

>Roughly, of course... it'll depend on how many more bytes overhead
>get created yEncoding, but it'll only be off 1-2%.

The discussion about line lengths is not yet finished.
We had proposals of 64 bytes/line (similar to UUencode),
my own 128 bytes/line (to stay below 132), 
250-254 for Pascal,
999 for smallest overhead - but still surely acceptable for all news-servers.

>And finally, is there a web-based Forum anywhere for yEnc?

No - I did create a mailing list for yEnc. 
But I was not yet able to run it properly. 
My tiny site is overloaded and I still have to make some
changes to manage the flood of downloads and eMail.

-- 
Juergen, [The Archiver]
-----------------------------------------
www.yenc.org

Technical Details
Message-ID: <32508.g22200@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!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!hub1.nntpserver.com!news-xfer.siscom.net!not-for-mail
References: <3c6e6798.9093644@news>

Show Full Headers
Complete Article Headers
Message-ID: <32508.g22200@archiver.winews.net>
Subject: Re: [yEnc] some newbie questions
Date: Sat, 16 Feb 2002 07:50:32 +0000
From: archiver@i3w.com (The Archiver)
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!headwall.stanford.edu!hub1.nntpserver.com!news-xfer.siscom.net!not-for-mail
Newsgroups: news.software.nntp
X-Newsreader: MyNews
Lines: 89
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
NNTP-Posting-Date: 16 Feb 2002 09:28:06 GMT
NNTP-Posting-Host: 72008633.news.newshosting.com
X-Trace: DXC=mb1c=[iDBEY2P:V_9nl1\XX`1N4>^k1LSiF6BbIV4YYRLnHEXCOOR@_>[WUBHLD:gP3nWncBSY5k[DVD;P6?`fSWn[TfZ3E?6MY
X-Complaints-To: abuse@newshosting.com