Microsoft Has Requested Edge's JavaScript Engine Be Incorporated Into Node.js

Microsoft recently open sourced Chakra, the JavaScript engine of its Edge browser. That was significant news in itself, but the company has taken it a step further by issuing a massive pull request for Node.js to allow the popular runtime to built against Chakra.

Right now, Node.js uses Google's V8 engine, the same one found in Chrome. Microsoft's recent pull request however gives developers the option to use ChakraCore instead. The comments stemming from the request are heated — as you'd expect for such a change.

Incorporating Charka is no simple task, with the request altering a staggering 4786 files.

Chakra's principal PM manager, Gaurav Seth, goes into some detail about the decision on Microsoft's developer blog:

We believe allowing more Node.js developers to target more platforms is key to its future growth. To do our part in growing the Node.js pie, last year we introduced support for Node.js with Chakra to extend the reach of Node.js and allow developers to target a brand new platform called Windows 10 IoT Core. ... This pull request enables Node.js to optionally use the ChakraCore JavaScript engine. Chakra Shim, which is a layer on top of the ChakraCore JS Engine, enables building and running Node.js with ChakraCore. This shim implements the most essential V8 APIs so that the underlying JavaScript engine change is transparent to Node.js and other native addon modules written for V8.

Whether the pull request will be accepted is — literally — open to debate, but going by the current comments over on Github, it will be integrated once it's been reviewed. Though, given the scope of the changes, it won't be soon.

Submitting a Pull Request to Node.js with ChakraCore [Microsoft]


    Regarding this story, I've made a poll here:

    Please take a little time to share your idea :)

    Hmmm I was just thinking how it would be cool if I could use Node on Windows. I guess when this is done I finally can!

    Last edited 25/01/16 7:42 am

      You can already use node.js on Windows. You can even use node.js on Windows IoT:

      This will remove the Chakra shim and make Chakra one of the "core" javascript engines.

        It was a joke in spirit of how pointless this pull request is. MS just desperately want to stay relevant.

          I think if they really wanted to stay relevant, they'd create a way to make sarcasm more apparent over the internet ;D

          If it's cross-platform, improves the speed and encourages node to become engine agnostic, then Donald Trump could create a PR on GitHub for all I care.

          Though his PR would probably remove all non en-US locales and require every machine that is physically located near the US / Mexico border, have their firewall settings cranked up to maximum.

            :D :D :D

            I can only upvote your comment once. So awesome!

    Umm... What? That's not what this means. I've been running node on Windows (in production) for a while now. Works beautifully!

Join the discussion!

Trending Stories Right Now