v8

Is Google Chrome's V8 engine really that good?

Did anyone have time to take a look at it? I've read a bit and it promises a lot, if it's half what they say, it'll change web programming a lot ...

How do you free a wrapped C++ object when associated Javascript object is garbage collected in V8?

V8's documentation explains how to create a Javascript object that wraps a C++ object. The Javascript object holds on to a pointer to a C++ object instance. My question is, let's say you create the C++ object on the heap, how can you get a notification when the Javascript object is collected by the gc, so you can free the heap allocated ...

How can I see the machine code generated by v8?

Does anybody know how I can see the actual machine code that v8 generates from Javascript? I've gotten as far as Script::Compile() in src/api.cc but I can't figure out where to go from there. ...

What are the code and data footprints of the leading javascript engines? (V8, Squirrelfish, TraceMonkey..)

Since the speed of the top Javascript engines seems to be on par, the next criteria is footprint. What are the code and data footprints of the leading javascript engines? ...

V8 JavaScript Engine on Windows (MinGW)

The build instructions of V8 JavaScript Engine mention only Visual Studio 2005 and 2008. Has anybody been successful with MinGW on Windows XP/Vista? ...

Referencing Google's V8 engine from a .NET app

I'm building a .NET 3.5 application and have the need to evaluate JS code on the server - basically a user provided rule set that can work within a browser or on the server. Managed JS is not an option, because the JS code would be provided at runtime. Aptana's Jaxer is also not an option. So I was looking into using a build of the V8 en...

How do the various Javascript optimization projects affect DOM performance?

There's a lot of capital C, capital S computer science going into Javascript via the Tracemonkey, Squirrelfish, and V8 projects. Do any of these projects (or others) address the performance of DOM operations, or are they purely Javascript computation related? ...

Google's V8 Javascript Engine in .Net?

Has anyone been able to do this? ...

Can't convert function pointer argument

The error I'm getting: error C2664: 'v8::FunctionTemplate::New' : cannot convert parameter 1 from 'v8::Handle<T> (__cdecl *)(const v8::Arguments &)' to 'v8::InvocationCallback' Relevant definitions: typedef Handle<Value> (*InvocationCallback)(const Arguments& args); template<class C> class V8ScriptClass { public: template<cla...

How do you include another js file in Google's v8?

How do you include another script file inside a .js script file in v8? There's the <script> tag in HTML but how can it be done inside a v8 embedded program? ...

How to turn the V8 compiled javascript into an EXE?

I know that google's v8 compiles javascript into native machine (binary if I understand correctly) code. Is there a way to take the output and turn it into a exe? ...

How to incoparate or implement a DOM API to v8?

I am writing a server application that is able to manipulate the DOM before it is served to the client. I am using C++ and Google's v8 as a javascript engine but I don't see any DOM API in v8. Is there an open source implementation for doing DOM manipulation on HTML? If not how would you implement one? ...

Building v8 without JIT

Hello, I would like to run some tests on v8 with and without JIT to compare performances. I know JIT will improve my average speed performance, but it would be nice for me to have some actual more detailed tests results as I want to work with mobile platforms. I haven't found how to enable or disable JIT like it exists on Squirrelfish ...

Throwing a JavaScript exception from C++ code using Google V8

I'm programming a JavaScript application which accesses some C++ code over Google's V8. Everything works fine, but I couldn't figure out how I can throw a JavaScript exception which can be catched in the JavaScript code from the C++ method. For example, if I have a function in C++ like ... using namespace std; using namespace v8; ... ...

Is it possible to use d8 to measure memory usage?

With the release of the Closure compiler, I was hoping to see if there was a difference in memory usage between a js file using the compiler and one which had not. In particular, on a mobile platform like Palm's WebOS, the very limited amount of memory available means that every little bit will help. EDIT: I should point out that d8 i...

How do I escape a string for a shell command in nodejs (V8 Javascript engine)?

In nodejs, the only way to execute external commands is via sys.exec(cmd). I'd like to call an external command and give it data via stdin. In nodejs there does yet not appear to be a way to open a command and then push data to it (only to exec and receive its standard+error outputs), so it appears the only way I've got to do this right ...

Running V8 Javascript Engine Standalone

I want to run a Javascript console on top of V8. How do I do this? ...

Managing lots of callback recursion in Nodejs

In Nodejs, there are virtually no blocking I/O operations. This means that almost all nodejs IO code involves many callbacks. This applies to reading and writing to/from databases, files, processes, etc. A typical example of this is the following: var useFile = function(filename,callback){ posix.stat(filename).addCallback(function (...

What is node.js?

I don't fully get what node.js is all about. Maybe it's because I am mainly a web based business app developer. Can someone please explain what it is and the use of it? Thanks. My understanding so far is that: The programming model is event driven, especially the way it handles IO. It uses javascript and the parser is V8. It can be ea...

Confusing operation of JavaScript `var` keyword

I’ve run into a very strange (to me) problem with the var keyword. I’ve reduced it to a fairly minimal test case, and found it’s exhibited in Node.js (thus, V8 and Chrome), Safari 4’s inspector (thus, Nitro), and FireBug (obviously, SpiderMonkey). I was originally preparing a bug report, but since it’s so widely displayed, I’m going to a...