extend webkit javaScript objects

来源:互联网 发布:mac os 10.12 安装win8 编辑:程序博客网 时间:2024/04/29 00:26

1 为什么要做?

 

好处:

• Port desktop applications to the web

  – Zero install

  – Native performance

• Enhance web apps with...

  – Existing C/C++ libraries (libcrypt, CGAL, etc)

  – New high-performance compiled code

• Sandbox existing plugin code

  – Stop asking users to trust your code

• Native performance

• Platform-independent multimedia

• Your choice of language

• Low-level system services

坏处:
• Must compile verifiable code
  – Minor performance penalty
  – Generally larger executables
• Some *nix syscalls are unavailable
  – Process creation
  – Direct network/file access
• Still some rough edges

 

2 怎么做?

 

ref: http://old.nabble.com/Extending-webkit-javascript-td21517784.html

 

文中谈到了在什么时机注册自己的对象。

 

 

 

原创粉丝点击