🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Pope-X Sun, 25 Nov 2001 20:33
New idea for yENC
#55365
Author: Pope-X
Date: Sun, 25 Nov 2001 20:33
21 lines
1098 bytes
what if u count every byte in the file
for example

a file of 15mb has

8834  #0 chars
928   #1 chars
28838 #2 chars

etc 

and then making a translation table translating a #0 to #24 (or 
something).. etc.. so only the least used chars will endup using the 
escape char  making the transfer coding more efficient then it 
already is..

Just spitting idea's..

Regards,
Remco Sonnema
Re: New idea for yENC
#55357
Author: J.B. Moreno
Date: Sun, 25 Nov 2001 23:21
28 lines
1757 bytes
In article <Xns9164DB5F524E5dbgddsnl@194.109.133.13>, 
 Pope-X <dbg@dds.nl> wrote:

> what if u count every byte in the file
> for example
> 
> a file of 15mb has
> 
> 8834  #0 chars
> 928   #1 chars
> 28838 #2 chars
> 
> etc 
> 
> and then making a translation table translating a #0 to #24 (or 
> something).. etc.. so only the least used chars will endup using the 
> escape char  making the transfer coding more efficient then it 
> already is..

The byte values are rotated in order to prevent nuls from being
escaped, doing anything more (other than a RLE) is almost certainly
going to be more trouble than it's worth -- it makes it harder to
encode and decode, and in most cases won't bring any substantial
improvement.

-- 
J.B Moreno
Re: New idea for yENC
#55358
Author: The Archiver
Date: Mon, 26 Nov 2001 08:44
29 lines
1919 bytes
"Pope-X" <dbg@dds.nl> wrote:

>what if u count every byte in the file
>[...]
>and then making a translation table translating a #0 to #24 (or 
>something).. etc.. so only the least used chars will endup using the 
>escape char  making the transfer coding more efficient then it 
>already is..
>Just spitting idea's..

Thanks for thinking about future expansion.
'Integrated compression' is a common feature request to a new encoding.
We did not implement any compression yet to make the first step
as simple as possible. 

The topic is still on the list. And the basic consense is to 
implement a 'powerful compression' ( as bzip...).

But we need a good (and public domain) source code - and people who
are ready to support yEnc 'v2'.
 
Actually there is not even consense about yEnc v1, so the topic 
has low priority. And for those who want to embed yEnc into MIME 
compression is even a nightmare ;-)

-- 
The Archiver

Re: New idea for yENC
#55371
Author: Pope-X
Date: Mon, 26 Nov 2001 23:34
13 lines
1224 bytes
archiver@i3w.com (The Archiver) wrote in news:07449.qb1201
@archiver.winews.net:

i'm not talking about compression..

i'm talking about finding the char least used and making that one the  
one needing the escape char..
and making a dynamic translationtable..

doing compression on already compressed files is futile:))


Re: New idea for yENC
#55366
Author: Kjetil Torgrim Homme
Date: Tue, 27 Nov 2001 00:14
18 lines
1736 bytes
[The Archiver]

>   'Integrated compression' is a common feature request to a new encoding.
>   We did not implement any compression yet to make the first step
>   as simple as possible. 
>   
>   The topic is still on the list. And the basic consense is to 
>   implement a 'powerful compression' ( as bzip...).

I think adding compression to yEnc is a waste of time, and may
actually worsen results.  Just about every binary file posted is
already compressed (MP3, VCD, ZIP, JPG) and could well expand in size
after processing in another compression algorithm.

-- 
Kjetil T.		abusing standards for the greater good
			http://www.microsoft.com:products@3333866552/
Re: New idea for yENC
#55369
Author: JanC
Date: Tue, 27 Nov 2001 05:04
31 lines
1986 bytes
in <news:Xns91665D846D9Cdbgddsnl@194.109.133.13>, Pope-X wrote:

> archiver@i3w.com (The Archiver) wrote in news:07449.qb1201
> @archiver.winews.net:
> 
> i'm not talking about compression..
> 
> i'm talking about finding the char least used and making that one
> the  one needing the escape char..
> and making a dynamic translationtable..

