Browse by Tags

All Tags » LINQ (RSS)

An object lesson in blogging and accuracy; was: Efficient "vote counting" with LINQ to Objects - and the value of nothing

Well, this is embarrassing. Yesterday evening, I excitedly wrote a blog post about an interesting little idea for making a particular type of LINQ query (basically vote counting) efficient. It was an idea that had occurred to me a few months back, but...
Posted by skeet | 11 comment(s)
Filed under: , ,

What's in a name?

T.S. Eliot had the right idea when he wrote "The naming of cats" : The Naming of Cats is a difficult matter, It isn't just one of your holiday games ... When you notice a cat in profound meditation, The reason, I tell you, is always the...
Posted by skeet | 23 comment(s)
Filed under: , , ,

Designing LINQ operators

I've started a small project (I'll post a link when I've actually got something worthwhile to show) with some extra LINQ operators in - things which I think are missing from LINQ to Objects, basically. (I hope to include many of the ideas...
Posted by skeet | 16 comment(s)

You don't have to use query expressions to use LINQ

LINQ is clearly gaining a fair amount of traction, given the number of posts I see about it on Stack Overflow . However, I've noticed an interesting piece of coding style: a lot of developers are using query expressions for every bit of LINQ they...
Posted by skeet | 18 comment(s)

November 19th: London .NET User Group, Push LINQ!

On November 19th, I'll be speaking at the London .NET User Group about Push LINQ. I was quite pleasantly surprised by being able to explain it to some extent in Copenhagen, and this evening will be entirely about Push LINQ, so I'll be able to...
Posted by skeet | 6 comment(s)

What other Enumerable extension methods would you like to see?

A few questions on Stack Overflow have suggested to me that there might be some bits missing from LINQ to Objects. There's the idea of a "zip" operator, which pairs up two sequences, for instance. Or the ability to apply the set operators...
Posted by skeet | 25 comment(s)
Filed under: ,

DeveloperDeveloperDeveloper: Registration now open (hurry!)

The registration page for DeveloperDeveloperDeveloper Day 2008 (Reading, November 22nd) is now open. In the past this has been heavily oversubscribed, so if you want to come you'll need to register quickly. I've got a speaking slot in the afternoon...
Posted by skeet | 4 comment(s)

DotNetRocks interview

Last Monday evening I had a chat with the guys from DotNetRocks , and today the show has gone live . I wouldn't claim to have said anything particularly earth-shattering, and regular readers will probably be familiar with many of the themes anyway...

Book review: Pro LINQ - Language Integrated Query in C# 2008, by Joe Rattz

I'm trying something slightly different this time. Joe (the author) has reacted to specific points of my review, and I think it makes sense to show those reactions. I'd originally hoped to present them so that you could toggle them on or off,...
Posted by skeet | 16 comment(s)
Filed under: , ,

Logging enumeration flow

I'm currently reading Pro LINQ: Language Integrated Query in C# 2008 by Joe Rattz and yesterday I came across a claim about Enumerable.Intersect which didn't quite ring true. I consulted MSDN and the documentation is exactly the same as the book...
Posted by skeet | 12 comment(s)
Filed under: , ,

Mandelbrot revisited - benchmark edition

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...
Posted by skeet | 11 comment(s)

Odd query expressions

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...
Posted by skeet | 4 comment(s)
Filed under: ,

Implementing deferred execution, and a potential trap to avoid

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...
Posted by skeet | with no comments
Filed under: ,

Data pipelines as a conceptual stepping stone to higher order functions

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...
Posted by skeet | 4 comment(s)
Filed under: ,

Visualising the Mandelbrot set with LINQ - yet again

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...
Posted by skeet | 3 comment(s)

LambdaExpression - source code would be nice

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 ...
Posted by skeet | 5 comment(s)
Filed under: ,

Visual LINQ: Watch query expressions as they happen!

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...
Posted by skeet | 18 comment(s)
Filed under: ,

Human LINQ

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...
Posted by skeet | 6 comment(s)
Filed under: ,

Extension methods on lamdba expressions don't work, unfortunately

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...
Posted by skeet | 3 comment(s)
Filed under: ,

LINQ to Objects - not just for in-memory collections

I've just seen LINQ to Objects described as the LINQ provider for "in-memory collections" again. It's a fairly frequent occurrence, and I may have done it myself on occasion. It doesn't do LINQ to Objects justice. An example I've...
Posted by skeet | with no comments
Filed under: ,
More Posts Next page »