[Implemented] Packer command support of ZIP compression

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

[Implemented] Packer command support of ZIP compression

Post 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.
Last edited by USCode on Sun Feb 19, 2006 11:13 pm, edited 1 time in total.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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)
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post 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 ;) )
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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 :)
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

parameters

Post 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?
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post 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.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Nice to hear :)
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Will be included in 2010 ;)
Sebe
Enthusiast
Enthusiast
Posts: 160
Joined: Sun Dec 19, 2004 10:55 pm
Location: Munich
Contact:

Post by Sebe »

LOL, 7zip integration would be nice 8) but I don't think 7zip will be good 2010 :twisted:
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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..
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post 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.
bye,
Daniel
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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!)
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

:lol:
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post 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 :)
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Excellent!

Post 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.
Post Reply