Musings, Written on Infinite Tape

Wednesday, September 15, 2004

CLR 2.0 Toys

Brad Abrams, Microsoft's Lead Program Manager for .NET, gave a talk on some of the new features of CLR 2.0.

Console apps are going to get color, transitions and 'animations', keystroke events, and some other features to allow for real .NET console development. He made up a "Console Invaders" game as an example. (That should be on his blog shortly.)

He talked more about the support for .NET stored procedures. SQL 2005 pulls this off by actually hosting the CLR in-proc, and they had lots of demands on the CLR time to provide maximum uptime. When you've got a problem to solve, he recommends taking a close look at whether to use T-SQL or a .NET language, because each implementation path is better for a specific subset of problems.

Delegate invocation is now up to 2 times faster.

They've added, for example, int32.TryParse, which returns a success boolean rather than throwing an exception when it can't parse the input. Much, much faster.

They've added the ability to notify the garbage collector that you've allocated a big chunk of unmanaged space (GC.AddMemoryPressure), causing the garbage collector to dispose of the object more quickly.

Classes can now have some special debugging attributes. DebuggerDisplay allows you to replace the ToString display when inspecting an object with a different format. DebuggerProxyClass allows for a reformatted, easier to read list of fields in the debugger (though you can get back to the raw view with a click).

1 Comments:

  • Brian! Where are you?! Troy misses you! He's wandering around like a lost puppy!

    By Blogger Chris, at 2:28 PM  

Post a Comment

<< Home