Skip Navigation
copingalligator Apocalypse Survivor @lemmy.world

I like to program stuff!

Posts 3
Comments 1
Hello World!
  • YOU'RE HIRED!

  • What is this place?

    Hi! You're probably wondering what is this place.

    I wanted to create a place where you can discuss your ongoing projects.

    Maybe someone can offer advice with your project or give constructive feedback!

    If you want to ask help on coding related things, please keep the posts to a minimum and use the comments!

    Have fun!

    The rules can and will change overtime to help adjust to how the community wants to use it!

    0

    Data Compression via seeded RNG(to be continued)

    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

    0

    Hello World!

    Our first post, what's the status?

    2