* Tim Hutzler writes to All, on Saturday July 27 1996
at 10:23:
TH> Hi y'all;
TH> Awhile back someone posted a text compression/decompression routine
TH> that was simple and easy to implement. I have made some improvements
TH> and cleaned it up so that you can better understand how it works.
~
TH> 'This is a new string that renders slightly better compression using
TH> 'my mail reader packet database.
This message is kind of old, but what did you use to generate the dictionary?
I'm interested in the basic theory behind it. It looks to be quite ingenious
whilst being very simple. I may incorporate something like this into my
MoonRock compiler -- I am going to have the option of encoded string
literals/constants (so people can't hex edit the executable), and this may be
the way to do it, with compression as a bonus (although the dictionary
occupies 320 bytes up front...).
BTW if you're still after a copy of the PB reserved words, the 3.0c and 3.2
demo has a file called RES-WORD.TXT. It's about 28k so I won't post it in
here unless the moderator specifically requests/permits it. Here's a small
sample:
ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍ»
º Reserved Word ³ PB3 ³ QB45 ³ PDS 7.x º
ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍØÍÍÍÍÍÍÍÍÍØÍÍÍÍÍÍÍÍÍØÍÍÍÍÍÍÍÍ͹
º $ALIAS ³ * ³ ³ º
º $CODE ³ * ³ ³ º
º $COM ³ * ³ ³ º
º $COMPILE ³ * ³ ³ º
º $CPU ³ * ³ ³ º
º $DEBUG ³ * ³ ³ º
º $DIM ³ * ³ ³ º
º $DYNAMIC ³ * ³ * ³ * º
º $ELSE ³ * ³ ³ º
.....
º DEFWRD ³ * ³ * ³ * º
º DELAY ³ * ³ ³ º
º DELETE ³ * ³ ³ * º
º DELETEINDEX ³ ³ ³ * º
º DELETETABLE ³ ³ ³ * º
º DESCEND ³ * ³ ³ º
º DIM ³ * ³ * ³ * º
º DIR$ ³ * ³ ³ * º
º DO ³ * ³ * ³ * º
º DOUBLE ³ ³ * ³ * º
etc etc.
I got the demo from http://www.powerbasic.com/
Cheers.
---
---------------
* Origin: It's not so new now, but here 'tis anyway ---> (3:635/728.1)
|