November 20, 2009

Microsoft previews Rx for asynchronous programming

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.

Read more about developer world in InfoWorld's Developer World Channel.

Paul Krill is an editor at large at InfoWorld.
Close

On Twitter now

Development tools

Powered by Twitter

On Twitter now

additional resources
White Paper - How to Improve Delivery of Advanced Web Applications

White Paper

Virtual Workforce: The Key to Expanding The Business While Cutting Costs

Get the independent advice and expertise you need to support a virtual workforce.

Go inside:
The three-step approach to making a virtual workforce a reality.
The four flavors of client virtualization technologies.
The three key initiatives that solve IT challenges.
Download now »
White Paper: Successfully Secure Your Wireless LAN With Wi-Fi firewalls.

White Paper

Addressing Linux Threats Leveraging Fewer Resources

The increase in Linux popularity has increased the frequency and sophistication of malware attacks. Read this 2 page white paper now to learn how you can protect your Linux environment with real-time protection that is certified by all major Linux vendors.

Download now »
White Paper - The 2009 Handbook of Application Delivery

White Paper

The 2009 Handbook of Application Delivery

Ensuring acceptable application delivery will become even more difficult over the next few years. As a result, IT organizations need to ensure that the approach that they take to resolving the current application delivery challenges can scale to support the emerging challenges. This handbook elaborates on the key tasks associated with planning, optimization, management and control and provides decision criteria to help IT organizations choose appropriate solutions.

Download now »
White Paper - Is Your Backup System Outdated?

White Paper

Mid-range Storage Considerations

A common misconception is that mid-range storage requirements are dramatically different than that of a larger enterprise. Mid-range storage users may require less capacity, but they have similar functionality and management requirements. This ESG paper examines mid-range storage needs and reviews a new solution that adjusts size while retaining value, performance and functionality.

Download now »

Sign up to receive InfoWorld Resource Alerts

Subscribe to the Developer World Newsletter

Receive a weekly roundup about the art and science of software development.

©1994-2010 Infoworld, Inc.