[Implemented] Packer command support of ZIP compression

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Michael Vogel
Addict
Addict
Posts: 2798
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Zip Lib

Post by Michael Vogel »

when implementing Zip compatible functions, please add the "missing" function which extracts a file from a packed file without the indirection with unpacking to the memory...

Thanks,
Michael
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

packer module support

Post by USCode »

Hi Fred,
Just curious as to where this is on the ever-growing PB to-do list? :wink:
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Re: packer module support

Post by Num3 »

USCode wrote:Hi Fred,
Just curious as to where this is on the ever-growing PB to-do list? :wink:
Bottom :twisted:
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

was it on the list? wow... :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: packer module support

Post by USCode »

Num3 wrote:...Bottom :twisted:
That's what I was afraid of!!! :wink:
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Packer plug-in architecture and ZIP compression support

Post by USCode »

Maybe for 4.30??? :wink: (Packer library plug-in architecture and ZIP compression support)

One major advantage of a compression algorithm like ZIP vs. JCalG1 is that it's pretty much guaranteed that you will be able to unpack any old files using ZIP maybe even 10yrs from now, it's so widespread and widely used. JCalG1 on the other hand isn't anywhere near as ubiquitous as ZIP...
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

packer module support

Post by DoubleDutch »

Hopefully this will come as a last minute addition to 4.60. I have a program on the PC I want to convert to OSX and this is one of the major things holding it up. :(

I really need jcalg1 pack and unpack on osx...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
graph100
Enthusiast
Enthusiast
Posts: 115
Joined: Tue Aug 10, 2010 3:17 pm

Re: Packer command support of ZIP compression algorithm ?

Post by graph100 »

globally, a general lib to unpack archives file would be a great addition to PB.
(and to unpack them in memory too ^^)
_________________________________________________
My Website : CeriseCode (Warning : perpetual changes & not completed ;))
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: packer module support

Post by Thorium »

DoubleDutch wrote:Hopefully this will come as a last minute addition to 4.60. I have a program on the PC I want to convert to OSX and this is one of the major things holding it up. :(

I really need jcalg1 pack and unpack on osx...
Just switch to ZLib, it's included in the PB package for all OS's: http://www.purebasic.fr/english/viewtop ... 4&start=14
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Packer command support of ZIP compression algorithm ?

Post by DoubleDutch »

I've thought of doing this - it's just compatibility with existing files though...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
kenmo
Addict
Addict
Posts: 2033
Joined: Tue Dec 23, 2003 3:54 am

Re: Packer command support of ZIP compression algorithm ?

Post by kenmo »

I was not aware (or I forgot) about the OS-incompatibility of the packer functions... which I have been using lately.

But the ZLib libraries for all 3 OS are already included with PB? What are they normally used for? (Images?)
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Packer command support of ZIP compression algorithm ?

Post by DoubleDutch »

Ideally the original type of packing from the x86 version would be available to all versions.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: Packer command support of ZIP compression algorithm ?

Post by USCode »

DoubleDutch wrote:Ideally the original type of packing from the x86 version would be available to all versions.
You'll see earlier in the thread that Fred mentioned a modular approach, probably doing like they did with Image, Sound and Database plugins. E.g. Use...()
Berikco wrote:(2006) Will be included in 2010 ;)
2011, we still don't have it! :wink:
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: Packer command support of ZIP compression algorithm ?

Post by Thorium »

kenmo wrote: But the ZLib libraries for all 3 OS are already included with PB? What are they normally used for? (Images?)
It's for PNG decoding and encoding.
DoubleDutch wrote:Ideally the original type of packing from the x86 version would be available to all versions.
Thats very unlikely to happen. Problem is that JCalG1 lib is only for 32bit Windows. And because the compressor is very large and completly written in 32bit x86 ASM it a huge lot of work to port it over. I dont think they will do that.

I did ported the decompressor to 64bit x86 and made a optimized version for 32bit. Should work on Linux and MacOS (only x86, no PPC).
But porting the compressor is a whole other story.
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Re: Packer command support of ZIP compression algorithm ?

Post by Dummy »

Add LZMA (SDK = LZMA Utils) / LZMA2 (SDK = XZ Utils) instead.

It's free and cross platform and the license would allow integrating it as a library
Post Reply