this post was submitted on 21 Jun 2023
3 points (100.0% liked)

Experimental Software

59 readers
1 users here now

Please be respectful and we can all get along!

Only source code is allowed to be distributed no precompiled exe's etc., anything that would allow malicious code to be distributed unknowingly.

This is for people that want to bounce ideas around with others to expand or improve their program.

Ask about!

founded 1 year ago
MODERATORS
 

I been looking at ways to compress data so it can be distributed easily by making it as small as possible as long as the random number generator is consistent through all devices.

It will be computationally expensive to compress but not as expensive to decompress.

What I do is I take all the text/bytes of a file and then create a (char|byte)sheet that contains each unique character that is in the file.

After that, I start at 0 and increment by 1 for the seed. I use Python's random library and seed it with the int. I use random.choices((char|byte)sheet, k=length). For each seed, I have two paremeters. A maximum and a minimum for the length of generated chars/bytes.

Uhhh....

Now that I'm writing this I'm starting to see where some of this is falling apart. I'll post the code for now I got some rewriting to do! For now, here's the progress I had!

main.py

worker.py

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here