Sounds like a good idea to me...

Now rotation is fixed at +42, but if a file contains a lot of bytes 
with value 214, you'd end up with *much* more overhead than UU or 
BASE64.

The only contra is that it would make the encoding much slower...


> doing compression on already compressed files is futile:))

Right!  And you won't have to change the specs everytime a better 
compression algorithm is invented...  ;-)

-- 
JanC

"Behold, I send thee forth as newbies in the midst of wolves,
so RTFM! (read the fine manual)"  --Xnews manual
Re: New idea for yENC
#55370
Author: The Archiver
Date: Tue, 27 Nov 2001 08:36
38 lines
2259 bytes
"Pope-X" <dbg@dds.nl> wrote:


>i'm not talking about compression..

You are right - this more kinda 'optimation'.
But using static or dynamic translation tables,
RLE or vocabularies is all related to to the same topic (for me).

>i'm talking about finding the char least used and making that one the  
>one needing the escape char..
>and making a dynamic translationtable..

We are actually having an overhead of ~ 2% with the four escaped
codes. Plus 1% for the CRLF line breaks.

yEnc delivers 20-30% reduction of overhead right now.
Implementing a 'complex optimation' - which type ever -
should also have a _significant_ benefit.

I personally dont believe that 1-2% savings are worth the effort
for such small savings. 

>doing compression on already compressed files is futile:))

Agreed. And there is nearly no chance to get better results.

Adding 'true' compression is only relevant for the low or not
compressed formats. But as I'm already receiving a lot of 
'Word-DOCs' and other uncompressed files by eMail today
and MIME will also grow on the Usenet it might be only a 
question of time when a true compression gets higher priority.


-- 
Juergen, [The Archiver]

Re: New idea for yENC
#55372
Author: The Archiver
Date: Tue, 27 Nov 2001 08:43
27 lines
1999 bytes
JanC <janc_removethis@digibel.org> wrote:

>Now rotation is fixed at +42, but if a file contains a lot of bytes 
>with value 214, you'd end up with *much* more overhead than UU or 
>BASE64.

I'm sure you know that '42' is the final answer to all problems ;-)
I did a check of a few fileformats to find out which bytecodes 
are often used. And '214' is not among them.

Of course it is possible to create such files - and proof the weakness
of yEnc this way. 

>> doing compression on already compressed files is futile:))
>
>Right!  And you won't have to change the specs everytime a better 
>compression algorithm is invented...  ;-)

As such changes are always difficult and take a lot of time
it might be better to leave compression on Layer-8 (the user ;-)

But we will gain experience with yEnc in the next time.
Nobody knows today what the results will be.

-- 
Juergen, [The Archiver]
Re: New idea for yENC
#55373
Author: The Archiver
Date: Tue, 27 Nov 2001 08:47
28 lines
2006 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:

>>   The topic is still on the list. And the basic consense is to 
>>   implement a 'powerful compression' ( as bzip...).
>
>I think adding compression to yEnc is a waste of time, and may
>actually worsen results.  

Of course every good compressor detects that it should
_not_ try to compress the data at all.

>Just about every binary file posted is
>already compressed (MP3, VCD, ZIP, JPG) and could well expand in size
>after processing in another compression algorithm.

The very popular (and high volume) MPEG and AVI files can be 
compressed with up to 10-40%. Today people are using RAR
to ensure correctness, completeness and also have compression.

I've already seen the first wishes to replace RAR completely
(to have less steps when receiving such binaries).
So compression seems to be necessary - and is still on the list.

-- 
Juergen, [The Archiver]


Re: New idea for yENC
#55378
Author: JanC
Date: Tue, 27 Nov 2001 18:00
13 lines
1454 bytes
in <news:11479.rb1202@archiver.winews.net>, The Archiver wrote:

> I've already seen the first wishes to replace RAR completely
> (to have less steps when receiving such binaries).

There will always be lazy people...

-- 
JanC

"Behold, I send thee forth as newbies in the midst of wolves,
so RTFM! (read the fine manual)"  --Xnews manual
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads