Microsoft Open Technologies (MS Open Tech) is open sourcing Reactive Extensions (Rx), a programming model developed by Microsoft architect Erik Meijer that allows developers to glue together asynchronous data streams. As independent developer Dave Sexton puts it, "If asynchronous spaghetti code were a disease, Rx is the cure."
White PapersMore >>
- SaaS and E-Discovery: Navigating Complex Waters
- SaaS 2011: Adoption Soars, Yet Deployment Concerns Linger
- How to Stop Web Application Attacks
- Big Data and Customer Interaction Analytics: How To Create An Innovative Customer Experience
NOTE: Launched as a company subsidiary in April 2012 under the watchful eye of XML co-inventor and interoperability champion Jean Paoli, Microsoft Open Technologies is hoped to help major open source projects get better access to Windows code.
The Reactive Extensions (Rx) programming model is "particularly useful" in cloud programming because it creates a common interface for writing applications that stem from different, diverse asynchronous data sources. Data in this regard could come from (for example) stock quotes, Tweets, computer events (as in events, not get-togethers), and perhaps even web service requests.
The Rx source code will be hosted on the Microsoft open source code repository CodePlex to (hopefully) increase the community of developers seeking a more consistent interface to program against that works across several development languages. Its existence on CodePlex means that it is, logically and happily, also open to community contribution.
So why has Microsoft done this? Well, the goal of open sourcing Rx is essentially to expand the number of frameworks and applications that use Rx. This will achieve better interoperability across devices and the cloud.
According to Dave Sexton's blog, "It's a solid library built around core principles that hides much of the complexity of controlling and coordinating asynchrony within any kind of application. Opening it will help to lower the learning curve and increase the adoption rate of this amazing library, enabling developers to create complex asynchronous queries with relative ease and without any spaghetti code left over."
The following libraries are available on CodePlex:
- Rx.NET: The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators.
- Rx++: The Reactive Extensions for Native (RxC) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators in both C and C++.
- Ix: The Interactive Extensions (Ix) is a .NET library that extends LINQ to Objects to provide many of the operators available in Rx but targeted for
- Ix++: An implementation of LINQ for Native Developers in C++.
- Tx: A set of code samples showing how to use LINQ to events, such as real-time standing queries and queries on past history from trace and log files, which targets ETW, Windows Event Logs, and SQL Server Extended Events.
- LINQ2Charts: An example for Rx bindings. Similar to existing APIs like LINQ to XML, it allows developers to use LINQ to create/change/update charts in an easy way. We would love to see more Rx bindings like this one.
- With these libraries we are giving developers open access to both push-based and pull-based data via LINQ in Microsoft's three fundamental programming paradigms (native, JScript, and Managed code).