Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!
HTML5 Zone is brought to you in partnership with:

Dr. Axel Rauschmayer is a freelance software engineer, blogger and educator, located in Munich, Germany. Axel is a DZone MVB and is not an employee of DZone and has posted 228 posts at DZone. You can read more from them at their website. View Full User Profile

Windows 8 will (probably) not deprecate C++ and .NET in favor of HTML5

06.25.2011
Email
Views: 4447
  • submit to reddit
The HTML5 Microzone is presented by DZone and Microsoft to bring you the most interesting and relevant content on emerging web standards.  Experience all that the HTML5 Microzone has to offer on our homepage and check out the cutting edge web development tutorials on Script Junkie, Build My Pinned Site, and the HTML5 DevCenter.
Windows 8 introduced a new kind of application to the world of Windows: The immersive application with a tablet-first design [1]. Immersive applications will dominate Windows 8, existing applications will be relegated to a second-class status and accessible through a compatibility mode. When Microsoft first presented Windows 8, it gave the impression that immersive apps can only be written in HTML5. The article “Windows 8 for software developers: the Longhorn dream reborn?” on Ars examines whether that is true. This post summarizes the article.

 

New APIs

There will be two new core APIs in Windows 8 that both C++ and .NET can use:
  • WinRT: a modernized version of the Win32 API.
  • DirectUI: a new UI API that brings some of the comfort of the .NET-only WPF to all of Windows (XAML etc.).
Quote:
The point of all this? It gives parity to native C++ and managed .NET code. Instead of being separate, each with its own different capabilities and strengths, they will be peers. If Microsoft adds new APIs to core Windows, the WinRT system will ensure that they're seamlessly available to managed code, meaning that .NET developers will no longer be at a disadvantage relative to native ones. Conversely, existing native applications can be updated to use the new UI without having to be substantially rewritten to use .NET. This same flexibility applies to Microsoft: putting native and .NET code on an equal footing opens the door to actually seeing .NET applications shipping with the operating system.

C++ and .NET versus HTML5 on Windows 8

Quote:
The big concern that arose as a result of the initial Windows 8 presentation several weeks ago was that the new-style immersive applications would be available only to HTML5 and JavaScript developers. The language used during this presentation said that the new development framework was "based on" HTML5 and JavaScript, and this sent ripples throughout the entire Silverlight community.

Microsofts silence. Quote:

It's understandable that Microsoft doesn't want to spill everything right now. Windows 8 is still a long way from completion, and plenty could change between now and BUILD. But developers aren't asking to hear everything now; they want to know a few salient details. Answering two questions would probably do the trick.
  • Will it be possible to write immersive applications using C++ or .NET?
  • Will it be possible to write immersive applications using XAML?
The answer to both questions is likely yes. Additionally, one will be able to write first-class applications with many native features in HTML5. It is strange that Microsoft will wait until the BUILD conference in September 2011 to spread the good news.

Related reading

  1. Windows 8: Microsoft restarts its operating system efforts (an analysis)

From http://www.2ality.com/2011/06/windows-8-apis.html

Published at DZone with permission of Axel Rauschmayer, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

HTML5 is the most dramatic step in the evolution of web standards. It incorporates features such as geolocation, video playback and drag-and-drop. HTML5 allows developers to create rich internet applications without the need for third party APIs and browser plug-ins.  Under the banner of HTML5, modern web standards such as CSS3, SVG, XHR2, WebSockets, IndexedDB, and AppCache are pushing the boundaries for what a browser can achieve using web standards.  This Microzone is supported by Microsoft, and it will delve into the intricacies of using these new web technologies and teach you how to make your websites compatible with all of the modern browsers.

Comments

Mike Borozdin replied on Sun, 2011/06/26 - 6:45am

Axel, Why should Microsoft deprecate C/C++? Which language will they use for building Office, SQL Server and other stuff? What about game developers? They still use unmanaged code. Oh yeah and what about hardware driver makers? Are they supposed to write them in JavaScript ;-)?

Stjepan Obrankovic replied on Tue, 2011/06/28 - 3:37am

Microsoft will probably stop developing old technologies (.NET, C/C++) in favour of new like it did with C++ when .NET came out.

Axel Rauschmayer replied on Tue, 2011/06/28 - 5:48am in response to: mikeborozdin

I agree. The key sentence in the post is “When Microsoft first presented Windows 8, it gave the impression that immersive apps can only be written in HTML5.” This impression caused a lot of nervousness and anger among .NET people. I don’t understand why MS doesn’t tell everyone what exactly their plan is in this area.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.