186
submitted 1 year ago by librechad@lemm.ee to c/asklemmy@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Kindness@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

Please forgive the meandering reply.

As far as I'm concerned, OO is a mental model for how to handle any noun. Linux is a good example for OOP, in that, "Everything is a file." Linux does this amazingly well; even interfaces that read data from USB ports are "files."

However, this comes with some limitations. Kernel threads are not very accessible. If you tried to set up a single operating system over multiple computers, you would need some very severe modifications to Linux, and the implementation would likely have many sharp corners to snag on. (Where is this file? What hardware "owns/runs" it? How does Computer 2's hardware take over, or modify a value currently in Computer 1's CPU? Etc. As a side note, last I checked, the most common method of distributed computation with Linux is to install an OS on each computer, and have them report to a master or scheduling computer. Which, while functional, is reliant on separate components functioning on their own, independently of the scheduler.)

I'm stepping well out of my wheelhouse to give a contrasting example. Please be gentle with corrections. Kubernetes, designed to handle multiple pieces of hardware, is written ~~decoratively~~ declaratively without OOP, I believe. Each piece of hardware becomes a node run by a control plane, which is much the same thing as an OS, but lighter, with less capabilities and independence. (?)

This is not to say you can't do the same thing with a custom Linux distro, but using an entirely OO pattern will create sharper corners.

Each paradigm has its own strengths and use-cases; and each their own weaknesses and limitations.

this post was submitted on 11 Sep 2023
186 points (96.0% liked)

Asklemmy

43958 readers
1133 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS