Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Compress vs gzip/zlib

 [1/6] from: jjmmes::yahoo:es at: 25-Jun-2002 0:42


I´ve compressed a text file first with REBOL's compress write/binary %file.comp compress read/binary %file and then with the gzip utility and found out that the files only differ by a few bytes. If I look at the binary stream it looks like that except for a few bytes at the beginning the rest is the same. Can anybody shed some light on this ? It would be useful to have compatibility with gzip Thanks Jose _______________________________________________________________ Copa del Mundo de la FIFA 2002 El único lugar de Internet con vídeos de los 64 partidos. ¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/

 [2/6] from: larry:ecotope at: 24-Jun-2002 16:14


Hi Jose RT has stated that REBOL compression uses the same algorithm as gzip, but REBOL does not create the gzip header. -Larry ----- Original Message ----- From: "jose" <[jjmmes--yahoo--es]> To: <[rebol-list--rebol--com]> Sent: Monday, June 24, 2002 3:42 PM Subject: [REBOL] Compress vs gzip/zlib I4ve compressed a text file first with REBOL's compress write/binary %file.comp compress read/binary %file and then with the gzip utility and found out that the files only differ by a few bytes. If I look at the binary stream it looks like that except for a few bytes at the beginning the rest is the same. Can anybody shed some light on this ? It would be useful to have compatibility with gzip Thanks Jose _______________________________________________________________ Copa del Mundo de la FIFA 2002 El znico lugar de Internet con vmdeos de los 64 partidos. !Apzntante ya! en http://fifaworldcup.yahoo.com/fc/es/

 [3/6] from: oliva:david:seznam:cz at: 26-Jun-2002 23:35


Hello jose, Tuesday, June 25, 2002, 12:42:35 AM, you wrote: j> I´ve compressed a text file first with REBOL's j> compress j> write/binary %file.comp compress read/binary %file j> and then with the gzip utility and found out that the j> files only differ by a few bytes. j> If I look at the binary stream it looks like that j> except for a few bytes at the beginning the rest is j> the same. j> Can anybody shed some light on this ? It would be j> useful to have compatibility with gzip j> Thanks j> Jose great... why I never tried this test... I was using zlib function from PHP in my Rebol/Flash dialect but the Rebol compress function IS gzip compression...
>> print to-string zlib/decompress compress "gzip-test"
gzip-test there are just 4 bytes on the end that means length of the string (I think that may be ignored):
>> print to-string zlib/decompress head remove/part tail compress "gzip-test" -4
gzip-test Rebol'sdecompress is working as well:
>> decompress zlib/compress "gzip-test"
== "gzip-test" I really don't know why RT didn't said that sooner... when I was asking them in the feedback some time ago why there is no gzip compression when Rebol can save PNG files, there was no reply from them:-( never mind... now I can be independent on the PHP... good work Jose

 [4/6] from: rebol:optushome:au at: 29-Jun-2002 8:45


The compression comes up every year, should be put in the FAQ. Here are some msgs from 1999

 [5/6] from: oliva:david:seznam:cz at: 2-Jul-2002 17:30


Hello Allen, Saturday, June 29, 2002, 12:45:33 AM, you wrote: AK> The compression comes up every year, should be put in the FAQ. AK> Here are some msgs from 1999 AK> ----- Original Message ----- AK> From: <[sterling--rebol--com]> AK> To: <[list--rebol--com]> AK> Sent: Wednesday, November 17, 1999 5:31 AM AK> Subject: [REBOL] (De)Compress function source Re: ...
>> Next step after that: TAR >> >> Sterling
ah so... year 1999... year when people from RT were communicating also with as who has no access to IOS/developer server... it's quite a long time since a last email here from them... seems that they are more enjoy sun than monitor's radiation or am I wrong? hmm... TAR... will have to look at that... 3years... the best time to start. oldes

 [6/6] from: al:bri:xtra at: 3-Jul-2002 16:14


oldes wrote:
> hmm... TAR... will have to look at that... > 3years... the best time to start.
It would be nice to have a Rebol/TAR, that can also handle .gz files as well. Andrew Martin ICQ: 26227169 http://valley.150m.com/