• BartyDeCanter@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    11 days ago

    Stages of POSIX enlightenment:

    1. It couldn’t possibly all be files
    2. It’s all files
    3. What is a file, anyway?
    4. There’s no such thing as a file
    5. It couldn’t possibly all be files
    6. Everything is a file

    Most people stop at stage 2, stage 3 hits when you decide to write a filesystem, stage 4 when you’ve finished your first filesystem. Stage 5 is when you start working on kernel internals. No one can tell you how to reach stage 6, you must discover it for yourself.

      • Bluewing@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        11 days ago

        Asking for a friend.

        If you can recognize “nothing” then “nothing” must be something right? So if nothing is a file, because /dev/null says so, then nothing MUST be something to be a file. And therefore /dev/null can’t be nothing.

        Or do I just need more tea? Or maybe whisk(e)y?

        • HeHoXa@lemmy.zip
          link
          fedilink
          arrow-up
          1
          ·
          11 days ago

          The word “nothing” isn’t itself nothing. It is something used to describe nothing.

          • gandalf_der_13te@feddit.org
            link
            fedilink
            arrow-up
            2
            ·
            11 days ago

            in fact that gets used in abstract mathematics to first introduce the natural numbers. the empty set (nothing) (which you define as 0) is not itself nothing, so you can define the set that contains just the empty set, which now is not empty itself, but contains one element, so you define that as 1 …

          • Bluewing@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            11 days ago

            The word “nothing” is the English word describing the concept of nothing. And I have to use the word to describe the concept. So yes, you are correct the word is itself “something”. So that is probably one point for “nothing” to not exist.

            I have now consumed 3 cups of tea. And my head now hurts from thinking about nothing. I should never have stepped into this post.

    • SpaceCowboy@lemmy.ca
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      11 days ago

      Unfortunately, no one can be told what a file is. You have to see it for yourself.

      This is your last chance. After this, there is no turning back. You take the blue pill - the story ends, you wake up in your bed and believe whatever you want to believe. You take the red pill - you stay in Wonderland and I show you how deep the file system goes.

  • zitrone 🍋@europe.pub
    link
    fedilink
    arrow-up
    0
    ·
    10 days ago

    ok then how do i access [2b00:13c0:47:1422::5]:7236 through a file?

    i don’t think that’s possible

    only on plan9

  • Truscape@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    11 days ago

    Yep, takes a moment to wrap your head around but the longer you read linux/unix documentation, the more it makes sense why it is the case.

    • gandalf_der_13te@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      11 days ago

      tldr: it’s to have nicer, less complicated I/O operations

      it enables just having two API calls: read() and write() to do everything