Phantom OS

C&T: Video Games, Table Top Games & Computerized Stuff
Post Reply
User avatar
rhoenix
The Artist formerly known as Rhoenix
Posts: 7998
Joined: Fri Dec 22, 2006 4:01 pm
18
Location: "Here," for varying values of "here."
Contact:

#1 Phantom OS

Post by rhoenix »

[quote="TheRegister.co.uk"]It's nine degrees Fahrenheit in Moscow right now. That's the kind of cold that makes a man concentrate on his work so he can keep from remembering that the tears the wind blows out of his eyes will freeze on the side of his face before they hit the ground.

In the middle of this icebox, Dmitry Zavalishin is cooking up a new operating system. He calls it Phantom. Phantom is a different approach on the OS than any other out there, with the primary goal of being immortal. In Phantom, powering off the computer will not cause programs to lose state. They can pick up where they left off as soon as the machine is turned back on.

There are a few obvious uses to this sort of technology - medical, military, and mobile - where automatic state preservation will save the programmer from a lot of mistakes and wasted time. But there's also a possibility that the increased productivity may give Phantom some headway into the commercial server market.

To accomplish this automatic state preservation, Phantom continuously snapshots system memory on to disk. At first glance, that seems like a big synchronization problem: All the programs running should have to pause while the snapshot process reads their internal state. However, if you design the operating system around this goal, the process isn't that intense. The fundamental competency of Phantom is creating this snapshot cheaply, without disturbing current processes.

As a side effect of this design principle, Phantom's programming model is different from what developers are used to. To store persistent data in something like Windows or Linux, you need to explicitly write it to a file. Inventing an object serialization scheme can be tricky and error-prone, especially if your object structure is highly connected. Some languages, like Java, provide basic serialization functionality, but in complicated programs, you still need to remember exactly what state needs to be persisted through invocations of the code.

For example, in something like Microsoft Word, you can't just save the user's document to disk. You have to know whether they checked the “bother me every four seconds with helpful hints" or freeze the system for thirty seconds while you launch a help program when I press the button by accident" preference boxes. All that has to go to a file as well.

Because of this different line of thinking, Phantom doesn't have files. Well, there are no files in the sense that a developer opens a file handle, writes to it, and closes the file handle. From the user's perspective, things still look familiar – a desktop, directories, and file icons. But a file in Phantom is simply an object whose state is persisted. You don't have to explicitly open it. As long as your program has some kind of reference to that object, all you need to do is call methods on it, and the data is there as you would expect. That's definitely an advantage in an unstable environment.

All of this sounds neat, but the astute nerd will object: "But you have to re-write all of your code for this Phantom thing. Seems like a waste of time to me." Possibly. Programming has come a long way since the days of the Segmentation Fault and the Bus Error. We have efficient virtual machines now, with write-once-run-anywhere functionality. Java, C#, Ruby, and even languages that don't suck - like Python - support this.

Phantom will target these VM-based languages so that you won't have to rebuild any code. However, it may not be as simple as just copying over bytecode, a developer may have to modify the code a bit to take real advantage of Phantom's "timeless" feature. Old code should still work fine. It would just be inefficient if it does a lot of file I/O.

The Phantom OS is still very much in development. Currently, it will boot on a computer, run programs and perform its state-preservation-to-disk magic trick. Cross-development tools are also in production, to automate porting code.

Still to be done is the GUI. You know as well as I: All that matters in this life is a good command line. Still, the daily-user type needs some sort of mouse. Sounds like a crutch if you ask me.

After the GUI, the next step for Dmitry Zavalishin is marketing Phantom. The best code in the world doesn't mean anything if nobody's buying. Actually, this step has already began, with Zavalishin telling the world that unlike Linux, Phantom is better than Windows.

"You can not compete with Windows, repeating it," Zavalishin says. "It is impossible to compete with Windows, creating a functionally weaker system, such as Linux." (This works best if you read it to yourself with an assertive, Slavic accent). Phantom, he says, will increase programmer productivity by at least 30 per cent - and perhaps as much as 400 per cent.

He likens this to the benefit of VM-based languages. "Growth in productivity from a simple shift in the development of C++ software programming language to Java and C# languages is estimated by experts to be as much as 500 per cent – as, indeed, it explains the displacement of the first language by the last two over quite short period of time."

Nonetheless, breaking into a market is no easy task. The mobile space, one of the markets Phantom will target, is dominated by the iPhone. "iPhone has strong brand name and it is difficult to surpass it technologically,â€
"Before you diagnose yourself with depression or low self-esteem, make sure that you are not, in fact, just surrounded by assholes."

- William Gibson


Josh wrote:What? There's nothing weird about having a pet housefly. He smuggles cigarettes for me.
User avatar
Batman
The Dark Knight
Posts: 4357
Joined: Mon Feb 06, 2006 4:47 am
18
Location: The Timmverse, the only place where DC Comics still make a modicum of sense
Contact:

#2

Post by Batman »

