News for hackers. Stuff that matters.
Re:Arrakis by GuiA on Wednesday May 21, 2014 @05:12PM (#7780815)
"Applications are becoming so complex that they are miniature operating systems in their own right and are hampered by the existing OS protection model"

Sure, that's true for browsers, as they mention, and a few other degenerate cases (eg. virtualization software?) - but that's certainly not the case for the vast majority of applications I run (text editor, terminal, mail client, IM client, etc.). How does this argument hold?

Re:Arrakis by mrmagooey on Wednesday May 21, 2014 @07:03PM (#7781263)
A lot of programs have more complexity than what is immediately obvious:

* The Microsoft office suite has a VB interpreter for every application,

* 3D (Blendr, Rhino) and graphics (gimp) tools have inbuilt python interpreters,

* And, it seems like there's always notes coming out from postgresql about how to deal with os limitations/gotchas

Re:Arrakis by laurent123456 on Thursday May 22, 2014 @01:05AM (#7782210)
But the point still hold. Let's say the script interpreter of MS Office (or gimp or sublime, etc.) needs access to the hard drive. The system, no matter how locked up, still needs to give full access to the hard drive, unless they want to break the app.

From there, the same exploits that were previously possible are possible again - they can, if they break out of whatever sandbox is in place, access everything. I guess the OS might work better for apps that don't need these rights to begin with, but then these apps usually aren't much a problem in regular OSes anyway.

Re:Arrakis by icebraining on Thursday May 22, 2014 @04:21AM (#7782705)
The thing is, parts of the app might need access to the hard drive, but that doesn't mean the whole app needs it. For example, your email client as a whole needs hard drive access, but the email parser just needs a channel to receive the messages and return a data structure, so you can isolate it and then if an email is sent that tried to explore some bug in the parser that achieved code execution, it still couldn't delete or read your files.

For example, see the Chromium architecture: http://www.chromium.org/developers/design-documents/multi-pr...

Re:Arrakis by rat87 on Thursday May 22, 2014 @05:24AM (#7782899)
builtin interpreters doesn't equal an os.

Most of the time the os doesn't have a general purpose interpreter in the kernel even if they have an interpreter for important os functionality(sh/bash/powershell). And even then most of the time these interpreters aren't meant to be embeded in applications.

It's a fair point about postgresql but dbs that need max speed/control at times are an exception not the rule.

Re:Arrakis by magpi3 on Wednesday May 21, 2014 @09:04PM (#7781605)
Most triple AAA video games would qualify as well.
Re:Arrakis by yzzxy on Wednesday May 21, 2014 @11:08PM (#7781921)
Or anything running a off-the-shelf 3D engine like Unity (?or Unreal?).
Re:Arrakis by dangayle on Wednesday May 21, 2014 @07:34PM (#7781364)
Sublime Text has a built-in Python interpreter too
Re:Arrakis by riquito on Wednesday May 21, 2014 @08:07PM (#7781462)
Probably they expose the same interpreter that started Sublime Text. If that is the case than Sublime Text is the complexity added ;-P
Re:Arrakis by pyre on Wednesday May 21, 2014 @05:20PM (#7780856)
It's possible that the operating system on your desktop could take on an entirely different paradigm... E.g.:

         Hardware
            |
          Arrakis
            |
          __|__
         /  |  \
  Browser   |   System Services...
         Wrapper
         /  |   \
       IM  EMail Terminal
Re:Arrakis by nealabq on Wednesday May 21, 2014 @07:42PM (#7781394)
As the OS gets thinner and more like a hypervisor, the apps and app-like VMs get more OS-like. One day the browser might have daemons.

I'd guess at the same time all these pieces will continue to become more distributed. Hypervisors and apps will present distributed environments (storage, processing, failover), even more than they do today.

Re:Arrakis by stephengillie on Wednesday May 21, 2014 @09:13PM (#7781627)
At one time, all an Operating System did was load other programs into memory so the processor would run them instead. All of the sandboxing, garbage collection, security, and other features were added to make it more usable.
Re:Arrakis by pyre on Thursday May 22, 2014 @10:39PM (#7787737)
Correct. The usability gain was not having to (e.g.) write your own printer drivers if you wanted your program to use a printer. But if nowadays (e.g.) printer controllers are smart enough to take on most of the tasks that the OS abstracts from processes running in under it, then maybe we can turn that abstraction into a much thinner layer between the processes and the hardware.
Re:Arrakis by anon4 on Thursday May 22, 2014 @02:55AM (#7782485)
> one day the browser might have daemons

It already does. Just write an extension and schedule a function. The one thing I don't think you can do yet is listen on a socket. At least not without doing a websocket connection to a separate service. Or bringing a native component with you.

Re:Arrakis by icebraining on Thursday May 22, 2014 @04:29AM (#7782731)
Firefox extensions can, and have always could. ChatZilla, for example, does direct access to IRC servers from Mozilla browsers since 2000, but even server sockets are possible[1]. Native components are also possible - they're called XPCOM components. Or you can use js-ctypes[2].

[1] https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/...

[2] https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes

Re:Arrakis by kbenson on Wednesday May 21, 2014 @09:29PM (#7781659)
In linux, I imagine this would be implemented through cgroups. Since in systemd those are starting the play a prominent role in service configuration (for resource limiting and process location and control), this could eventually be quite easy to configure if implemented correctly.
Re:Arrakis by icebraining on Thursday May 22, 2014 @04:33AM (#7782743)
The problem is that cgroups are per-process; they don't allow for isolated areas inside processes that Arrakis is trying to achieve.
Re:Arrakis by nekopa on Wednesday May 21, 2014 @05:19PM (#7780852)
Emacs.
Re:Arrakis by magpi3 on Wednesday May 21, 2014 @09:06PM (#7781610)
And let's be honest: VIM has been heading in this direction for a long time as well, especially now that it had a built in python interpreter.
Re:Arrakis by gcb0 on Thursday May 22, 2014 @01:21PM (#7784962)
Reading the linked page i feel this is geared towards vms. I can only imagine this being convenient for machines running nothing but something like docker
Re:Arrakis by GuiA on Thursday May 22, 2014 @06:49PM (#7787053)
The first example they mention are browsers- not the kind of application you typically run in Docker.
Re:Arrakis by rat87 on Thursday May 22, 2014 @05:26AM (#7782904)
I don't think that's even true for browsers, browsers depend on os functionality such as a filesystem.