下一代Windows的主要开发框架是什么?
一些文章 指出 Windows 8 开发是基于 HTML 的,而不是主要使用本机代码,如 C 或 C++(到目前为止)或 .NET(现在是这样,甚至像在 Longhorn 中那样),但从来没有。)
这是真的吗?那么核心 API 可以通过 Javascript 访问吗? Windows 8 的主要 API/框架是什么?
Some articles point to Windows 8 development being HTML-based instead of primarily using native code like C or C++ (as it has been until now) or .NET (as now, or even more so as it would have been in Longhorn, but never was.)
Is this true? Will the core APIs be accessible from Javascript then? What is the primary API / framework for Windows 8?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这值得一问。 6 月份演示 Windows 8 时,演示者的几条评论吓坏了相当多的开发人员 - 或者至少将互联网变成了 恐慌模式。我很惊讶这个问题以前没有被问过。
我发现的有关该主题的最佳文章是 Ars Technica 上的面向软件开发人员的 Windows 8。
简短的回答是:它将保持不变。
长答案是:它将保持不变,但会添加一些内容。如果您愿意押注于微软的新技术,您可能会想继续使用这些技术。一个特别有趣的是WinRT,它是一种通过 COM 公开的新的面向对象的本机代码 API,它应该是旧的平面 Win32 API 的新版本。详细信息在链接的文章中。
任何已经存在的东西,特别是基于 Win32 或 .Net 的东西,都不太可能被删除。这意味着用 .Net 或本机 C++ 或 Delphi 编写的现有程序将继续正常工作。主要开发平台也不可能是 HTML。更有可能的是,HTML 应用程序将被鼓励用于特定场景 - 也许是触摸屏、信息亭和平板电脑。
我鼓励您 阅读我上面链接的文章 - 它比这里的任何答案都更详细地介绍了这一点。
This is worth asking. When Windows 8 was demonstrated in June, a couple of comments by the presenter scared quite a few developers - or at least turned the Internet into panic mode. I'm surprised this question hasn't been asked here before.
The best article on the topic I have found is Windows 8 for Software Developers on Ars Technica.
The short answer is: it will remain the same.
The long answer is: it will remain the same, but several things will be added. You may want to pursue using those if you're willing to bet on new Microsoft technologies. One particularly interesting one is WinRT, which is a new object-oriented native code API exposed through COM, which is supposed to be a new version of the old flat Win32 API. Details are in the linked article.
It is very, very, very, very unlikely that anything that already exists, especially based on Win32 or .Net, would be removed. That means your existing programs written in .Net or native C++ or Delphi will continue to work fine. It is also unlikely that the primary development platform will be HTML. More likely is that HTML applications will be encourage for specific scenarios - perhaps touchscreen, kiosks and tablets.
I'd encourage you to read the article I linked to above - it covers this in far more detail than any answer here can.
Windows 8 的开发有三种方法,它们都访问相同的底层 API,即 Windows 运行时。
UI 已构建使用 XAML 使用相当合理的设计器。更多详细信息仍在发布:检查 http://channel9.msdn.com/Events/BUILD/BUILD2011 观看带有详细编码演示的视频。 http://channel9.msdn.com/Events/BUILD/BUILD2011/BPS-1005 是一个不错的起点。
There are three ways to develop for Windows 8, and they all access the same underlying API, the Windows Runtime.
The UI is built with XAML using a pretty reasonable designer. More details are still coming out: check http://channel9.msdn.com/Events/BUILD/BUILD2011 for videos with detailed coding demos. http://channel9.msdn.com/Events/BUILD/BUILD2011/BPS-1005 is not a bad starting point.
有 3 种语言/框架组合均受到同等支持:
所有这些都是编写 Windows 8 Metro 风格应用程序的一流方法。 Windows 运行时提供对每种语言的直接访问,因此开发环境的选择可以基于语言的熟悉程度或功能集,而不是受限的可用性。
更新:我忘记了一个:C++/Direct3D(用于游戏)。
There are 3 language/framework combinations that are all equally supported:
All are first class ways to write Windows 8 Metro style applications. Windows Runtime provides direct access to each of these languages and so choice of development environment can be based on familiarity or feature set of the language and not on restricted availability.
Update: I forgot one: C++/Direct3D (for games).
在编写平板电脑桌面天气小工具应用程序时,原始引用是该应用程序使用“我们新的开发人员平台,呃,它基于 HTML5 和 JavaScript”。
演示者从未说过小工具是应用程序的首选类型(有多少Vista 侧边栏小工具< /a> 或 Windows 7 桌面小工具 你曾经编写过吗?即使你可以用简单的 HTML 编写它们!),或者该平台是桌面天气小工具应用程序的首选平台(有多少动画控件让您可以将视频播放添加到您的应用程序中要求吗?它是 Windows 资源管理器用来显示视频的控件!)。
The original quote, in the context of writing a tablet desktop weather gadget application, is that the application uses "our new developer platform, which is, uhh, it's based on HTML5 and JavaScript."
The demonstrator never said a gadget is the preferred type for applications (How many Vista sidebar gadget or Windows 7 desktop gadget have you written in your life? Even when you can write them in simple HTML!), or the platform is the preferred platform for desktop weather gadget applications (How many animation control have you add to your application with video playing requirement? It is THE control used by Windows Explorer to display video!).
今天,在花了几分钟使用 Windows 8 开发人员预览版后,我发现您可以使用 Expression Blend 5 轻松自动生成 HTML 和 Javascript 中的 Metro 风格应用程序。另外,在 Visual Studio 中,您可以在 Silverlight 中创建外观完全相同的应用程序。 :)
我很兴奋!使用 Windows 8! :)
Today, after spending a few minutes playing with Windows 8 developer preview, I found that you can use Expression Blend 5 to easily auto-generate metro-styled applications in HTML and Javascript. Also in Visual Studio you can create exactly looking applications in Silverlight. :)
I am very excited!!! Go Windows 8! :)