Sign In
GrantRi's WebLog [MS]
Ramblings of a compiler geek
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
64-Bit
ALink
Anonymous Methods
C# Language
Error Messages and Warnings
House and Home
Iterators
Resources
Work
Archive
Archives
August 2005
(1)
June 2005
(1)
May 2005
(1)
March 2005
(1)
January 2005
(1)
December 2004
(7)
October 2004
(2)
September 2004
(3)
August 2004
(4)
July 2004
(4)
June 2004
(7)
May 2004
(5)
April 2004
(11)
March 2004
(14)
February 2004
(3)
January 2004
(2)
March, 2004
MSDN Blogs
>
GrantRi's WebLog [MS]
>
March, 2004
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
GrantRi's WebLog [MS]
A good author writes better than a good developer
Posted
over 8 years ago
by
Grant Richins
2
Comments
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...
GrantRi's WebLog [MS]
Warning Levels
Posted
over 8 years ago
by
Grant Richins
0
Comments
It's not documented very well, but the C# compiler actually has 4 levels of warnings. I like to think of them this way: Level 1 - These warnings are cases the compiler is 99.9% sure you did something wrong, but the code is syntactically and semantically...
GrantRi's WebLog [MS]
Some Cool New Features
Posted
over 8 years ago
by
Grant Richins
6
Comments
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...
GrantRi's WebLog [MS]
Anonymous Method Identity Crisis
Posted
over 8 years ago
by
Grant Richins
0
Comments
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....
GrantRi's WebLog [MS]
Recursive Iterators (aka Perf killers)
Posted
over 8 years ago
by
Grant Richins
3
Comments
Technically this isn't specific to iterators, but its so much easier to do with iterators that I thought I'd mention it. Some languages are smart enough to 'flatten' iterators, such that if an iterator is called insde of another iterator, only one iteration...
GrantRi's WebLog [MS]
Why I'm a software engineer...
Posted
over 8 years ago
by
Grant Richins
3
Comments
I'll be the first one to admit I'm lazy. I purposefully avoid meaningless manual labor. Things done solely to look better or or impress others generally fall into the category of meaningless. In high school I was socially adept enough to realize I wasn...
GrantRi's WebLog [MS]
Inform Me!
Posted
over 8 years ago
by
Grant Richins
2
Comments
I'm rather new to blogging (in case you haven't noticed). This web site has “posts” and “articles”. What's the difference? Should any of my past posts been articles? Does anybody care? --Grant
GrantRi's WebLog [MS]
Anonymous method (and Iterator) perf
Posted
over 8 years ago
by
Grant Richins
0
Comments
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...
GrantRi's WebLog [MS]
Anonymous Methods: Alternate Syntax
Posted
over 8 years ago
by
Grant Richins
2
Comments
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...
GrantRi's WebLog [MS]
To optimize or not to Optimize?
Posted
over 8 years ago
by
Grant Richins
4
Comments
So with the CLI all compilers suddenly have a great code-generator. However, the code-generator is generally where most if not all optimizations occur. Now some of those optimizations should only happen in the code generator because they are machine specific...
GrantRi's WebLog [MS]
Error Number Trivia
Posted
over 8 years ago
by
Grant Richins
3
Comments
Have you ever wondered how we come up with the error and warning numbers? Well if you've looked at the SSCLI source for the C# compiler, you'll see that we use a file full of macros to define the error numbers, their severity, and the resource ID that...
GrantRi's WebLog [MS]
Anonymous Method Part 2 answers
Posted
over 8 years ago
by
Grant Richins
0
Comments
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...
GrantRi's WebLog [MS]
Anonymous Methods, Part 2 of ?
Posted
over 8 years ago
by
Grant Richins
9
Comments
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...
GrantRi's WebLog [MS]
Compiler Error Messages Clarification
Posted
over 8 years ago
by
Grant Richins
0
Comments
First of all, I am not acutally talking about decreasing or removing any errors (unless somebody can prove that a given error is a total duplicate of another one, but I seriously doubt that). I'm really talking about how big an error message can be before...
Page 1 of 1 (14 items)