Heard of V8 but haven't got a clue how to run it? Here's a quick guide
to get you started. This guide is intended for Mac OS, but there are
detailed Windows instructions.
another program. Fortunately Google provide a sample shell that can be
built with the bundled build chain.
Assuming you've already got Xcode installed, get
Scons. V8 uses this as its build tool. It's easy to install from source, but you could also use MacPorts. MacPorts
will fetch a whole bunch of dependencies -- if you're on Leopard or Snow
Leopard you should be OK to just build it yourself.
I installed it like this:
sudo python setup.py install
Fetch V8 from the Google Code subversion repository:
svn checkout http://v8.googlecode.com/svn/trunk/ v8
Then build V8 and the sample shell:
scons # Wait for a bit... scons sample=shell
You will be able to run the interpreter with
To get command history and more, install
rlwrap. I actually
did install this from ports.
V8 version 188.8.131.52 > print("hello world"); hello world >
I also tried a library I wrote, with insanely fast results: