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

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.

主站蜘蛛池模板: 万荣县| 拜城县| 瑞金市| 丘北县| 台湾省| 丽江市| 巴中市| 沈丘县| 潼南县| 宝山区| 和政县| 崇信县| 弋阳县| 静安区| 西峡县| 湄潭县| 裕民县| 泰和县| 凭祥市| 廊坊市| 泸溪县| 伊宁市| 新余市| 台江县| 兴和县| 余江县| 宜黄县| 绵阳市| 长白| 商都县| 涟源市| 上思县| 犍为县| 南澳县| 汾西县| 扎赉特旗| 四子王旗| 江油市| 上犹县| 高尔夫| 孟村|