WebKit 是浏览器引擎的 jQuery(WebKit is the jQuery of Browser Engines)

桌面软件开发 William 325浏览 0评论

The news has just come out that Opera is switching all of their browsers (both mobile and desktop) to use WebKit (specifically, Chromium). I’ve seen a lot of gnashing of teeth on Twitter and I feel like I can respond because I use to feel the same way back in 2008-2009. However this is 2013 and the Chrome/Chromium team has made it obvious that any form of stagnation or lack of innovation does not need to occur when using WebKit. In fact it possibly gives you the ability to accelerate your development, spending less time worrying about implementing common standards. I would argue that WebKit (a common framework for implementing the standards-compatible portion of a web browser) is exactly like jQuery (a common framework for implementing a DOM standards-compatible experience in a web page) at this point.

最新
消息,Opera决定所有旗下浏览器(包括桌面和移动版)使用WebKit引擎(就是Chromium)。我看见许多人在Twitter上咬牙切齿。我想我可以回答这个问题,因为现在的情况和2008-2009年一样。然而如今是2013年,Chrome/Chromium团队使用WebKit让许多应用无法停滞充满新意。事实上赋予你提速应用开发的能力,并减少实现通用标准的烦忧。我认为,现在的WebKit(一个实现部分标准兼容的Web浏览器框架)就像现在的jQuery(实现页面DOM操作兼容的框架)。

These are a few arguments against the switch that I’ve seen so far:

A browser switching to WebKit will result in stagnation

That is demonstrably not true. KDE created KHTML, Apple created WebKit based upon that, Google created WebKit/Chromium based upon that. I don’t think anyone can successfully argue that Chome/Chromium isn’t a better browser than Safari which isn’t a better browser than Konqueror. The Chrome team has proved that stagnation when using WebKit is merely a choice, as a contributor to WebKit you have the complete ability to drive it in a direction you wish (often for the better). I see no reason why the highly-skilled development team at Opera won’t be able to do the same. They can implement a number of their Opera-specific features into WebKit and it’s likely that those features will start to trickle back into other WebKit-using browsers as well.

这使WebKit成为事实标准,缺陷和所有

我觉得这个观点已经没什么聊的了。WebKit已经是事实标准。我的意思是,大家想想浏览器们都
决定实现-webkit-前缀特性的时候。这明摆着“WebKit就是事实标准”。再说明一下Bug:WebKit是浏览器商们都贡献的公共代码库,任一浏览器商都可以操作自己的分支。没理由认为不标准的WebKit的Bug不能被某个浏览器商修复。有一个错误在引擎并不意味着浏览器商无力解决它——他们只是故意不修复它
(就像浏览器商故意克隆-webkit前缀)。

JavaScript中所有人都把jQuery作为了标准。它没有引起阻碍,相反地,促进了更多有趣而流行的二次开发框架,如
Twitter Bootstrap
HTML5 Bolierplate
Backbone.js

This will affect Opera’s ability to influence standards

I don’t see the switch to WebKit causing this. I do see Anne van Kesteren‘s move to Mozilla as being a massive blow to Opera’s ability to push standards though. I don’t know anything about the situation but if his moving was caused by the switch to WebKit then yes, Opera’s move to WebKit has affected their ability to influence standards.

这会妨碍Opera影响Web标准的能力

我不认为Opera切换到WebKit会导致这个情况发生。但我确实看到
Anne van Kesteren从Opera跳槽到Mozilla确实是Opera推进Web标准能力的巨大打击。但我对内幕一无所知,但是如果他的跳槽是源自这次浏览器引擎的切换,那么Opera影响Web标准的能力确实遭受到了损失。

via
InfoQ

Opera switching to WebKit is a slippery slope and/or Opera is a small player, Firefox or IE switching to WebKit would be a bigger problem

I think one this is clear already: WebKit has completely and unequivocally won mobile at this point. They are nearly the only rendering engine used on the vast majority of mobile browsers, including the soon-to-switch Opera Mini/Mobile browsers too. There is no reason to worry about a slippery slope, the slope has already been slid down. In order for any other browser to remain relevant in the world of mobile (which, you must admit, is quickly becoming the only world we live in) they must keep feature parity with WebKit. Let’s follow this to its logical conclusion: In a world in which WebKit is now virtually the only mobile browser vendor Mozilla and Microsoft will feel increased pressure to switch their browser engines over to WebKit in order to keep pace. Google has proved that with Chrome that WebKit stagnation is simply a choice so there’s no reason why these other companies shouldn’t be able to build off of WebKit (and possibly create WebKit hybrids, such as WebKit + IonMonkey).

Opera切换到WebKit是在走下坡路/Opera份额太小,如果Firefox或者IE切换到WebKit那会是一个大问题

我认为有一点已经非常清楚了:目前WebKit在移动端已经非常明确的大获全胜。包括即将切换到WebKit上的Opera Mini/Mobile,WebKit几乎是市面上绝大多数移动浏览器所选用的唯一渲染引擎。如果任何其他浏览器想要在移动世界占据一席之地,那它必须和 WebKit在功能上保持一致。让我们在此得到一个逻辑上的结论:在移动世界已经被WebKit统治的情况下,为了保持同步,Mozilla和 Microsoft将会感受到巨大的压力来迫使他们将自己的浏览器也切换为WebKit。Google已经通过Chrome证实了使用WebKit并不会 导致发展停滞,其他公司更没有理由不来继续打造WebKit(有可能会创造WebKit的混合体,比如WebKit+IonMonkey)。

via
InfoQ

The big question becomes: Should they switch?

At this point it’s honestly a business/engineering decision for Mozilla and Microsoft (as it always has been). If some percentage of your developer force is spending all of their time implementing the same standards that everyone else is implementing then switching to a common code base will give you the ability to free up some of your developers to work on something else. You saw what happened in the case of Chrome: They used their extra developer time to completely crush the competition on performance. This resulted in the everyone-wins race to become the fastest browser.

这些问题都归结到这个大问题:他们(Mozzila,Microsoft)应该切换引擎吗?

老实说,在这一点上,对Mozilla和Microsoft来讲,这成了一个商业问题,或者是工程问题。如果你的一些开发者要花他们所有精力去实现 别人正在实现的相同标准,那么切换到一个公共的代码库(指WebKit,编者注)将会解放你的劳动力,让你可以做点儿别的事情。你可以看到Chrome的 例子:他们解放出的生产力全面投入到了性能的竞赛上。这个打造最快浏览器的比赛促进了大家共赢的结局。

via
InfoQ

Ultimately it’s important to remember that WebKit is not a monolithic entity. It’s a shared codebase that a number of corporations contribute to. (In this respect it’s different from jQuery: Almost all contributions to jQuery comes back into the main codebase, whereas with WebKit some come back to the main codebase and some stay in a fork.) There is a lot of code sharing going on but it isn’t the be-all and end-all of browser development. Innovation can clearly still occur when working on a shared codebase and performance will almost certainly continue to improve.

最后,我们一定要了解,WebKit并不是一个完整的实体。他是一个有多家公司贡献代码的共享代码库。(从这方面来说,这和jQuery并不相同:几乎所 有的jQuery代码贡献最终都回到它的主代码库,而WebKit的有些更新则只保留在分支之中)。使用一个共同的代码库并不意味着这是浏览器开发的一 切,更不是浏览器开发的终结。在一个共享的代码库中仍然可以有持续不断的创新,它的性能也当然会一直提升下去。


via:oschina

转载请注明:AspxHtml学习分享网 » WebKit 是浏览器引擎的 jQuery(WebKit is the jQuery of Browser Engines)

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址