开发者

Is there a way to use Google's v8 JavaScript engine as a standalone interpreter? [duplicate]

This question already has answers here: Closed 12 years ago.

Possible Duplicate:

Running V8 Javascript Engine Standalone

I want to try a standalone JavaScript interpreter, rather than executing in Firefox 开发者_StackOverflow社区all the time. I did find spidermonkey by googling, which could be installed on ubuntu, but is there a way to use Google's v8 as a standalone interpreter?


Yup yup yup! You can download the V8 shell from Google and run it on its own:

http://code.google.com/apis/v8/build.html


edit: misread your question. Sorry xD, take a look at this post instead: Running V8 Javascript Engine Standalone

There you'll find instructions on how to build the interpreter.


Yes, v8 can run standalone. http://code.google.com/p/v8/

Detailed instructions for building v8 on Windows: http://code.google.com/p/v8/wiki/BuildingOnWindows


Not only can you run V8 standalone, there is a great project called node.js that adds some very useful libraries.


If you install node.js it gives you command line access to V8 (sans DOM)

Edit: Node ppa

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