官术网_书友最值得收藏!

Standard libraries

Node is built on standard open source C libraries. For example, the TLS and SSL protocols are implemented by OpenSSL. More than just adopting an API, the C source code of OpenSSL is included and complied into Node. When your JavaScript program hashes a cryptographic key, it's not JavaScript that's actually doing the work. Your JavaScript, run by Node, has called down to the C code of OpenSSL. Essentially, you are scripting the native library.

This design choice of using the existing and proven open source libraries helped Node in a number of ways:

  • It meant that Node could arrive on the scene very rapidly, with the core set of functionality systems programmers needed and expected already there
  • It ensures performance, reliability, and security continues to match the libraries
  • It also didn't break cross-platform use, as all of these C libraries have been written and maintained to compile for different architectures for years

Previous platforms and languages have made a different choice in trying to achieve software portability. The 100% Pure Java? Standard, for instance, was a Sun Microsystems initiative to promote the development of portable applications. Rather than leveraging the existing code in a hybrid stack, it encouraged developers to rewrite everything in Java. Developers had to keep features, performance, and security up to the standard by writing and testing new code. Node, on the other hand, picked a design that gets this all for free.

主站蜘蛛池模板: 蓝山县| 尤溪县| 台南市| 永清县| 北票市| 图木舒克市| 山阴县| 田林县| 瑞安市| 武威市| 东阿县| 上犹县| 武功县| 内黄县| 松溪县| 赤水市| 棋牌| 宝清县| 宣城市| 连平县| 海淀区| 家居| 禹城市| 西林县| 门源| 莒南县| 平凉市| 宜都市| 海南省| 蒙山县| 许昌县| 黄山市| 瑞昌市| 黄石市| 湖州市| 镇赉县| 阿巴嘎旗| 乌拉特中旗| 金门县| 潍坊市| 东港市|