Node.js 16 Adds Apple Silicon Support
Written by Kay Ewbank   
Wednesday, 21 April 2021

Node.js, the JavaScript runtime, is available with built-in support for Apple Silicon for the first time. The new release also improves its support for Promises, and has the updated 9.0 release of the V8 JavaScript engine.

Node.js is an open-source, cross-platform asynchronous event driven JavaScript runtime built on Chrome's JavaScript engine. It uses an event-driven, non-blocking I/O mode and executes JavaScript code outside web browsers.

nodejslogo

The new release is the first that ships with prebuilt binaries for Apple Silicon. The developers say that while they’ll be providing separate tarballs for the Intel (darwin-x64) and ARM (darwin-arm64) architectures the macOS installer (.pkg) will be shipped as a ‘fat’ (multi-architecture) binary.

The Node.js team says that the new version of the V8 JavaScript engine provides some performance tweaks and improvements. One of the improvements is the inclusion of ECMAScript RegExp Match Indices, which provide the start and end indices of the captured string. The indices array is available via the .indices property on match objects when the regular expression has the /d flag.

In practical terms, the most useful addition is that the Timers Promises API has been declared as stable in the new version. It provides an alternative set of timer functions that return Promise objects, removing the need to use util.promisify().

The other improvements have mainly already been recently added to Node.js 15, including an experimental implementation of the standard Web Crypto API; npm7; and a stable AbortController implementation based on the AbortController Web API.

Node.js 16 is downloadable now. It will be the ‘Current’ release for the next 6 months and then promoted to Long-term Support (LTS) in October 2021.

nodejslogo

More Information

Node.js Foundation Homepage

Related Articles

Node.js 15 Improves Rejection Handling

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Rust Twice As Productive As C++
03/04/2024

Google director of engineering, Lars Bergstrom, gave a talk at the recent Rust Nation UK conference and claimed that Rust was twice as productive as C++. Given how good Google is at C++, this is quite [ ... ]



CISA Offers More Support For Open Source
22/03/2024

The Cybersecurity and Infrastructure Security Agency (CISA) has announced a number of key actions that they hope will improve the open source ecosystem.


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Wednesday, 21 April 2021 )