I've had fun with the Mandelbrot set in this blog before, using it as an example of an embarrassingly parallelisable problem and demonstrating Parallel LINQ with it. This morning, over breakfast, I described the problem to Christian Brunschen , a colleague of mine who has some parallelisation experience...
Yesterday, I was proof reading chapter 11 of the book (and chapter 12, and chapter 13 - it was a long night). Reading my own text about how query expressions work led me to wonder just how far I could push the compiler in terms of understanding completely bizarre query expressions. Background Query expressions...
When talking about LINQ recently, I doodled an implementation of OrderBy on a whiteboard. Now, I know the real OrderBy method has to support ThenBy which makes life slightly tougher, but let's suppose for a moment that it didn't. Let's further suppose that we don't mind O(n 2 ) efficiency...
I was explaining data pipelines in LINQ to Objects to a colleague yesterday, partly as the next step after explaining iterator blocks, and partly because, well, I love talking about C# 3 and LINQ. (Really, it's becoming a serious problem. Now that I've finished writing the main text of my book...
I've been thinking about ranges again, particularly after catching a book error just in time, and looking at Marc's generic complex type . It struck me that my previous attempts were all very well, and demonstrated parallelisation quite neatly, but weren't very LINQy. In particular, they...
Just taking a quick break from proof-reading to post a thought I had yesterday. Visual LINQ uses ToString() to convert an expression tree's body into readable text. In some cases it works brilliantly, reproducing the original source code exactly - but in other cases it's far from useful. For...
Critical link (in case you can't find it): Source Code Download Update: Dmitry Lyalin has put together a screencast of Visual LINQ in action - it gives a much better idea of what it's like than static pictures do. There's music, but no speech - so you won't be missing any important information...
Last night I gave a talk about C# 3 and LINQ, organised by Iterative Training and NxtGenUG . I attempted to cover all the features of C# 3 and the basics of LINQ in about an hour and a half or so. It's quite a brutal challenge, and obviously I wasn't able to go into much detail about anything...
Like I said before , this as been on the back of my mind for a while. A while back I introduced a way to get the MethodInfo of a method in a strongly typed way using LINQ , and that's how I'm going to make Reflective Mocks more Natural . Well, it's as easy as this: public static class MockExtender...
Posted to
Paulo Morgado
(Weblog)
by
Paulo Morgado
on
01-31-2008
Filed under: .NET, SoftDev, C#, Microsoft, MSDN, MVP, Tools, Testing, LINQ, UnitTests, TypeMock
Over the Christmas holidays, I thought I'd experiment with something I'd been thinking about a little - sorting a generic IList<T> . Now, before anyone gets huffy, I'm well aware of OrderBy in LINQ to Objects. However, sometimes you want to sort collections in-place, and as IList<T>...