Sunday, June 08, 2008

I had done the attendee party at TechEd 2005, and was completely blown away by it then.  I had no idea they’d actually bought out all of universal studios for 3-4 hours, with complimentary food and booze every 100 feet or so.  This led me to have the same expectations for this year’s party, which unfortunately was still cool, but not nearly as cool as 2005.  It seems half the park was rented out to another event, and that half happened to include the Mummy ride and some other cool stuff.  I think 2005’s party was longer than 8-11pm.  Still, complaining aside, it’s a very fun event: free drinks all over place tons of food including giant BBQ turkey legs this year (you’d have to see it…) and lots of stuff to do including Terminator, Jaws, Men in Black, etc. 

I got several bits of merchandise for my daughter and some Microsoft crawlers for my son. 

Sunday, June 08, 2008 5:11:38 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Saturday, June 07, 2008

I did two very hard-core sessions on WPF today.  The first was with Tim Huckaby on WPF data visualization applications.  Some of the coolest WPF 3d that I’ve seen.  Oddly enough, he mentioned that the Scrips Research Institute had entered a patent last year that effective cures cancer.  The problem is that the host is killed 100% of the time too, but still very promising.

For the sub-genius line of business developer, WPF is the closest thing you can get to being paid to write video games without actually going back to C++ and slaving away in the video game industry.

Besides the formal sessions, one great aspect of TechEd is your ability to walk around the exhibition floor to talk with people from various teams at Microsoft.  I made it my mission to talk to as many people as possible.

·         ADO.Net Entity Framework:  Very cool.  The objects are not dumb CLR objects, but this MAY BE what I’ve been looking for.  I’ve always been a fan of the ORM and only once, in Java, did I have one (OJB) that I felt was the right mix of features and intrusiveness. I’m eagerly awaiting a production-ready MySQL EDM plugin.  In the mean while, to play with this, I think I’ll convert KlipschCorner.com to use this.  The programming model and LINQ queries felt very natural.

·         Visual Studio extensibility: there’s a World of Warcraft script plug-in for Visual Studio! 

·         ClickOnce: things are a lot better in SP1, but you still have issues with self-signed SSL certs and Internet+non NTLM authentication and of course keeping people from getting your bits if they shouldn’t have access.  It was good to see that people like Quicken and GoTo Meeting are using ClickOnce to deploy software over the Internet.

·         WPF: I met the principal architect behind XAML.  We looked at some amazing spatial data applications including:

o   Zurich airport: http://blogs.msdn.com/tims/archive/2007/03/27/great-wpf-applications-13-z-rich-airport.aspx  

o   iZooFari: http://www.interknowlogy.com/Pages/iZooFari.aspx

·         ArcCast : Let’s just say there was some friendly arguments and teasing.  You know who you are.

·        Live Earth: The bird’s eye view 3d maps are freaking insane.

Saturday, June 07, 2008 1:13:15 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Thursday, June 05, 2008

