- Mastering Node.js(Second Edition)
- Sandro Pasquali Kevin Faaborg
- 245字
- 2021-07-02 19:28:38
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.
- 物聯網識別技術
- 5G承載網網絡規劃與組網設計
- 萬物互聯:蜂窩物聯網組網技術詳解
- 互聯網安全的40個智慧洞見:2014年中國互聯網安全大會文集
- 城市治理一網統管
- WordPress Web Application Development
- 網絡AI+:2030后的未來網絡
- INSTANT LinkedIn Customization How-to
- 計算機網絡技術
- Enterprise ApplicationDevelopment with Ext JSand Spring
- Python Web Scraping Cookbook
- ElasticSearch Server
- 國外物聯網透視
- Hands-On Full Stack Web Development with Aurelia
- 局域網組建與維護項目教程