• BartyDeCanter@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    2 months 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.

  • JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    It makes more sense when you realize that it’s not that everything is files it’s that everything can be treated as a file. There are other APIs to interact with things, but everything can be interacted with as if it was a file. It doesn’t seem as bonkers like this.