>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Features

Author Thread: Zipping )RSAVE
davin.church
Zipping )RSAVE
Posted: Thursday, July 13, 2006 7:51 PM (EST)

It seems to me that now that we have ZIP (ZLib) capabilities built into the interpreter (via []DR), we now might want to make use of that to do something new...  When distributing APL code, I often ZIP my workspaces to make them smaller and easier to move around.  But when I work with )RSAVEd workspaces, this is not possible due to RSAVE-encryption.  How about we modify )RSAVE so that it first zips the workspace to compress it BEFORE encrypting it, so that we end up with a much smaller distribution version?

 

And if we're going to auto-compress it anyway, how about we also take a moment to clean up the workspace (symbol table, garbage collection, etc.), similar to a CLEAR/COPY, so that it's packed down to a minimum size before zip-compression and encrypting?

 

If automatic zipping doesn't sound comfortable, then how about a separate command to do that -- say, something like )ZRSAVE?  If we provide it as a choice in this way, perhaps it would also make sense to add )ZSAVE as well for compressing (and cleaning up) non-RT WSs.

 

Does any of that sound reasonable?


Comments:

Author Thread:
Richard.Hill
Zipping )RSAVE
Posted: Thursday, July 13, 2006 10:19 PM (EST)

Davin,

I support your points 85 percent.

YES, )rsave should both encrypt and compress..

NO, please not any MORE ommands.

APL+Win is already quite confusing

with multiple commands and keywords

that are similar but different and not fully compatible

for example, a file could be referenced by

{quad}fnums.. xfnums...nnums .xnnums ..cfnums...

and you have search them all..

So please, dont recommend to the developers

the development of any new commands or keywords.

regards

Richard Hill

 

     

davin.church
Zipping )RSAVE
Posted: Thursday, July 13, 2006 10:50 PM (EST)

Personally, I think I'd like )RSAVE to do it all automatically, rather than only on command.  But I'll take the extra command version if doing it automatically is a show-stopper.

 

I think that it might also be valuable to auto-zip regular )SAVEs too, if it doesn't take too much processing time.  Otherwise we might have to fall back to a separate command there to keep from slowing people down too much during hopefully-frequent )SAVEs.

 

(Hehehe...  just a wild thought...  If we do get auto-zipped saves, then I think that might be the first time APL ever has saved workspaces that were smaller than the data therein.)

     



APL2000 Official Web Site

Service is the rent we pay for being. It is the very purpose of life, and not something you do in your spare time.
--- Marion Wright Edelman

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |