Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ACagliano

Pages: 1 ... 13 14 [15] 16 17 ... 62
211
TI Z80 / Re: CalcRAR
« on: February 25, 2012, 06:51:32 pm »
Ok, I understand that now. But, my question is...How many bytes should your compressor check for at a time. What stops the compressor from taking the whole file as String1?

212
TI Z80 / Re: CalcRAR
« on: February 25, 2012, 06:31:45 pm »
Ok, let me see if I understand this....

to compress using LZ77.

1. Set a pointer to the start of data to compress.
2. Search the data for the longest string of data that does not repeat. Leave that uncompressed.
3. Locate other sequences that emulate parts of the data string in 2 and write them as references to it.

Is that right?

213
Math and Science / Re: Why doesn't zero divided by zero work
« on: February 25, 2012, 11:22:24 am »
Would there be a way to create a calc hook that enables it to automatically figure out a limit if the denominatior = 0

214
TI Z80 / Re: CalcRAR
« on: February 24, 2012, 03:04:28 pm »
Oh. Can you link me to the pucrunch axiom? I'll just use that. Will it be sufficient?

215
TI Z80 / Re: CalcRAR
« on: February 24, 2012, 02:03:12 pm »
I really do give up. lol. Sorry. Compression was never my strong point.

Edit: If someone want to write a compression/decompression routine, I will be eternally grateful. But, for the time being, I'm afraid, it is outside my skill level.

216
TI Z80 / Re: CalcRAR
« on: February 24, 2012, 12:40:35 pm »
All it helps me to understand is the first bit. lol

So, bit 1 is the compressed/uncompressed status.
Bit 2-8 is the length of the data string.
What is the 11 and the other?

217
Math and Science / Re: Why doesn't zero divided by zero work
« on: February 24, 2012, 10:21:48 am »
Think about this....

Take a number, n. Subtract 0 from it and keep going until n=0. Let me know when you're done. ;)

If you think about it that way, you get infinity. Technically, infinity IS an undefined number (the textbook definition of infinity is the inability to assign a definite quantity).

218
TI Z80 / Re: CalcRAR
« on: February 24, 2012, 08:41:54 am »
I'm sorry thepenguin, but I am sooo lost.

219
TI Z80 / Re: CalcRAR
« on: February 23, 2012, 05:45:10 pm »
Thanks, thepenguin. Instead of showing me the source code, can you perhaps try to give me an example stream of data, and then that same data compressed in LZ77. From there, perhaps I could decipher it.

220
TI Z80 / Re: CalcRAR
« on: February 23, 2012, 05:20:25 pm »
Well, I would like him to demonstrate, in pseudocode, the basic concept behind performing compression and decompression like that. There is more to my project than just that. :)

Yes, I know that the RAM limitation is an issue. However, I'm looking for a compression algorithm that can be used on calc. If it can't, it defeats the purpose of this project.

221
Humour and Jokes / Re: Juju in danger?
« on: February 23, 2012, 02:38:21 pm »
I'm currently trying to decide whether this is amusing or annoying. One thing's for sure. It's hilarious. Not that I'd ever do it myself.

222
TI Z80 / Re: CalcRAR
« on: February 23, 2012, 02:32:17 pm »
Well, I'm a bit confused as to application in z80. Would you perhaps be so kind as to write me a routine that compresses and decompresses a file? Or perhaps psuedocode it.

223
TI Z80 / Re: CalcRAR
« on: February 23, 2012, 11:54:04 am »
Well, my idea was this...

The program is made, then copied to Archive. A second program is created in RAM. The first one is compressed and copied into the second. The first is then deleted. The second is the compressed Archive. That is how compression works.

Decompression I need to think about.

224
TI Z80 / Re: CalcRAR
« on: February 23, 2012, 10:18:57 am »
well, the main problem here is that most options for compressing on-calc(especially if there's lots of features/fancy GUI, etc.) take up a lot of space, most of the time more than is saved by the compression of the program :P

Well, then what would you recommend? Just not compress it?

225
TI Z80 / CalcRAR
« on: February 23, 2012, 09:36:57 am »
I believe that I once read about an idea by another programmer to make an Archiver of sorts, with the capacity to work with the DCS file structure. I learned on Cemetech that he put the project on hold. Reading this sort of made me want to work on a similar program myself, mainly for practice with different data types.

It'll work similarly to WinRAR for Windows and Stuffit Expander for Mac. That's why I name it CalcRAR. This program will create an archive file, a specially-formatted program with data that CalcRAR will read to determine what files to create, data to put in the files, and where to put the files. The file, after creation, will be compressed. When it is read, it will be decompressed. The best part, you can run this program just as you would anything else, given CalcRAR installed. The Archive is designed with the DCS AP feature, so when you run it, CalcRAR unpackages the Archive, automatically runs the program, then returns to CalcRAR, which removes the unpacked files and quits.

The reason I posted is because I need some advice. Is RLE the best compression to go with here? Or is another type better? And I may actually need some help implementing it.


Pages: 1 ... 13 14 [15] 16 17 ... 62