• MTK@lemmy.world
    link
    fedilink
    arrow-up
    144
    ·
    20 days ago

    If you have a tub full of water and a take a sip, you still have a tub full of water. Therefore only drink in small sips and you will have infinite water.

    Water shortage is a scam.

  • wizzim@infosec.pub
    link
    fedilink
    arrow-up
    93
    ·
    edit-2
    20 days ago

    Awesome idea. In base 64 to deal with all the funky characters.

    It will be really nice to browse this filesystem…

  • Thorry84@feddit.nl
    link
    fedilink
    arrow-up
    68
    ·
    20 days ago

    It’s all fun and games until your computer turns into a black hole because there is too much information in too little of a volume.

  • kryptonianCodeMonkey@lemmy.world
    link
    fedilink
    arrow-up
    53
    ·
    20 days ago

    I had a manager once tell me during a casual conversation with complete sincerity that one day with advancements in compression algorithms we could get any file down to a single bit. I really didn’t know what to say to that level of absurdity. I just nodded.

    • friendlymessage@feddit.org
      link
      fedilink
      arrow-up
      23
      ·
      edit-2
      20 days ago

      That’s the kind of manager that also tells you that you just lack creativity and vision if you tell them that it’s not possible. They also post regularly on LinkedIn

    • DefederateLemmyMl@feddit.nl
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      19 days ago

      You can give me any file, and I can create a compression algorithm that reduces it to 1 bit. (*)

      spoiler

      (*) No guarantees about the size of the decompression algorithm or its efficacy on other files

    • calcopiritus@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      20 days ago

      Just make a file system that maps each file name to 2 files. The 0 file and the 1 file.

      Now with just a filename and 1 bit, you can have any file! The file is just 1 bit. It’s the filesystems that needs more than that.

    • Randelung@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      19 days ago

      It’s an interesting question, though. How far CAN you compress? At some point you’ve extracted every information contained and increased the density to a maximum amount - but what is that density?

      • Couldbealeotard@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        19 days ago

        I think by the time we reach some future extreme of data density, it will be in a method of storage beyond our current understanding. It will be measured in coordinates or atoms or fractions of a dimension that we nullify.

      • Max@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        19 days ago

        This is a really good question!

        I believe the general answer is, until the compressed file is indistinguishable from randomness. At that point there is no more redundant information left to compress. Like you said, the ‘information content’ of a message can be measured.

        (Note that there are ways to get a file to look like randomness that don’t compress it)

  • Typewar@infosec.pub
    link
    fedilink
    arrow-up
    32
    ·
    20 days ago

    Reminds me of a project i stumbled upon the other day using various services like Google drive, Dropbox, cloudflare, discord for simultaneous remote storage. The goal was to use whatever service that has data to upload to, to store content there as a Filesystem.

    I only remember discord being one of the weird ones where they would use base512 (or higher, I couldn’t find the library) to encode the data. The thing with discord, is that you’re limited by characters, and so the best way to store data in a compact way is to take advantage of whatever characters that are supported

    • DefederateLemmyMl@feddit.nl
      link
      fedilink
      arrow-up
      27
      ·
      19 days ago

      When you run out of characters, you simply create another 0 byte file to encode the rest.

      Check mate, storage manufacturers.

    • barsoap@lemm.ee
      link
      fedilink
      arrow-up
      12
      ·
      edit-2
      19 days ago

      255, generally, because null termination. ZFS does 1023, the argument not being “people should have long filenames” but “unicode exists”, ReiserFS 4032, Reiser4 3976. Not that anyone uses Reiser, any more. Also Linux’ PATH_MAX of 4096 still applies. Though that’s in the end just a POSIX define, I’m not sure whether that limit is actually enforced by open(2)… man page speaks of ENAMETOOLONG but doesn’t give a maximum.

      It’s not like filesystems couldn’t support it it’s that FS people consider it pointless. ZFS does, in principle, support gigantic file metadata but using it would break use cases like having a separate vdev for your volume’s metadata. What’s the point of having (effectively) separate index drives when your data drives are empty.

  • Little8Lost@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    ·
    edit-2
    20 days ago

    Stupid BUT: making the font in LibreOffice bigger saves space. so having 11 is readible but by changing the font size to like 500 it can save some mb per page
    I dont know how it works, i just noticed it at some point

    Edit: i think it was kb, not mb

    • SkaveRat@discuss.tchncs.de
      link
      fedilink
      arrow-up
      16
      ·
      20 days ago

      per page

      I mean, yes. obviously.

      If you had 1000 bytes of text on 1 page before, you now have 1byte per page on 1000 pages afterwards

    • Jankatarch@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      20 days ago

      Have a macro that decreases all font size on opening and then increases all again before closing.

      Follow me irl for more compression techniques.

  • hades@lemm.ee
    link
    fedilink
    arrow-up
    13
    ·
    19 days ago

    I remember the first time I ran out of inodes: it was very confusing. You just start getting ENOSPC, but du still says you have half the disk space available.