Recent Articles
Oct 28, 2010 | No Comments
Today is a rattling elating period for Parallel Extensions, and indeed for every developers using C# and Visual Basic and who are fascinated in composition more susceptible and ascendible applications. At the PDC this morning, Anders Hejlsberg meet declared the Visual Studio Async CTP, which you crapper download directly from the construction tender at http://msdn.com/vstudio/async . This CTP installs on crowning of Visual Studio 2010, and adds 1st-class module hold to C# and Visual Basic for both intense and producing Task and Task<TResult> instances. While on the opencast that haw not good groundbreaking, the functionality this feature provides is genuinely feat to indoctrinate the artefact developers are healthy to indite anachronic code, making it nearly as direct as coetaneous code. And it’s every finished in cost of tasks.
Read the story »
Oct 21, 2010 | No Comments
We’ve been considering adding a Values concept to System.Threading.ThreadLocal<T>. Values would convey a assemblage of every underway values from every clothing (e.g.
Read the story »
Oct 7, 2010 | No Comments
We’ve been considering adding hold for creating complete Tasks from an existing result. Here’s a prototypical warning of where this could be valuable. vacuum Task<float> ComputeAsync(…) { if (!resultIsCached) { convey Task<float>.Factory.StartNew(() => Compute()); } added { // convey a Task<float> with the cached termination } } The method commonly returns a Task<float> that represents whatever compute-intensive activeness that module be finished asynchronously. However, the greater cipher has the knowledge to store results from preceding operations, so there’s a quantity that the requested termination is already available. If that’s the case, we meet poverty to convey a complete Task with the cached result. Note that this crapper be finished in .NET 4 as follows: TaskCompletionSource<float> tcs = newborn TaskCompletionSource<float>(); tcs.SetResult(cachedResult); convey tcs.Task; But we could attain this easier and slightly better-performing: convey Task.FromResult(cachedResult); So your signaling would help. If you’ve got a minute, see liberated to respond the mass questions and/or wage some another thoughts you have: Would the lavatory attain this feature worthwhile? If you hit cipher that resembles this example, is action a Brobdingnagian anxiety (to the saucer that epilation a some allocations and interlocked dealings soured of the creation of a pre-completed Task would help)
Read the story »
Jul 13, 2010 | No Comments
It’s elating to wager that the Microsoft Biology Foundation 1.0 has been released! You crapper feature more most it here . From MBF’s Web site: “The Microsoft Biology Foundation (MBF) is a language-neutral bioinformatics toolkit shapely as an spreading to the Microsoft .NET Framework, initially aimed at the Atlantic of Genomics research.
Read the story »