Hacker News new | ask | show | jobs
by ant6n 3841 days ago
How about an operating system that doesn't execute native code directly anymore. No Segfaults. All programs live in the same VM space.
2 comments

It's pretty much dead now, but Microsoft Research had a project called Singularity (http://research.microsoft.com/en-us/projects/singularity/). It's an entire OS implemented in Spec#, which is a subset of C# + Code Contracts. It was built so that contracts between programs could be statically verified when compiled, allowing applications to all run in the kernel's address space.
Isn't that kind of what Android does?
Well, if the JVM was the basic layer of the operating system, then yes. But really it's some form of Linux, there's a lot of native code running, system calls, user and kernel mode etc. Apps can use native code too.