Paul Krill
Editor at Large

Microsoft previews Rx for asynchronous programming

news
Nov 20, 20092 mins

Extensions to .Net are featured on DevLabs site

Microsoft is previewing extensions for .Net catering to asynchronous and event-based programming.

The company’s Rx (Reactive Extensions for .Net), downloadable from Microsoft’s DevLabs site, enable programmers to write “succinct declarative code to orchestrate and coordinate asynchronous and event-based programs based on familiar .Net idioms and patterns,” S. Somasegar, senior vice president of the Microsoft developer division, said in a blog entry.

[ Read InfoWorld’s report this week on Silverlight 4. ]

“Rx has a strong theoretical basis by using the duality between the classic Iterator and Observer design patterns to simplify controlling asynchrony. By combining the expressiveness of LINQ (Language Integrated Query) with the elegance of category theory, Rx allows programmers to write asynchronous code without performing cruel and unnatural acts,’ Somasegar said.

Iterator design patterns, according to Microsoft, provide an idiomatic way of writing code where an enumerator accesses elements of a collection by pulling elements of a collection. Observer patterns involve writing code where an observer is notified of changes in the collection, providing a push-based collection.

The Reactive Extensions can be used from any .Net language, including F#. Microsoft’s Silverlight Toolkit uses Rx to power the Silverlight Toolkit Drag and Drop framework, Somasegar said. The framework features a subset of Windows Presentation Foundation APIs for initiating and interacting with drag operations.

This story, “Microsoft previews Rx for asynchronous programming,” was originally published at InfoWorld.com. Follow the latest developments in application development at InfoWorld.com.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author