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

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.

主站蜘蛛池模板: 祥云县| 中方县| 黄冈市| 西吉县| 和林格尔县| 安陆市| 东城区| 扬州市| 朝阳区| 大新县| 敖汉旗| 博乐市| 思南县| 鹤山市| 周宁县| 津南区| 瓮安县| 武清区| 东平县| 长顺县| 乡宁县| 九江县| 晋州市| 金乡县| 嘉定区| 阿城市| 珠海市| 洪洞县| 土默特右旗| 福安市| 广水市| 德昌县| 南和县| 集安市| 会昌县| 丰都县| 阳城县| 汪清县| 唐山市| 含山县| 连城县|