In theory the engine could be swapped out with Chakra, though in practice it would cause a lot of problems due to all the modules that contain C++ code which directly interacts with V8.
The amount of widely used C++ modules is small, and the modules themselves are very small and easy to port. Seems Node community has exercised good restraint in this sense.
And as someone who develops on Windows I'm used to everything going to shit as soon as native code becomes part of the equation, especially from past experiences with C++ and Python (pre-3.5). But with Node/node-gyp everything seems to just work, and thanks to nan it even works across different version of Node.
3
u/Patman128 Dec 05 '15
Node is built on top of the V8 JavaScript engine.
In theory the engine could be swapped out with Chakra, though in practice it would cause a lot of problems due to all the modules that contain C++ code which directly interacts with V8.