InfoQ

News

Singularity: Microsoft's Open Source Operating System

Posted by Jonathan Allen on Nov 18, 2008 08:49 AM

Community
.NET
Topics
Open Source ,
Research ,
Operating Systems
Tags
Singularity

The Singularity project was started in 2003 as a fundamental redesign of how operating systems work. From the ground up everything is based on the concepts of isolation and verifiability.

Processes are highly isolated from one-another. Communication is done strictly via type-safe channels, shared memory of any form is not allowed. Processes are "sealed", meaning they cannot dynamically load or generate code. This has the advantage of making virus injection virtually impossible, at the cost of not being able to use dynamic link libraries or meta-programming techniques.

Other than a small part of the kernel, the bulk of Singularity is written in the type-safe language Sing#. Instead of platform specific assembly languages, Singularity uses .NET's IL as the lowest common denominator. Singularity will not even try to load unmanaged applications.

The first 2.0 release includes the full source code tree and a bootable CD image. A Virtual PC file is also available in this release.

In an unusual move by Microsoft, Singularity is soliciting patches and offering full developer rights on CodePlex.

We're also looking to increase community participation in the RDK 2 - so if you're using the RDK for something cool, let us know on the Discussions tab, and submit Patches on the Source Code tab. Patches will be integrated into the codebase, so that other RDK users can take advantage of your work. We will grant Developer permissions to frequent contributors to help streamline their contributions and let the users drive the future of the RDK.

1 comment

Reply

OSS? No DLLs? No meta-programming? Really? by Stefan Wenig Posted Nov 18, 2008 9:06 AM
  1. Back to top

    OSS? No DLLs? No meta-programming? Really?

    Nov 18, 2008 9:06 AM by Stefan Wenig

    it's not quite OSS: www.codeplex.com/singularity/license
    Microsoft Research License Agreement
    Non-Commercial Academic Use Only

    And I think that "at the cost of not being able to use dynamic link libraries or meta-programming techniques" is a harsh misinterpretation. First, in .NET all libaries are DLLs, even if they are statically referenced. I'd assume that it's the same in Singularity, so this would just prevent us from loading add-ins at runtime in the same process. Second, meta-programming is probably just requiring setting up new processes too, which Singularity should be good at (static verification makes memory boundaries unnecessary, leading to faster process launches and context switches).

    I hope MS is following this path. In a world of virtualization, there might be a sensible, practical path to a new OS paradigm.

Educational Content

JRuby: The Pain of Bringing an Off-Platform Dynamic Language to the JVM

Charles Nutter discusses bringing JRuby to the JVM, why Ruby is hard to implement, JIT compilation, precompilation, core Ruby implementation, Java library access, library challenges and future plans.

Performance Anti-Patterns in Database-Driven Applications

Alois Reitbauer specifies several architectural anti-patterns that one should stay away from and which can downgrade an application’s performance.

Making TDD Stick: Problems and Solutions for Adopters

Teams in large organizations still struggle to adopt TDD. In this article Mark Levison shares problems he uncovered when he surveyed teams, and his own strategy to introduce TDD into an organization.

Testing is Overrated

In this talk from RubyFringe, Luke Francl asks: is developer-driven testing really the best way to find software defects? Or is the emphasis on testing and test coverage barking up the wrong tree?

VM Optimizations for Language Designers

John Pampuch discusses the HotSpot compiler, the history of Java performance, HotSpot development philosophies and challenges, optimization, JVM library improvements, and tips for better performance.

Keith Braithwaite, an Agile Skeptic

In this interview, Keith Braithwaite, an Agile developer, consultant and trainer, says that we should show a good deal of skepticism towards today’s Agile practice.

Workflow Orchestration Using Spring AOP and AspectJ

This article demonstrates how to build and orchestrate highly configurable and extensible yet light-weight embedded process flow using AOP techniques with Spring AOP and Aspect J.

Embrace Uncertainty

Jeff Patton explains why one needs to embrace uncertainty in order to succeed with his/her Agile project and how to avoid some of the common mistakes leading to project failure.