Phantom is a different approach on the OS than any other out there, with the primary goal of being immortal. In Phantom, powering off the computer will not cause programs to lose state. They can pick up where they left off as soon as the machine is turned back on.
Um-notebooks have been doing that for quite some time now. It's called 'suspend to disk'.
Last edited by Batman on Fri Feb 06, 2009 5:54 pm, edited 1 time in total.
'I wonder how far the barometer sunk.'-'All der way. Trust me on dis.'
'Go ahead. Bake my quiche'.
'Undead or alive, you're coming with me.'
'Detritus?'-'Yessir?'-'Never go to Klatch'.-'Yessir.'
'Many fine old manuscripts in that place, I believe. Without price, I'm told.'-'Yes, sir. Certainly worthless, sir.'-'Is it possible you misunderstood what I just said, Commander?'
'Can't sing, can't dance, can handle a sword a little'
'Run away, and live to run away another day'-The Rincewind principle
'Hello, inner child. I'm the inner babysitter.'
User avatar
rhoenix
The Artist formerly known as Rhoenix
Posts: 7998
Joined: Fri Dec 22, 2006 4:01 pm
18
Location: "Here," for varying values of "here."
Contact:

#3

Post by rhoenix »

Batman wrote:Um-notebooks have been doing that for quite some time now. It's called 'suspend to disk'.
Correct - as a feature to allow a user to pick up their work from when they left off, without having to shut the computer down. What this OS talks about is going a few steps beyond that.
"Before you diagnose yourself with depression or low self-esteem, make sure that you are not, in fact, just surrounded by assholes."

- William Gibson


Josh wrote:What? There's nothing weird about having a pet housefly. He smuggles cigarettes for me.
User avatar
Batman
The Dark Knight
Posts: 4357
Joined: Mon Feb 06, 2006 4:47 am
18
Location: The Timmverse, the only place where DC Comics still make a modicum of sense
Contact:

#4

Post by Batman »

Um-the very point of 'suspend to disk' is to allow people to pick up their work from when they left off in cases where they DID shut their computer down.
'I wonder how far the barometer sunk.'-'All der way. Trust me on dis.'
'Go ahead. Bake my quiche'.
'Undead or alive, you're coming with me.'
'Detritus?'-'Yessir?'-'Never go to Klatch'.-'Yessir.'
'Many fine old manuscripts in that place, I believe. Without price, I'm told.'-'Yes, sir. Certainly worthless, sir.'-'Is it possible you misunderstood what I just said, Commander?'
'Can't sing, can't dance, can handle a sword a little'
'Run away, and live to run away another day'-The Rincewind principle
'Hello, inner child. I'm the inner babysitter.'
User avatar
rhoenix
The Artist formerly known as Rhoenix
Posts: 7998
Joined: Fri Dec 22, 2006 4:01 pm
18
Location: "Here," for varying values of "here."
Contact:

#5

Post by rhoenix »

Batman wrote:Um-the very point of 'suspend to disk' is to allow people to pick up their work from when they left off in cases where they DID shut their computer down.
Ok, I'm confused. I know this, and I know what you mean when you say this. What I'm confused about is why this is relevant to the article above.

What this OS does is effectively journaling the entire filesystem and OS to such a degree that it renders the very idea of "files" as an abstract, and does so in real-time, constantly - not on demand.
"Before you diagnose yourself with depression or low self-esteem, make sure that you are not, in fact, just surrounded by assholes."

- William Gibson


Josh wrote:What? There's nothing weird about having a pet housefly. He smuggles cigarettes for me.
User avatar
Destructionator XV
Lead Programmer
Posts: 2352
Joined: Sun Jun 12, 2005 10:12 am
19
Location: Watertown, New York
Contact:

#6

Post by Destructionator XV »

Batman's right - we already have everything it offers. Just leave your computer and programs running and you don't need files. The OS will put data to disk as required to keep enough memory free for operations.

Of course, you can't leave your stuff running when you have to shut down, but suspend to disk (hibernate option on laptops) covers that: your running programs are saved, you shut down, and then when you start back up, you are exactly back to how it was before the shut down.

It accomplishes the same thing without needing a new OS. Or new anything for that matter.
Adam D. Ruppe
Image Oh my hero, so far away now.....
User avatar
rhoenix
The Artist formerly known as Rhoenix
Posts: 7998
Joined: Fri Dec 22, 2006 4:01 pm
18
Location: "Here," for varying values of "here."
Contact:

#7

Post by rhoenix »

Destructionator XV wrote:Batman's right - we already have everything it offers. Just leave your computer and programs running and you don't need files. The OS will put data to disk as required to keep enough memory free for operations.

Of course, you can't leave your stuff running when you have to shut down, but suspend to disk (hibernate option on laptops) covers that: your running programs are saved, you shut down, and then when you start back up, you are exactly back to how it was before the shut down.

It accomplishes the same thing without needing a new OS. Or new anything for that matter.
As I understand it, the equivalent would be bolting on a somewhat aggressive journaling file system onto a pre-existing OS - would it be to that OS' advantage to fine-tune it to take full advantage of such journaling, and if so, would it give rise to the terminology of software "states," similar to how the article above states?

My main interest in this OS is not installing it on my PC. The BeOS was rather awesome, but ultimately was forgotten. Despite this, several good features of this OS found their way into the modern OS' of now, and this specifically is why I'm as interested as I am in this idea.
"Before you diagnose yourself with depression or low self-esteem, make sure that you are not, in fact, just surrounded by assholes."

- William Gibson


Josh wrote:What? There's nothing weird about having a pet housefly. He smuggles cigarettes for me.
Post Reply