379 points · by metalwhale · 5y ago · 148 comments
EDIT: End to end we do not give enough information from the application to OS to the hardware for perfect optimizations. We do not start with enough information and we lose too much down the stack. Especially around concurrency. I think that at the end of the day there is some atomic information needed by hardware and OS to make optimizes about all code running on the system.
I see the approach taken here in an effort to retain needed information by integrating compilation and OS level functionality. I think this is correct but we will see a shift to OSes having there own byte code as a translation layer between higher level languages. I also think high level languages lack some needed information in the first place...
https://news.ycombinator.com/item?id=9806607
http://www.uruk.org/emu/Taos.html
It had an object oriented assembly language that everything compiled to and it JIT'd/on-fly-compiled code IIRC. Sounded very cool.
Is that a reflection of the quality of the software implementation? Or is it a reflection of the hardware it’s trying to implement? Or perhaps it’s related to the hardware the emulator is running on?
Or did the emulator emulate the hardware while running on /that/ hardware? Did it pull efficiency gains out of seemingly thin air?
The goal appears to be to design an architecture that supports in-place updates of most components due to them having tightly constrained state management and inter-component dependencies.
Maybe that explains the reference.
The simple answer is that “identity” is pseudoscience and does not exist; it's a man-made delusion created by the human mind to simplify reality and deal with it more easily.
“identity” does not even apply to truly atomic particles, because there is no way to say that they aren't “different” in a next instance of time.
There are far too many “thought experiments” and “quæstions” that simply arise by trying to treat as rigorous man-made delusions and distinctions such as this one. “Is the glass half full or half empty?” — that is a non-distinction created by men, not by nature.
BTW if you just replace the word "delusion" with "abstraction" you'll probably see how it makes a lot of sense. Every abstraction is a delusion by definition, is it not? Because the abstracted thing doesn't really exist in the same way as source observation?
And they are, and they might help you, but trying to ask scientific or metaphysical quæstions about it, is an exercise in futility.
> BTW if you just replace the word "delusion" with "abstraction" you'll probably see how it makes a lot of sense. Every abstraction is a delusion by definition, is it not? Because the abstracted thing doesn't really exist in the same way as source observation?
The difference is of course that some abstractions have rigorous definitions rather than purely based on human intuition, and then attempting to reason about them rigorously, quickly leading to reductions to the absurd such as here.
The quæstion raised in The Ship of Theseus assumes that there even be a meaningful, rigorous distinction between “same identity” an “different identity” — I reject that and attempting to reason about this with actual logic and empiricism is ridiculous.
It is as foolish as trying to have a scientific investigation about who is beautiful and who isn't.
Staying power of memes in culture has little to do with their usefulness.
Whole lot of popular narratives distract us from the nature of reality rather than helps us interact with it.
I would gladly see introduction to particle physics that doesn't show a single sharp rigid sphere.
> The simple answer is that “identity” is pseudoscience and does not exist; it's a man-made delusion created by the human mind to simplify reality and deal with it more easily.
I agree, identity doesn't exist really, not in the physical, natural sense of existence...
Which is what the "silly thought experiment" is pointing at. He wouldn't have taken it that far, but the philosopher was trying to make a point in that direction.
Just because you reached such a level of enlightenment without silly thought experiments is no reason to be dismissive of the ladder that takes others to enlightenment. /s
I have usually seen extensive arguments and debates for whether the ship remains the same identity or not, and rarely do I see the opinion “The quæstion does not make sense, and the concept of “identity” is one of men, not nature.”
You can see in this comment tree already that many are defending the concept rather than admitting it's incorrect nature.
I'm going to try that argument with the customs officer next time I travel.
It reminded me of Douglas Adams' quote from Hitchhiker's Guide to the Galaxy: "There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another theory which states that this has already happened."
It is a weird quirk of some logic items. They can be both true and false at the same time. Such as things 'this statement is false' which is both true/false at the same time. Is one such example of that. However, sometimes it is clear our test is lacking. With the 'ship' you could say as soon as you switched out anything it was no longer the original thing. What happened to the original thing? Well it went to the same place as when I created it. Which creates its own set of questions.
Without the human mind, there is no meaningful concept of "reality".
I made a claim as to the dealing in identities and the assumption that they can actually be reasoned about.
They have no definition and it's merely fuzzy human gut feeling what is and isn't a different identity and different men can't always see eye to eye on it either.
One thing I remember well is that I watched a television series as a child that had an magical object that turned everything it touched into gold. It eventually landed on a ship, and the ship turned to gold, and sank.
It defied my intuition, from where I sat only the plank on which it fell should be turned to gold, not the entire ship, for if the entire ship did, apparently it's power could transfer simply to objects pressed close enough to that which it touched, and that was inconsistent with past portrayal.
Clearly however the ship as an entire identity satisfied the intuition of the script writers, but my intuition felt that the plank was a single identity, not the ship.
There are no definitions and rigor here — it is simply every man's individual intuition.
`a = 257; b = a*1; a is b`
This operating system shares none of those goals, it seems to focus on a particular challenge related to the abstraction between subsystems of the operating system, following a term they call "state spilling". The goal appears to be to design an architecture that supports in-place updates of most components due to them having tightly constrained state management and inter-component dependencies.
Strongly reminds me of Erlang-style hot reload.
Have any OS projects based on that architecture ever got off the ground?
The only thing in common with UNIX from current Redox is the POSIX support.
Here, nobody claimed that the Redox kernel was unix-style, so you're fighting a strawman…
The way that posix filesystem semantics are a kernel provided abstraction is very "unix style".
If I may plug, check out https://internals.rust-lang.org/t/dogfooding-z-build-std-in-.... I'm it can heave us over the fence for the types of things that will make having a no_std cargo ecosystem easier.
In the early days of Linux, getting something like your wifi to work could be a hassle, I wonder if enough have changed in the driver space that we can quickly power through some of these challenges today.
OS/400 and successors don't run on this kind of hardware.
Is there any chance that specific drivers for modules for the Linux kernel be written in Rust? Has there been any interesting research or discussion on the topic?
The concept of state spill also explains why OOP code bases are often a nightmare of complexity, despite pervasive modularization and encapsulation.
From the "High Level Overview" doc (not the readme) :
> The Theseus kernel is composed of many small entities, each contained within a single Rust crate, and built all together as a cargo virtual workspace.
We will know that Rust has succeeded when people no longer feel the need to remark on it in the title.
"Hi, my project does X, I wrote it in Y," seems a reasonable way to introduce something.
When I knew about Redox OS, I thought great but has it MIT license? really? And this new OS is under MIT license too....really?