Node.js v6.3.0 發布

看到Node.js這個名字,初學者可能會誤以為這是一個Javascript應用,事實上,Node.js采用C++語言編寫而成,是一個Javascript的運行環境。為什么采用C++語言呢?據Node.js創始人Ryan Dahl回憶,他最初希望采用Ruby來寫Node.js,但是后來發現Ruby虛擬機的性能不能滿足他的要求,后來他嘗試采用V8引擎,所以選擇了C++語言。既然不是Javascript應用,為何叫.js呢?因為Node.js是一個Javascript的運行環境。Node.js是一個后端的Javascript運行環境(支持的系統包括Linux、Windows和Mac等),這意味著你可以編寫系統級或者服務器端的Javascript代碼,交給Node.js來解釋執行,Node.js采用了Google Chrome瀏覽器的V8引擎,性能很好,同時還提供了很多系統級的API,如文件操作、網絡編程等。瀏覽器端的Javascript代碼在運行時會受到各種安全性的限制,對客戶系統的操作有限。相比之下,Node.js則是一個全面的后臺運行時,為Javascript提供了其他語言能夠實現的許多功能。
更新日志
- buffer: Added
buffer.swap64()to complimentswap16()&swap32(). (Zach Bjornson) #7157 - build: New
configureoptions have been added for building Node.js as a shared library. (Stefan Budeanu) #6994- The options are:
--shared,--without-v8-platform&--without-bundled-v8.
- The options are:
- crypto: Root certificates have been updated. (Ben Noordhuis) #7363
- debugger: The server address is now configurable via
--debug=<address>:<port>. (Ben Noordhuis) #3316 - npm: Upgraded npm to v3.10.3 (Kat Marchán) #7515 & (Rebecca Turner) #7410
- readline: Added the
promptoption to the readline constructor. (Evan Lucas) #7125 - repl / vm:
sigint/ctrl+cwill now break out of infinite loops without stopping the Node.js instance. (Anna Henningsen)#6635 - src:
- Added a
node::FreeEnvironmentpublic C++ API. (Cheng Zhao) #3098 - Refactored
require('constants'), constants are now available directly from their respective modules. (James M Snell) #6534
</ul> </li>
- stream: Improved
readable.read()performance by up to 70%. (Brian White) #7077 - timers:
setImmediate()is now up to 150% faster in some situations. (Andras) #6436 - util: Added a
breakLengthoption toutil.inspect()to control how objects are formatted across lines. (cjihrig) #7499 - v8-inspector: Experimental support has been added for debugging Node.js over the inspector protocol. (Ali Ijaz Sheikh)#6792
- Note: This feature is experimental, and it could be altered or removed.
- You can try this feature by running Node.js with the
--inspectflag.
</ul> </li>
</ul>
下載
Windows Installer (.msi) 32-bit 64-bit Windows Binary (.exe) 32-bit 64-bit Mac OS X Installer (.pkg) 64-bit Mac OS X Binaries (.tar.gz) 64-bit Linux Binaries (.tar.xz) 32-bit 64-bit Source Code node-v6.3.0.tar.gz 其他平臺
ARM Binaries (.tar.xz) ARMv6 ARMv7 ARMv8 SunOS Binaries (.tar.xz) 32-bit 64-bit Docker Image Official Node.js Docker Image Linux on Power Systems 64-bit le 64-bit be Linux on System z Download (Unofficial, provided by IBM) AIX on Power Systems Download (Unofficial, provided by IBM) 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
- Added a