About InfoWorld : Advertise : Subscribe : Contact Us : Awards : Events : Store
InfoWorld HomeNewsTest CenterOpinionsProduct GuideTechIndex
PRODUCT REVIEWS GUIDE    REVIEWS    ANALYSES    SPECIAL REPORTS 
 

TEST CENTER

 
Road to managed code

By Jon Udell
August 2, 2002


ON JUNE 6, Microsoft posted security bulletin MS02-026, titled "Unchecked Buffer in ASP .Net Worker Process." Tongues immediately began to wag. Wasn't .Net supposed to prevent this sort of thing? It's true that managed code avoids the buffer overflows that trigger so many security snafus. But the ASP .Net engine, a .Net component, is not itself written wholly in managed code, and the security flaw was in an unmanaged function. Work was "currently under way," the bulletin said, "to migrate all functions over to the .Net Framework."

   ADVERTISEMENT
  

Free IT resource

Virtualization Insights from Top Experts - Learn how virtualization gets real!

Sponsored by Dell

Free IT resource

Try Sun servers, workstations and storage products free for 60-days.

Sponsored by Sun Microsystems

RELATED LINKS
»  Taiwan group expects PRAM chips in three years
»  DRAM price falls 25 percent
»  Sun delivers first UltraSparc T2-based servers
»  Hardware RSS feed 

IDG ENTERPRISE NETWORK
More Desktops News...  (ComputerWorld)
Juniper enhances routers for IP TV  (ComputerWorld)

TOP NEWS 


IT SOLUTION SEARCH
That migration is an epic journey that makes the trip from 16-bit to 32-bit code look like a weekend jaunt. Each of the server products will travel at its own pace. The forthcoming Yukon version of SQL Server, for example, will not be written on the .Net Framework, according to John Montgomery, group product manager for the .Net development platform. "There is too much code running too near the kernel for that," he says. "But Yukon will expose its entire programming model as managed code."

When teams write new code, the assumption is that they will do so in a managed space "unless there's a compelling reason not to," Montgomery says. Here, by the way, managed C++ will play a special role. For example, a C# version of DirectX achieved only 60 percent of native performance, according to Montgomery, whereas a managed C++ version nearly equalled it. All .Net languages are created equal, but some are more equal than others.

This eclecticism should surprise no one. Even if .Net technology could be fully deployed across the server family tomorrow, it would not be a security panacea. The security bible read at Microsoft nowadays, Michael Howard's and David LeBlanc's Writing Secure Code, acknowledges the complexity of the problem and prescribes a holistic approach that encompasses legacy, new, and mixed environments."

What .Net will do for the server family, sooner rather than later, is present a consistent set of interfaces to programmers. These interfaces will live in managed space as part of the .Net Framework and will enable any .Net language to control the servers.

Perhaps the most dramatic illustration of this idea is Yukon's stored procedures. Written in .Net languages such as C#, they will be able to converse intimately with the rest of the .Net Framework. The planned ability to write BizTalk's XLANG schedules in C# is another example of the same idea. Broadly speaking, the server products will become a set of components that can be scripted using .Net languages. This arrangement will enable developers to extend individual servers more productively, and it will be a huge win when -- as is typical -- they yoke different servers together in complex solutions.

One fly in the ointment is the slow progress made to date in adapting the CLR (Common Language Runtime) to the needs of dynamic scripting languages such as Perl and Python. In the open-source world, these languages own the niche that Microsoft is carving out for .Net languages in its server product line. Ideally, the flexibility of dynamic scripting would enable Microsoft developers to be maximally productive using the new .Net interfaces. Early efforts to support such languages on the CLR stalled. Let's hope a future version of the CLR will revive them.

Is the ".Net everywhere" campaign a Microsoft lock-in? Not necessarily. Covalent has announced ASP .Net support for Apache on Windows. OpenLink Software will soon demonstrate a version of its Virtuoso database/app server/Web services engine that will also host ASP .Net pages and, like Yukon, will support stored procedures written in .Net languages. OpenLink CEO Kingsley Idehen says that Mono, an open-source implementation of the .Net CLR and Framework, will enable the Linux version of Virtuoso to offer the same features.

