GrantRi's WebLog [MS]

Ramblings of a compiler geek

Browse by Tags

Tagged Content List
  • Blog Post: Anonymous Method Usage

    So now that Beta 1 has been out and fairly widely availible for a while, how do you use anonymous methods? When I was working on them I saw several contrived examples. I saw several that seemed more like abuses than legitimate uses. In my earlier posts I pointed out some of the problems the compiler...
  • Blog Post: More thoughts on Iterators

    So I had a short email exchange with a collegue about iterators. He mentioned that I should put in in my blog. Seemed reasonable, so here it is: Subject: Iterator generated code ... I'm looking at porting a hand-coded enumerator to use iterators (this is for a sample and maybe an...
  • Blog Post: Remoting...

    First off, I don't even pretend to have a good comprehension of how remoting works. What I do know is that right now the compiler generated classes derive directly from Object, and somehow this is bad for remoting, instead they should derive from MarshalByReferenceObject. On the surface that is a...
  • Blog Post: A good author writes better than a good developer

    So here's a recent MSDN article that I actually had the chance of reviewing several months ago. They've done a much better job at capturing the good new stuff in C# than I could ever do. http://msdn.microsoft.com/vcsharp/default.aspx?pull=/msdnmag/issues/04/05/c20/default.aspx I do still have a...
  • Blog Post: Some Cool New Features

    I've been looking over some of my last few posts and they could easily come across as if I thought iterators and anonymous methods were the worst language features every added, and will never serve a good purpose. If anything I think the opposite (or else I wouldn't have spent so much time on them)....
  • Blog Post: Anonymous Method Identity Crisis

    Delegates, like strings, have done some work so that == behaves as expected, rather than as it should. A delegate can be thought of as a tuple of the instance (or lack-of-instance in the case of delegates to static methods) and the method it invokes. As long as those two items are the same, then the...
  • Blog Post: Anonymous method (and Iterator) perf

    probably a few of you hav asked how to make iterators and anonymous methods fast. Well hopefully if you understand how the compiler translates them, it should be relatively easy to optimize them. The first thing to remember is that for all practical purposes the C# compiler does not have an optimizer...
  • Blog Post: Anonymous Methods: Alternate Syntax

    A few of you have suggested alternate syntaxes for anonymous methods or just complained about their syntax. Believe it or not syntax is very heavily discuess by the language design team (of which I am only an occasioanlly invited guest). Iterators almost got cut because they couldn't come up with a good...
  • Blog Post: Anonymous Method Part 2 answers

    I think the winner is Jerry Pisk. His final comment I think does the best job of explaining, what I was trying to explain. Thanks Jerry. I also partially agree with Jerry's first comment, namely anonymous methods can be confusing and lead to poor readability and general mis-use. However, I also believe...
  • Blog Post: Anonymous Methods, Part 2 of ?

    A lot of people seem to have trouble grasping how anonymous methods affect the lifetimes of locals. SO hopefuly I can clarify that a little. Previous to anonymous methods, the lifetime and the visibility of a local were identical for all practical purposes. Because of the visibility restrictions, there...
  • Blog Post: Anonymous Methods, Part 1 of ?

    Although I was involved in many of the language design meetings, I don't think I can claim much of the credit for the actual design of the feature in the language spec. There were a few technical gotchas that I discovered and proposed solutions to, and I'll try to remember to point them out as appropriate...
Page 1 of 1 (11 items)