1200pxoldsmobile400cuinbigblockengine1100658013orig

Microsoft opens up Node.js to other JavaScript engines

Moving ahead with plans for its ChakraCore JavaScript engine, Microsoft is developing a standard interface to enable different virtual machines to access the Node.js server-side JavaScript platform. Now running on Linux and MacOS, ChakraCore is an alternative to the V8 engine underlying Node.js.

Microsoft said this week that it has a preview ready of Node-ChakraCore on Linux, which links ChakraCore to the popular Node.js server-side platform. The company also is featuring an experimental implementation of the ChakraCore runtime on x64 Linux and MacOS. ChakraCore is the open source core of the Windows-only Chakra JavaScript engine that powers Microsoft's Edge browser and the Universal Windows Platform.

Microsoft is trying to take Node.js  beyond its current ties to Google's V8 JavaScript engine. The company wants "to make Node be agnostic of the VM it supports based on a standard Node interface," said Arunesh Chandra, Microsoft senior program manager for ChakraCore, at the Node Summit conference in San Francisco this week. "Node is so sensitive to fluctuations in V8 that it breaks the ecosystem quite often," he noted.

Other attempts have been made to port Node to other VMs, such as SpiderNode. Microsoft would like to standardize these efforts under one umbrella.

ChakraShim, a V8 API shim atop the ChakraCore runtime hosting API, powers Node.js on ChakraCore. It implements essential V8 APIs, making the change of the underlying JavaScript engine transparent to Node.js. The effort is still a work in progress, though, and is not an officially supported Node.js branch.

Microsoft claims that bringing ChakraCore to Linux and MacOS X enables developers to build cross-platform applications with the engine. For Linux, development and testing happens mostly on Ubuntu 16.04 LTS, but this support should translate to working with other distributions as well.

However, the engine currently is available on non-Windows platforms in a limited fashion only. "It's an experimental build," Chandra said. "It doesn't have JIT (just in time compilation) or high-performance GC (garbage collection) on it."

IDG Insider

PREVIOUS ARTICLE

« Long-running malvertising campaign infected thousands of computers per day

NEXT ARTICLE

Minecraft for Windows 10 will gain Oculus Rift VR support very, very soon »
author_image
IDG Connect

IDG Connect tackles the tech stories that matter to you

  • Mail

Recommended for You

20 Red-Hot, Pre-IPO companies to watch in 2019 B2B tech - Part 1

Martin Veitch's inside track on today’s tech trends

Training and certification for a cloud native world

Keri Allan looks at the latest trends and technologies

Unicorns are running free in the UK but Brexit poses a tough challenge

Trevor Clawson on the outlook for UK Tech startups

Poll

Do you think your smartphone is making you a workaholic?