Page 1 of 2

[Implemented] Packer command support of ZIP compression

Posted: Sun Feb 19, 2006 10:55 pm
by USCode
Hi Fred,
Enhancement request: Packer support for ZIP compression algorithm.

For PureBasic 4.0, is there any possibility we could have multiple algorithm support for the Packer command, in particular the ZIP compression algorithm?

Perhaps just an additional parameter (and PB constants) to the Packer command to specify which algorithm to use. ZIP is so common and widespread, it would be nice to have it supported natively in PureBasic using the Packer command.

I believe there are open source and liberally-licensed ZIP libraries that could be leveraged directly in PureBasic to support ZIP.

Posted: Sun Feb 19, 2006 11:01 pm
by thefool
Also i wouldnt mind if the packer supported more algorithms.

An option to switch between BriefLZ and JGCalc wouldnt be bad :)
Sometimes the compression needs are different. Sometimes you need the best compression, sometimes you need the best compared to speed (not the best compression ratio)

Posted: Mon Feb 20, 2006 4:09 pm
by Dummy
thefool wrote:An option to switch between BriefLZ and JGCalc wouldnt be bad :)
Better split it up in multiple libs identified by prefix so JGC_OpenPack(), ZIP_OpenPack(),...
(let's keep the exe small ;) )

Posted: Mon Feb 20, 2006 4:32 pm
by thefool
Dummy wrote:
thefool wrote:An option to switch between BriefLZ and JGCalc wouldnt be bad :)
Better split it up in multiple libs identified by prefix so JGC_OpenPack(), ZIP_OpenPack(),...
(let's keep the exe small ;) )
Good idea :)

parameters

Posted: Mon Feb 20, 2006 5:08 pm
by USCode
Better split it up in multiple libs identified by prefix so JGC_OpenPack(), ZIP_OpenPack(),...
(let's keep the exe small Wink )
I don't know anything about the PB compiler/linker internals but rather than using command prefixes couldn't we still go the parameter route for consistency with other PB commands and let Fred handle in his code which libraries are or are not linked in?

Posted: Mon Feb 20, 2006 6:20 pm
by Fred
Sure, it's just ugly with prefixes ;). We planed to do that trough a module approach, like image and sound libs. On the todo list.

Posted: Mon Feb 20, 2006 6:29 pm
by thefool
Nice to hear :)

Posted: Mon Feb 20, 2006 6:43 pm
by Berikco
Will be included in 2010 ;)

Posted: Mon Feb 20, 2006 6:44 pm
by Sebe
LOL, 7zip integration would be nice 8) but I don't think 7zip will be good 2010 :twisted:

Posted: Mon Feb 20, 2006 6:47 pm
by thefool
I visited 2010 yesterday with my home-programmed timemachine (programmed using pb 5.0), we dont compress anything anymore. Everyone simply got lightning fast internet and too much diskspace. Actually PB 5.0 blows the exe's very much, because we dont know how to use all our discspace!!

As you might guess, bericko has taken over the programming of pb because he is so lazy and simply bloats everything he touch!

Anyway thanks for the chat and cya in some years..

Posted: Mon Feb 20, 2006 6:51 pm
by DarkDragon
thefool wrote:I visited 2010 yesterday with my home-programmed timemachine (programmed using pb 5.0), we dont compress anything anymore. Everyone simply got lightning fast internet and too much diskspace. Actually PB 5.0 blows the exe's very much, because we dont know how to use all our discspace!!

As you might guess, bericko has taken over the programming of pb because he is so lazy and simply bloats everything he touch!

Anyway thanks for the chat and cya in some years..
I visited 2010 today with my home-programmed timemachine, and I think your timemachine has a bug, because compression will be everything. CD/DVDs already get destroyed with the specific drive if it is at all it can do status. So speed of drives can't be better anymore.

Posted: Mon Feb 20, 2006 6:52 pm
by thefool
i think YOU got a bug. Tss tss dont remember i programmed my machine with the NEXT # VERSION OF PUREBASIC!! (of course, when its bericko behind the main compiler you never know!)

Posted: Mon Feb 20, 2006 6:54 pm
by Fred
:lol:

Posted: Mon Feb 20, 2006 7:23 pm
by Dummy
Fred wrote:Sure, it's just ugly with prefixes ;). We planed to do that trough a module approach, like image and sound libs. On the todo list.
nice idea. I agree :)

Excellent!

Posted: Mon Feb 20, 2006 9:55 pm
by USCode
Sure, it's just ugly with prefixes :wink:. We planed to do that trough a module approach, like image and sound libs. On the todo list.
That's terrific Fred, thanks! I was hoping there was an alternative to the prefix method, that did seem a bit like an ugly hack.