Browse by Tags

All Tags » C# » Wacky Ideas (RSS)

C# 4.0: dynamic<T> ?

I've not played with the VS2010 CTP much yet, and I've only looked briefly at the documentation and blogs about the new C# 4.0 dynamic type, but a thought occurred to me: why not have the option of making it generic as a way of saying "I...

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)
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)
Filed under: , ,

Refactris

This post is in lieu of writing a proper one, either on the generic maths operators which Marc Gravell has been hard at work on, or on C# 4 which I have a number of opinions about (no surprise there). I will write about both of those topics, but I really...
Posted by skeet | 5 comment(s)
Filed under: , ,

Group pipelining returns: new and improved design

Last night's blog post provoked a flurry of emails between myself and Marc Gravell. Looking back, trying to base the pipeline on a pseudo-asynchronous version of IEnumerable<T> was a mistake. We've now got a much more attractive interface...
Posted by skeet | 3 comment(s)
Filed under: ,

Don't call us, we'll call you - push enumerators

Update: I've got a new and simpler design now. I'm leaving this in for historical interest, but please see the entry about the new design for more recent information. This post is going to be hard to write, simply because I can't remember...
Posted by skeet | 8 comment(s)
Filed under: , ,

Wacky Ideas 3: Object life-cycle support

No, don't leave yet! This isn't another article about non-deterministic finalization, RAII etc. That's what we almost always think of when someone mentions the object life-cycle, but I'm actually interested in the other end of the cycle - the "near birth...
Posted by skeet | with no comments
Filed under: , ,

Wacky Ideas 2: Class interfaces

(Disclaimer: I'm 99% sure I've heard someone smarter than me talking about this before, so it's definitely not original. I thought it worth pursuing though.) One of the things I love about Java and C# over C/C++ is the lack of .h files. Getting everything...
Posted by skeet | 5 comment(s)
Filed under: , ,

Wacky Ideas 1: Inheritance is dead, long live mix-ins!

(Warning: I've just looked up "mix-in" on Wikipedia and their definition isn't quite what I'm used to. Apologies if I'm using the wrong terminology. What I think of as a mix-in is a proxy object which is used to do a lot of the work the class doing the...
Posted by skeet | with no comments
Filed under: , ,