Ok, so, I found some great Silverlight tips on the afternoon of Day two courtesy of Jeff Prosise (http://www.wintellect.com/TechnicalBioDetail.aspx?Tech=5) .   I am definitely going to be taking his advice on some points and blogging about it as I convert my Beta 1 examples to Beta 2 examples.  Jeff had an implementation of The Game of Life in Silverlight that got me thinking about getting some Concurrency peanut butter into the Silverlight chocolate.  Would the LINQ based ray tracer work without too much modification in Silverlight?  Surely the Task Parallel Library will not work in Silverlight without serious modification and many things will likely not be available at all.  Still, I smell a side project: to what degree could we at least get Parallel.ForEach<> , Parallel.For, and perhaps some of the basic System.Threading.Tasks.Task things working in Silverlight 2.  Possible uses for this include a Silverlight based Folding @home style app and I’m sure there are others.

2008 TechEd MVP Party

I’m writing this on the morning after the 2008 MVP party, hosted in the Voodoo Room at the House of Blues in Orlando.  What a blast!  I showed up and realized that while I knew no one most other folks seemed to already know other MVPs.  Shortly thereafter Carl Franklin walked in the door.  Since I don’t get to meet Internet Famous people often, I said hi and thanked him for introducing me to Steely Dan with his rendition of Home at Last .  He seemed amused and gave me the big High Five when I said I actually bought Aja because of him. 

There were two guys there doing the whole Blues Brother s schtick.  It would seem not as many people came as RSVP’d, so I was able to call The Vanderboom and get him in to the party.  The lower attendance also meant that the free drink tickets flowed in a steady stream for all of us.  There are some pictures circulating of me swing-dancing with a woman who runs a user group in Seattle.  Hopefully no other incriminating evidence exists, everyone remaining when they kicked us out was getting wacky by that time. 

Thanks to Microsoft for putting this event on, and all the MVPs who came for a great time.

Thursday, June 05, 2008 10:01:14 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Wednesday, June 04, 2008

This morning’s session with Stephen Toub on the parallel extensions to the .net framework was excellent.  Stephen had a  quad-core laptop that was enormous and hotter than the surface of the sun.  Intel’s quad-core mobile chips for laptops should be out this summer.  Anyone want to buy a used Vostro with a Core2 Duo?  He also had an early prototype of a system based on the Intel Dunnington architecture that appeared to have 20 cores.  I suddenly felt that my Quad Core setup at home was hardly adequate to do real concurrency research.

I owe him several comments and I hope my notes are adequate to remember all of them.  I brought some more questions I didn’t ask yesterday.

Q: Stephen has stated that the goal is for developers to extend System.Threading.Tasks.Task in order to do concurrency at a lower level than Parallel.ForEach<>, yet Task has an internal constructor keeping you from extending it.

A: The PFX team realized this during their internal code reviews and this will be fixed in a future CTP.

Q: In the ray-tracing example, you can see one of the pitfalls of static partitioning of workload.  Compare the top of the image vs. the bottom.  In ray-tracing the objects and reflective surfaces make for much more intensive computations, and so the top of the screen draws very quickly while the bottom of the screen fills in rather slowly.  Is thought going into hinting semantics that would allow users of PFX to indicate that certain units of execution have a greater “weight” relative to others?  Would you handle this by changing priority of some Task threads so Windows gives it extra cycles, or changing the static partitioning algorithms?

A: With the current Task API, you can set the priority of a Task, which ultimately means thread priority.  There is design discussion going on related to how we might be able to give hints to the TPL.

I just got out of a “deep dive” on the Silverlight 2 rendering pipelines.  There were some good debugging hints I didn’t know about, but other than that the dive was not as technical as I’d hoped.  Right now I’m in a social networking session led by Rob Howard, and then on to more Silverlight.

Wednesday, June 04, 2008 2:20:01 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [1]  |  Trackback

Saw some more sessions last night, including one on data access layer encapsulation with the entity framework.  I need to dig into this more, maybe a hands on lab if I can find one.  It’s not clear from the examples how parent-child relationships are loaded by the entity framework and if both eager load and lazy load situations are supported.  I have such high hopes for the entity framework that there’s almost no way I won’t be disappointed on some front.  The only reason why I haven’t spent a day looking seriously at the bits in SP1 is because I’m mostly working on MySQL right now and the MySQL/.NET team has yet to produce EDM support.

I got an email from The Clarkin on Friday asking if I’d like a “Nice dinner on Microsoft”.  He wasn’t kidding and he is in fact my bestest friend forever for thinking of me.  Dan and I met a lot of Central region nerds at Charley’s Steak House and it was excellent.  I’m no Richard Campbell but I do tend to tend to get loud in a group, and I ended up giving an impromptu rundown of the French red wines from the menu, and we did a fair bit of sampling too, all courtesy of our excellent Evangelists from the Midwest. 

As I write this Stephen Toub’s Parallel Extensions talk is about to start.  I’m 100% full up on sessions until late tonight, and after that is the MVP party at the House of Blues, but I’ll try to sneak some more comments in today.

Wednesday, June 04, 2008 8:06:47 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Tuesday, June 03, 2008

One thing I forgot to mention from the keynote this morning, and msftguy beat me to it.  Silverlight 2 Beta 2 will ship by the end of this week.  One thing Brian does not mention is that Somasegar claimed this version would have a go-live license.

Hopefully this means SL2 is nearly ready to ship.

Tuesday, June 03, 2008 3:09:33 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback

My flight got in pretty late last night and after fixing a shampoo leak I went down for a few drinks with the Vanderboom.  Despite going to bed at 1:30am and getting up at 6am, I woke up more rested than the average night of Ethan waking up constantly.

The first item of business this morning was the Keynote with Bill Gates, in his last public speaking appearance as a full-time Microsoft employee.  The Keynote was an extended version of the “Bill’s last day” video with several high level presentations by other MSFT folks and a Q&A with Bill at the end.  The highlight of the show was the “Ballmer Bot”, a robot that rolled out onto stage screaming “Developers, developers, developers…”

My first session this morning was Steve Teixeira on the Parallel Computing platform.  He showed several brief PFX demonstrations on Stephen Toub’s Quad-core laptop.  Stephen was present in the audience.    I hung around for quite a long time after this session was over talking to Stephen.  I asked if anyone at Microsoft was thinking about tipping over the sacred cow of thread affinity, specifically as it relates to the Holy Gui Thread.  You know, all those WinForms and WPF objects that you cannot touch from any other thread.  This seems like a serious bottleneck in the age of Many-Core computing.  The example I gave was potentially performing the calculations for animations on other threads.  Apparently, WPF almost did not go the static-apartment route, but there were a laundry list of issues with the OS/Shell having some baggage that ultimately drove that team back to the old ways.  A lot of people at Microsoft are thinking about this though, so that’s a good thing.  We also talked briefly about managing dependencies between parallel tasks, the PFX team definitely intends for us to make our units of work inherit from Task.  Stephen thinks we should be able to use the new “ContinueWith” semantics in the June CTP to handle executing a task-tree. (http://www.damonpayne.com/2008/04/03/ManagingConcurrencyWithTrees0.aspx )  I will investigate this, though perhaps not until the plane ride home. 

My next Silverlight session was full, so I’m going to look for another session to round out the day.  The Vanderboom and I are having dinner with MSFT Central Region folks at a nice steak house later.  You’ve gotta love these events.

Tuesday, June 03, 2008 1:50:08 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Monday, June 02, 2008
Monday, June 02, 2008 9:16:40 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Thursday, May 29, 2008

The PFX team has announced their TechEd sessions.  I'm there.

http://blogs.msdn.com/pfxteam/archive/2008/05/28/8557291.aspx

Thursday, May 29, 2008 9:17:45 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Tuesday, May 13, 2008

In addition to concurrency, the 64bit realm is another obvious place where the PC/Server world is going.  It’s faster than 32bit, we can address more memory, and we can have more accurate hardware floating point.  Ideally, it should be easy for everyone except low-level framework authors, device driver authors, and the like to migrate their applications to 64bit.  I mean this for Native applications too.  If you had to support both “interface X” and “interface Y” in your application, you’d create a level of indirection to do so, perhaps a Strategy pattern. 

If you are a .NET developer, all of your programs should magically become real 64bit applications when running on a 64bit .net framework on a 64bit machine.  Handy!

I have not written a non-trivial C program in quite some time, so I preface this statement with the disclaimer that it may be total crap: If you are a native developer you should also be able to effortlessly port your app to work with 64bit systems.  If you are NOT hard-coding any address sizes, struct sizes and the like, a simple recompile should work.  Using sizeof(), size_t, etc. the compiler becomes your level of indirection in a way.

Today I sat down to start testing TestDrivenàxUnitàNCover; I pretty much need TestDriven and NCover to do serious work. xUnit.Net ships with an easy installer that tells TestDriven it exists.  It reports success.  It doesn’t work.  I happen to have the xUnit code on hand so I run it through the debugger.  TestDriven looks at a registry key (HKEY_LOCAL_MACHINE\SOFTWARE\MutantDesign\TestDriven.NET\TestRunners) for a list of assemblies containing a class that implements its test runner interface and their locations.  The following code returns “true”:

        public static bool IsRunnerInstalled

        {

            get

            {

                using (RegistryKey runnerKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\MutantDesign\TestDriven.NET\TestRunners\xunit", true))

                    return (runnerKey != null);

            }

        }

The problem is, inspection using Regedit shows that the key is clearly not there.  What’s going on?  Just on a hunch, I thought I’d google for some 64bit issues.  Since there’s \Program Files\ and \Program Files(x86)\ on my 64bit machine, I wondered if there was a second 64bit/32bit registry somewhere.  Almost…

Microsoft, in their wisdom, decided that the registry needs a layer of indirection for 32bit applications.  What purpose this serves I cannot fathom, but you can read all about it here:

http://support.microsoft.com/kb/305097

So, something you THINK is in one place may really be below a “Wow6432Node” registry key.  As I’ve already stated, though, .NET programs should magically be 64bit on a 64bit framework.  There is a way to break this though, and sure enough, the xunit.installer assembly is marked with a Platform Target of x86 in its build properties.  Since the default is the magical “Any CPU” I assume there was a good reason to change this.  My missing registry key, sure enough, is being created in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MutantDesign\TestDriven.NET\TestRunners.   TestDriven is looking in the Correct location and not finding what it needs.  I copied the Wow6432 data up into the 64bit area of the registry, disabled and re-loaded TestDriven in the VS2008 add-in manager, and now I’m in business.  Xunit does not appear in the “Test With” menu but Run Tests and Test with debugger now run my XUnit tests.

Test withàCoverage using NCover works too.  I can now ditch NUnit.  Looking at the xUnit à TestDriven code, I’m sure I can get concurrent xUnit tests running from Visual Studio using TestDriven whenever I’m ready. 

Native Windows developers may know what issue this registry redirection practice solves, but it’s lost on me.  Maybe it’s a thunking limitation, I don’t know.  At any rate, it’s something to be aware of when combining 32 and 64 bit code.

 

Tuesday, May 13, 2008 10:11:56 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |  Trackback