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.
Get the independent advice and expertise you need to support a virtual workforce.
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 »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 »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
