Article View: news.software.nntp
Article #56939Re: [yEnc] some newbie questions
From: Nuutti Kotivuori
Date: Wed, 27 Feb 2002 07:52
Date: Wed, 27 Feb 2002 07:52
67 lines
4599 bytes
4599 bytes
Curt Welch wrote: > Ok, I've read a few links and understand it now. (Always good to > learn something new) For this application, we would have to actually > do it backwards. To encode the binary file, we would have to to > Aritimetic de-coding. And for decoding the article, we would have > to use Arithmetic coding. Dealing with the last byte or so when > doing the encoding would have to be special cased. Not necessarily - we can also do a few math operations with base224 bytes. But the implementation is irrelevant. > And yes, even though it's a heavy bit-shifting type of encoding, it > would probably be very workable speed-wise. > I think it's questionable whether that would have been the right way > to do it anyway. > > Yes, Arithmetic Coding is optimal, but it makes the algorithm too > complex to expect most newsreader authors to re-implement it > correctly from a spec. So you have to give them the code - which is > fine of course - but then you are going to have performance and > porting issues to face. And the complexity of having to use a magic > "block box" of code is going to turn some people off to the idea. Eh? You read the algorithm and understood it? Would really newsreader authors be unable to do it? Jesus, arithmetic coding is what makes this whole thing easily hand written from pseudocode in 5 minutes. In my opinion, it's handwritten from pseudocode even if it contains an adaptive model. If the encoding contains compression, then it won't be hand written (though it is no black box either considering the availability of the compression algorithm). The thing is, understanding arithmetic coding might not happen in 2 minutes from the newsreader authors. But understanding is not required. A simple pseudocode of "add this to this" is quite enough for writing the algorithm. Though ofcourse this is only my opinion. > And, if you want to give the encoder the option of adding extra > characters to the exclusion set, you have to add more complex > paramaters to the meta data so the encoder can pass that information > along to the decoder. You are correct, adding characters to the exclusion set requires the receiving end to know exactly the same exclusion set. Additional excluded bytes would have to be added to the metadata. However, I do not think that we should even have the possibility of adding more characters to the exclusion set so easily. yEnc is yEnc. It specifies an encoding suitable for usenet. If we need additional excluded characters, we can make yEnc-for-MIME - or something. In my opinion, being flexible is good, but the encoded form produced by an encoder should be exactly equal to the encoded form produced by another encoder. Decoding should be possible without the metadata. All encoded files should behave the same - so no "oh this file can't be transmitted here because it has less excludes that allowed for 0.05 improvement in filesize". We are past proof of concept already - let's just make one version which works. -- Naked
Technical Details
Message-ID:
<87n0xv2wgp.fsf@iki.fi>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!logbridge.uoregon.edu!news.stealth.net!news.cc.tut.fi!uutiset.saunalahti.fi!localhostReferences:
<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> <3C74D21B.F49E2F9F@proxad.net> <210220021418431479%planb@newsreaders.com> <a540dn$7i4$7@pegasus.csx.cam.ac.uk> <210220022120391303%planb@newsreaders.com> <a57u73$86r$2@pegasus.csx.cam.ac.uk> <20020223135211.154$cg@newsreader.com> <a59hgh$pk0$2@pegasus.csx.cam.ac.uk> <20020226190106.351$w9@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <87n0xv2wgp.fsf@iki.fi> Subject: Re: [yEnc] some newbie questions Date: Wed, 27 Feb 2002 09:52:06 +0200 From: Nuutti Kotivuori <naked@iki.fi> References: <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> <3C74D21B.F49E2F9F@proxad.net> <210220021418431479%planb@newsreaders.com> <a540dn$7i4$7@pegasus.csx.cam.ac.uk> <210220022120391303%planb@newsreaders.com> <a57u73$86r$2@pegasus.csx.cam.ac.uk> <20020223135211.154$cg@newsreader.com> <a59hgh$pk0$2@pegasus.csx.cam.ac.uk> <20020226190106.351$w9@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!logbridge.uoregon.edu!news.stealth.net!news.cc.tut.fi!uutiset.saunalahti.fi!localhost Newsgroups: news.software.nntp Organization: SAUNALAHDEN asiakas Lines: 66 NNTP-Posting-Host: cs183115.pp.htv.fi Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: tron.sci.fi 1014831549 23651 213.243.183.115 (27 Feb 2002 17:39:09 GMT) X-Complaints-To: newsmaster@saunalahti.fi NNTP-Posting-Date: 27 Feb 2002 17:39:09 GMT User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Common Lisp, i386-debian-linux) Cancel-Lock: sha1:tKl5n7Z3OfQlNVJC9BcAKmsTvGY=