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!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Tags MicrosoftsoftwareAccessapplication developmentDeveloper WorldMicrosoft Visual StudioDevelopment Methodologies

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

Paul Krill

InfoWorld
Show Comments

Father’s Day Gift Guide

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Luke Hill

MSI GT75 TITAN

I need power and lots of it. As a Front End Web developer anything less just won’t cut it which is why the MSI GT75 is an outstanding laptop for me. It’s a sleek and futuristic looking, high quality, beast that has a touch of sci-fi flare about it.

Emily Tyson

MSI GE63 Raider

If you’re looking to invest in your next work horse laptop for work or home use, you can’t go wrong with the MSI GE63.

Laura Johnston

MSI GS65 Stealth Thin

If you can afford the price tag, it is well worth the money. It out performs any other laptop I have tried for gaming, and the transportable design and incredible display also make it ideal for work.

Andrew Teoh

Brother MFC-L9570CDW Multifunction Printer

Touch screen visibility and operation was great and easy to navigate. Each menu and sub-menu was in an understandable order and category

Louise Coady

Brother MFC-L9570CDW Multifunction Printer

The printer was convenient, produced clear and vibrant images and was very easy to use

Edwina Hargreaves

WD My Cloud Home

I would recommend this device for families and small businesses who want one safe place to store all their important digital content and a way to easily share it with friends, family, business partners, or customers.

Featured Content

Product Launch Showcase

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?