Chrome 和 Native Client前瞻
Posted | archive
n天前一则新闻,最近又想了很多
摘要:
DART would be an otherwise generally uninteresting Javascript-alike if not for one fact: it is designed and explicitly documented to run on an as-yet nonexistent virtual machine, distinct from the existing Javascript VM.
(Native Client) is a sandboxing technology that allows running untrusted native code directly on a user's CPU with almost optimal virtualisation overhead (<1% on i386, ~7% on amd64 and ARM). Initially billed as a "research experiment", the stated aim was to allow writing fast code in C++ that can augment a JavaScript application, e.g. for the renderer of a 3D browser based game.
It is worth noting that the original "experiment" failed - it relied on features (segmentation) that AMD removed from the amd64 platform, and so its useful life was basically 32bit processors only
Google's intention for at least 6 months has been to extend NaCl to a point where rather than being the host process, Chrome itself becomes just another child, bootstrapped (and updated) via HTTP just like any other Native Client app.
简单的说,Dart其实是NaCl向Javascript兼容模块,Chrome将来会自己跑在NaCl平台上。
感觉很牛逼的样子。
Comments