Microsoft hails async programming for Visual Basic, C#

Visual Studio Async aims to make asynchronous programming more approachable so code is as easy to write and maintain as with synchronous code

Microsoft is fitting its Visual Basic and C# languages with an asynchronous programming model to help developers accommodate the growing complexity in applications.

With the release of its Visual Studio Async CTP (Community Technology Preview)  this week, the company is providing an example of an asynchronous programming pattern, said S. Somasegar, senior vice president of the Microsoft Developer Division, in a blog post.  Accessible for download at this website, Visual Studio Async CTP features a streamlined syntax for asynchronous development, extending Visual Studio 2010.

[ Also on InfoWorld: Microsoft pitched Windows Azure and Windows Phone 7 at its Professional Developers Conference. |  Keep up with the latest app dev news with the Developer World newsletter. ]

"Today, we are unveiling significant language and framework enhancements in C# and Visual Basic that enable developers to harness asynchrony, letting them retain the control flow from their synchronous code while developing responsive user interfaces and scalable web applications with greater ease," Somasegar said.

"Writing applications that effectively handle long latencies can be a daunting challenge.  As software applications grow more complex, more developers are building software that accesses remote resources, performs longer computations, and processes large data sets," Somasegar said. "Tasks we used to think of as being quick now may take orders of magnitude longer to complete or may never complete.  Without special care taken to manage conditions that may arise from these latencies, applications can become unresponsive or unable to scale.

"To accommodate these conditions, C# and VB are adopting a new asynchronous programming model," Somasegar said.

During a session at the Microsoft Professional Developers Conference in Redmond, Wash. on Thursday, Anders Hejlsberg, Microsoft Technical Fellow, discussed the company's intentions to add asynchrony to the next versions of the two languages.

"[The] advantages of asynchrony are you get more responsive UIs because your UI can do other stuff while it is waiting for the results of an asynchronous operation," Hejlsberg said. "But also in servers, you get better scalability because you can free up threads when they're not doing any work because they're waiting for asynchronous requests."

While existing asynchronous paradigms offer ways to work with I/O and other high-latency operations without blocking threads, current patterns can be difficult to understand and can complicate simple operations with callbacks and custom-exception handling. This can result in error-prone code, Somasegar said.

"With Async, our goal now is to make asynchronous programming far more approachable so asynchronous code is as easy to write and maintain as synchronous code. Making your code asynchronous should require only simple changes and should be possible to implement in a non-disruptive manner in your code," Somasegar said. 

Language and framework enhancements from Microsoft will help developers harness asynchrony in C# and Visual Basic, Somasegar said.

This article, "Microsoft hails async programming for Visual Basic, C#," was originally published at InfoWorld.com. Follow the latest developments in business technology news and get a digest of the key stories each day in the InfoWorld Daily newsletter.

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

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

Tags application developmentDevelopment MethodologiesDeveloper WorldMicrosoftsoftwareMicrosoft Visual StudioAccess

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Paul Krill

InfoWorld
Show Comments

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

David Coyle

Brother PocketJet PJ-773 A4 Portable Thermal Printer

I rate the printer as a 5 out of 5 stars as it has been able to fit seamlessly into my busy and mobile lifestyle.

Kurt Hegetschweiler

Brother PocketJet PJ-773 A4 Portable Thermal Printer

It’s perfect for mobile workers. Just take it out — it’s small enough to sit anywhere — turn it on, load a sheet of paper, and start printing.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?