Friday, March 18, 2005

When Jeffrey Richter - who has been consulting to Microsoft lo these many years - talks about "Controversial .Net Topics", anyone who is interested in .Net sits up and listens.

The first topic Jeffrey talked about is protecting intellectual property. Tools like Lutz Roeder's Reflector make it super easy to decompile a managed assembly to not just Intermediate Language but to C# or VB.Net code as well. Needless to say, this can be somewhat of a problem if you don't want people figuring out how your app does what it does.

Now, Jeffrey pointed out that most of your app probably isn't worth protecting. As he says, no one really cares how your Copy command works, and even if they do those details are probably not giving you a competitive advantage. For those few parts that *do* give you a competitive advantage, you have a few options:

  • Split those portions out into an unmanaged DLL and use interop to call into it.
  • Use one of the many obfuscator tools to spindle, fold, and mutilate your code.
  • Wait for digital rights management, which Jeffrey characterized as "the real solution", to become real. He indicated that Microsoft will be moving DRM into the .Net runtime at some point in the not-soon-but-not-distant-either future.

The next topic tackled was the efficacy of NGENing. NGENing an assembly, as you might know, compiles that assembly to native code right then rather than waiting until just before the code is executed as normally happens. This is a good thing, since it means the performance hit of compiling said code happens at a well-defined single point in time (i.e., when you run it through NGEN) rather than whenever .Net decides to do so. However, .Net doesn't actually guarantee that it will use that NGENd code because there are various cases that force .Net to recompile the code! So you have to keep the non-NGENd code around anyway. NGENd code has other problems too (did you know NGENing can actually *hurt* your runtime performance by as much as ten percent?). So it's often not really worth the trouble. (Not yet, anyway. Jeffrey says Microsoft is well aware of all these problems and is working hard to solve them. This month's MSDN Magazine covers some of the changes coming in Whidbey.)

Jeffrey finished up by taking on the "common knowledge" that managed code is slower than unmanaged code. This is not necessarily true. Because .Net code is compiled just before it is executed (well, as long as you didn't NGEN it <g/>), the .Net compiler knows all sorts of information about your environment that it uses to optimize the compiled code. All of this adds up to managed code actually being faster than unmanaged code in some few cases today and (Jeffrey assured us) in many if not all cases in the future. As with NGEN, some of these things are coming in Whidbey but others will take longer to arrive.

None of us in the crowd seemed to think any of these topics were particularly controversial (no fistfights broke out, anyway <g/>), but I think it's safe to say we all found them immensely interesting.

11:53 AM

14 comments:

at 10:13 AM Anonymous said...

Hey how are you doing? just letting you know that someone from Central America read your blog!

Regards,
Charles
web hosting domain name registration

at 11:17 PM Anonymous said...

It looks like you spent some time on this blog. Keep up the good work! When you get the chance, visit my site and join for free! Go to free money.

at 12:57 AM Anonymous said...

a great opportunity, no selling, no phoning, no recruiting PERIOD!

at 3:15 PM Anonymous said...

Hey great site.
I was seaching the web and came across yours.

Regards,
Gerald E.
http://exclusive-information.net/
cheap account ecommerce internet merchant

at 8:43 AM Anonymous said...

This is an excellent blog. Keep it going.You are providing
a great resource on the Internet here!
If you have a moment, please take a look at my real free home business opportunity site.
Have a great week!

at 3:04 AM Anonymous said...

Such interesting and informative comments on your site.

If you require some fx affiliate info come to my site at http://www.forex-affiliate.com/Affiliates/main.aspx?ref=5836

at 1:49 PM Anonymous said...

Hi. Thanks for the insights.

Thanks,

Steve @
living online

at 5:37 PM Anonymous said...

Hey, you have a great blog here! I'm definitely going to bookmark you!

I have a 2 business home opportunity work Online Business Ideas. It pretty much covers ##KEYWORD## related stuff.

at 1:55 PM Anonymous said...

Good blog - very interesting!! Thought you might like some excellent advice on driving extra traffic to your website/blog - I'm into 2005 integration microsoft series server server services sql sql and to drive traffic to my website I was searching around the internet for absolutely ages looking for SEO tools to fire my site up the Google search engine, then I signed up free for this superb traffic gereating tool - I now have loads of hits to my websites/blogs and my site is shooting up the Google rankings quicker than ever before.

Consequently this can see your affiliate commissions shoot through the roof - meaning lots of extra money coming in for you and your family. Sign up now - it's free.
. Sorry if this information is of no use to you but seeing as you have the anonymous feature enabled I thought I should share this free bit of essential promotional advice with you and would hope you would do the same for me.

I hope the tool will serve you equally as well as it has me!!

Best of luck, cheers for now, dave.

at 4:40 PM Anonymous said...

residential voip


Hi, just wondering if anyone has ever tried SKYPE for telephone calls over the internet?? A pal of mine says it's brilliant and works out much cheaper than conventional calls, just wondered if anyone else has signed up for it?

at 9:38 PM Anonymous said...

.





Hi matey

I'm sure it was this blog I was reading a while back where someone was looking for an SEO tool for driving more traffic and get more hits for their website.

Anyway, I was speaking to a techi guy at work who gets to know all the latest stuff and he uses the free Link Referral Program.

His website on credit card affiliate program amongst other stuff has seen traffic explode since he started using the Link Referral Program - consequently his affiliate sales commissions and business sales went through the roof PLUS his website increased in google ranking which was an added bonus!!

If anyone else has any good ideas for driving more traffic to blogs/websites then please share with your online business blog buddies. Ta ;-)










.

at 6:35 PM Anonymous said...

Hey, you have a great blog here! I'm definitely going to bookmark you!

I have a home internet based business opportunity

Come and check it out if you get time.

at 2:14 PM Anonymous said...

2000% INTERNET PROFITS

at 11:14 AM Anonymous said...

Hey, you have a great blog here! I'm definitely going to bookmark you!

I have a home based web business

Come and check it out if you get time.