是否可以使Node.js使用Rhino作为Javascript引擎? [英] Is it possible to make Node.js use Rhino as the Javascript engine?
问题描述
我将Node.js用于Web应用程序上的多项工作,到目前为止一切正常.
I use Node.js for several jobs on my web apps and so far everthing's ok.
但是Node.js使用Google的V8作为默认Javascript引擎(JSE),而V8在x86和ARM指令集体系结构(ISA)上独家运行.
But the Node.js uses Google's V8 as the default Javascript engine (JSE) and V8 runs exlusively on the x86 and ARM Instruction Set Architectures (ISA).
现在我有一台要运行Node.js的PPC处理器Mac计算机.
Now I have a PPC processor Mac computer on which I want to run the Node.js .
为此,建议使用Rhino + OpenJDK Shark虚拟机+低级虚拟机( LLVM )作为JIT编译器.当前,这似乎是在PPC ISA上运行Node.js的最适用方法.还是有更好的方法呢?
To do that, I'm adviced to use the Rhino + OpenJDK Shark Virtual Machine + Low Level Virtual Machine (LLVM) as the JIT compiler. Currently, that looks like the most applicable way of running Node.js on the PPC ISA. Or, is there a better way to do it?
您能否事先告知是否可以使Node.js与Rhino一起使用?顺便说一句,Node.js是用C ++编写的,而且我确实具有C ++编程经验,即如果有必要,我可能会尝试重新编辑Node.js的代码.
Could you tell beforehand if it would be possible to make Node.js work with Rhino? Btw, Node.js is written in C++ and I do have the C++ programming experience, i.e. I may attempt to re-edit the code of Node.js if I have to.
谢谢.
推荐答案
在Rhino上有一个Node.js的实现,名为 MuleSoft的> Rhinodo .
There is an implementation of Node.js on Rhino called Rhinodo by MuleSoft.
但是您不再需要将Rhino用作Node.js的后端-最近有一个端口 Node. js 和 V8 (由Andrew Low(IBM)用于PowerPC).
But you no longer have to use Rhino as a backend for Node.js - there is a recent port of Node.js and V8 for PowerPC by Andrew Low (IBM).
这篇关于是否可以使Node.js使用Rhino作为Javascript引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!