When and how Microsoft will assert control over alternative .Net implementations is the subject of much debate and speculation. But Web services support alone does not trump Java in the standards game. Microsoft needs to have the premiere .Net interfaces but not the only ones.

Although managed interfaces to the servers are Microsoft's major focus in the next round, the components that make up those servers will increasingly be built with .Net technology. In this realm, where Java is today the de facto standard, .Net looks like a better Java, offering the same benefits (managed memory, robust exception handling) with closer-to-the-metal performance, deeper Web services hooks, and superior componentization. Whereas .Net servers operate at a high level and in loosely coupled ways, they can rely on Moore's law for performance (as do Java servers), and can scale by clustering.

Mixing managed and unmanaged code is easier said than done, though. Despite excellent COM support in .Net, for example, there remains an impedance mismatch between the two styles. "COM is about managing object lifetimes very explicitly," says Jack Ozzie, Groove's vice president of development. "And when you mix that with the .Net world of garbage collection and nondeterministic lifetimes, you start getting sparks."

The devil is always in the details, many of which the next generation of Microsoft servers will sweep under the carpet of the .Net Framework. It's a pragmatic strategy that will deliver much-needed API consolidation while buying time for the migration to managed code.




  BOTTOM LINE
Microsoft .Net servers
EXECUTIVE SUMMARY
The next generation of Microsoft servers won't fully implement managed code but will offer a consistent set of managed interfaces that will make developers more productive.

TEST CENTER PERSPECTIVE
Security is a process, not a product. As Microsoft servers begin to mix managed and unmanaged code, .Net becomes part of the process but not the whole story.


RELATED ARTICLES

Special Report: Microsoft .Next


RELATED SUBJECTS

Servers
Networking


SPONSORED WHITE PAPERS
EMC - Lower costs and improve reliability-Get the EMC CLARiiON white paper!
Ciphertrust - Are you ready for Sobig.G? Learn how to protect your email systems.
CDW - Personal attention. CDW. The Right Technology. Right Away.
EMC - Explore key performance features and capabilities of EMC ControlCenter 5.1.1.
Intel - Free Intel white paper shows you how to deploy a secure wireless LAN
Cisco - FREE WHITE PAPER: BLUEPRINT to design and implement secure VPNs
Verity, Inc. - "Mass Consolidation Hits the Web-Search Market"
McDATA - Download a FREE storage consolidation white paper from McDATA(R).
Lucent Technologies - Overcoming Common Firewall Limitations
Lucent Technologies - Leverage Your Mobile High Speed Data Access. Download Free White Paper!
Nokia - Get the scoop! Mobilizing business white papers & case studies.
BMC Software - Maximize the Potential of Enterprise Data: Free white paper!
Network Associates - Free white paper - Strategies for Optimizing Network Costs and Benefits
Entrust - Manage identities across applications. Improve productivity.
Stalker Software - CommuniGate Pro - Transform your Email and Calendaring
Remedy - A NEW Gartner Research Note:Producing Quality IT Services

Search the IDG White Paper Library:


SPONSORED LINKS

INFOWORLD MARKETPLACE


» IT Solutions Providers: Make room for more profit.
Find out how Seagate helps you satisfy customer needs and boost profits. Visit Seagate now.
» Find IT Consultant
Post Your Project for Free. Get Bids from Thousands of Pre-Screened Consultants. Register Now!
» Apply BPM and ITIL at your IT Help Desk
ServiceWise brings BPM to complete IT service while eliminating integration cost. Learn more here.
» Register for your FREE Desktop Virtualization kit.
Take command of the desktop with VMware desktop virtualization  Register today for your FREE kit.
» Six Best Practices in Storage Consolidation
Six best practices can ensure the success of your consolidation project. Read this NEW storage ...




 HOME  NEWS  TEST CENTER  OPINIONS  PRODUCT GUIDE  TECHINDEX   About : Advertise : Subscribe : Contact Us : Awards : Events 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy

All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses, phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

Computerworld :: Network World :: CIO :: PC World :: Darwin :: CMO :: CSO
IT Careers :: JavaWorld :: Macworld :: Mac Central :: Playlist :: GamePro :: GameStar :: Gamerhelp
ITWorld Canada :: Computerwoche :: Techworld UK :: tecChannel :: IDG.se :: IDG.no