Browse by Tags
All Tags »
SELA (
RSS)
The 3rd day of the SDP was over and I want to thanks all the attendants. my yesterday session was about C# 5 async and await . today I will have a full day tutorial on Rx and TPL Dataflow . you can download the demo code and also the presentation for second and third days from here (the link is also having the demo code for today's sessions). anyway, I also want to recommend 2of yesterday session. if you were attend at the conference you should have an access to the sessions video page. first...
Async / Await for .NET 4, Silverlight and Windows Phone if you have to target .NET 4, Silverlight and Windows Phone and still want to use the async / await pattern. the BCL team provide you with a new NuGet package named Microsoft.Bcl.Async . this package was announced as stable a few week ago. so you can check it out if you're having VS 2012 but should target one of the above platforms. be aware that this package won't work with 2010.
EF should adopt the WAQS framework I was speaking with Matthieu MEZIL about his WAQS framework, it is a layer of abstraction over the Entity Framework which I think you should check out. Matthieu is working on it on his free time (currently as an open source) and it is amazing to see what he was able to achieve. this framework is already been in used by some of real word company and it is improving over time (today Matthieu is working on a new version of it). as I see it, Microsoft EF team should...
the second day of the SDP was over and I want to thanks all the attendants of my sessions. at day 1 I was giving a full day on TPL , I was covering lot of API, tools and techniques. the demo codes for this session can be found at http://sdrv.ms/1283vDW the second day session was about .net 4.5 / VS 2012 new features , tolling and overloads for parallel programming. the code sample for this session can be found at http://sdrv.ms/18NeNje tomorrow I will talk about the new C# 5 parallel syntax (async...
EF 6: Async this post is the first in a series about what's new in EF 6 . great improvements are about to come with Entity Framework 6 . it is a major release and the first one since EF become an open source. each post in the series will be dedicate to a single feature. this post will focus on a new EF a-sync features. the first question that should be asked is, why do we need parallel data access ? moreover why do we need a dedicate parallel data access API , rather then using the TPL Task.Run...
Parallel and The C# Memory Model Parallel programming can be tricky , both compiler and CPU's optimization can lead into a twilight zone's debugging. lets take the following code snippet snippet: Code Snippet class Program { static void Main( string [] args) { Console .WriteLine( "Start" ); var u = new Util (); u.Exec(); Console .ReadKey(); } } public class Util { private bool _stop = true ; public void Exec() { Task t = Task .Run(() => { bool b = true ; while (_stop) { b = ...
Immutable Collections Immutability is a pattern which is suit well parallel programming , but you have to be aware of a potential memory pressure risk when it's not implemented right or used wisely. this post will cover a new BCL library (still in its preview stage) which is targeting immutable collections . .NET is already having Concurrent implementation for Queue, Stack, Bug and Dictionary, which is thread-safe , but other type of collection like List is missing. another type of collection...
MEF 2.0 - mini series: part 8 (Composition options and exception handling) this is the last post in the MEF 2.0 mini series. you can see other posts of this series in here . this post will wrap-up the series with a quick survey to to the to some changes made for the underline composition process. Exception one of the most painful experience of MEF 1 was its misleading exception's description . some time it was really hard to figure out the exception roots. you can read more about MEF 1...
The problem of animals and foods this is a short post that is dealing with a classic riddle. I was thinking on this riddle when I was trying to figure out a Scala feature. we are having (at Sela Group) a small Scala study group led by Israel Tabadi and while we were going over Scala's abstract type (which is by the way a cool implementation) I was thinking about the .NET equivalent solution. I will use the problem of " animals and foods " (taken from here ) as an anchor's point...
MEF 2.0 - mini series: Part 7 (Catalog filter and Deep hierarchic scoping) this is the 7th post in the MEF 2.0 mini series. you can see the following TOC for other posts in this series. in the previous post I was talking about composition scoping and lifetime management. on this one, I will extend the composition scoping topic toward hierarchic along with catalog filtering capability. hierarchic scoping is not trivial, you must understand the hierarchic behavior and what it was design for. MEF hierarchic...
This Week On Channel 9 my blog was manage to get on Channel 9 week's top developer news .
MEF 2.0 - mini series: part 6 (Composition scoping and lifetime management) this is the 6th post in the MEF 2.0 mini series. you can see the following TOC for other posts in this series. in this post I will cover a new concept of scoping and part lifetime management , which is a great improvement over MEF 1. MEF 1 was coming with a fairly naïve lifetime management . part's lifetime could be either shared or non-shared ( you could also apply 'any' but eventually 'any' will be created...
MEF 2.0 - mini series: part 5 (Fluent export properties) this is the 5th post in the MEF 2.0 mini series. you can see the following TOC for other posts in this series. in this post I will cover the fluent property's export . Exporting properties is a less known feature of MEF . MEF 1 was supporting this feature by using the attribute model. you could decorate a property with a [Export] attribute and then it become available for imports. the following code demonstrate property exporting in MEF...
Open House at Microsoft yesterday I was lecturing at Microsoft about VS 2012, .NET 4.5, async/await, Rx and TPL Dataflow. there was 90 people attended and I hope that everybody has learn something new. the code sample for this lecture available here .
Async and AggregateException this post is a complementary to Eran Stiller's post . I was reading Eran Stiller's post about exception handling using async methods and I want to add a few side notes. 1) the exception handling behavior decisions is well documented in this post (by the TPL team), it decided after they had consider different options. 2) I was suggesting that compiler will check whether the a catch of AggregateException is implemented and if so to avoid the unwrapping behavior...
More Posts
Next page »