tags:

views:

107

answers:

5

Possible Duplicate:
Running V8 Javascript Engine Standalone

I want to try a standalone JavaScript interpreter, rather than executing in Firefox 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?

A: 

edit: misread your question. Sorry xD, take a look at this post instead: http://stackoverflow.com/questions/1802478/running-v8-javascript-engine-standalone

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

Santiago Lezica
Check your clipboard.
Matt Ball
Yeah, I know, I realized my answer had nothing to do with the question right after clicking send =P edited it a second later.
Santiago Lezica
Your link is to an answer about Python.
Matt Ball
LOL. Fixed. I don't know where my head is. Thanks for spotting that, I would've walked away thinking I might've helped someone.
Santiago Lezica
Well i finally installed and it worked .. but there are many things that work in the browser but not in this standalone interpreter For example , the alert(" test") function , it works fine in browser , but not in this standalone one .. am i missing on something here ?
Rahul
+1  A: 

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

Matt Ball
+3  A: 

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

mattbasta
+1  A: 

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

Neall
A: 

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

Edit: Node ppa

indieinvader