v8

IDE for ECMAScript-262 with in IDE execution / debugging for node.js/V8

I currently use Eclipse as my IDE for other languages and I'm rather used to not having to leave the IDE for anything - however I'm really struggling to find the same or a similar setup for pure ECMAScript-262. To clarify, I am not looking for DOM support, jquery, HTML or anything like that, preferably just an IDE with ECMAScript-262 su...

Is Javascript under V8 faster than equivalent code on other languages?

Anyone know whether Javascript on V8 runs faster than equivalent code on other languages such as Python, Perl, PHP etc...? ...

Java application scripting

Whats the fastest/best scripting language/API that is available that can be integrated into Java applications. Is there any Java bindings for Google's v8 JavaScript engine? Defining fastest as in raw processing speed, e.g. how many times a script can be run in a second using a relativity high number of language features. Defining best...

how to create an utf8 string in Google V8 engine

Hello Im using v8 engine embedded in C++ program and I met a string problem. Well of course v8 engine fully support utf8 string, but i just dont know how. char path[ 1024 ]; GetCurrentDirectory( 1024, (LPWSTR)path ); script->Path = String::New(path); However, the result is the only character "D", for String::New only accepts char*...

best way to run narwhal under linux

I'm checking out narwhal. It seems pretty cool, and I'm particularly impressed with the tusk package management system. However, since narwhal runs under rhino, the usefulness of this command-line tool is impinged upon by the JVM's obscene startup times. I'm aware of narwhal's ability to run under different engines, but it's unclear w...

Javascript eval() Exception - line number

In JavaScript I have a var str = ".a long string that contains many lines..." In case of exception that caused by eval(str); I had like to catch it and print the the line number that caused the exception. (the line internal to str..) Is it possible? EDIT As part of the Alligator project (http://github.com/mrohad/Alligator), an applica...

node.js inspecting dom like standard javascript

How is it possible to create document object from html source and use document.* functions like getElementById in node.js? ...

How can I access a dynamic variable created in C++ from Javascript? (bound via V8)

Google was nice enough to explain how to wrap C++ class methods with accessors that can be used from the V8 Javascript engine. However, they don't mention how to determine the name of the JavaScript object that will have these accessor properties available. How do I tell V8 Javascript what the name of the C++ class instance (from the s...

Calling a function with variable number of arguments with an array in C++ (like python's * operator)

Hello world! I'm trying to write a v8 module in C++; there, the functions receive a variable number of arguments in an array. I want to take that array and call a function like gettext and printf that receives a formatted string and it's necessary args. The thing is, how can one take an array and send the elements as arguments to one of...

Does JavaScript have the equivalent of Python's __getattribute__?

Does JavaScript have the equivalent of Python's __getattribute__? In the sense that I'd like an object, a, for which a reference to a property x is equivalent to a.__get__('x'). Trying to get this to work in V8. Possible? Example: an object which makes REST-ful calls: RESTful("some-url").foo({x:1}) => response of call to "some-url/foo?...

Chrome V8 Bug? Function Acting different after being called a 2nd time.

Please take a look at the following JavaScript. I've taken stuff out of it, so you may focus on the essence of the problem. You'll notice that I call the prepPath function twice in a row, passing in the exact same string. In firefox and IE8, this function alerts true each time (as expected). But, in Chromium 5.0.375.127 (55887) Ubuntu 1...

Tab-completion for V8 interpreter?

I'm using V8 javascript interpreter on the command line but it has no tab-completion. Is it possible to add it somehow? ...

v8 source code build - is there a python 3.1 version of sconstruct file?

Or can you only build v8 with python 2.x? I have tried 2to3.py but it still freaks! ...

Show all object methods in a list in Chrome console?

I really love the Chrome console because it autocompletes all the object methods for me. But it only shows one at a time and I have to press TAB to step to the next one. Is there a way to show a list of all the autocompletion object methods? ...

Why does this supersimple NamedPropertyHandler-Stub crash the v8-Runtime?

This is basically the sample code from the 'Getting started' section of the documentation in which I stubbed out an ObjectTemplate provided with a NamedPropertyHandler. The JSON.stringify is just there to trigger an enumeration over the object's keys. The code can be compiled and run as is. #include <v8.h> using namespace v8; Handle...

XSLT libray for v8/Node.js

After some quick Googling, I found that there are some XML libraries available for v8/Node.js: http://github.com/ry/node/wiki/modules#parsers-xml However, after drilling down into these modules, it seems that they only provide support for parsing XML documents, and manipulating them with DOM. I'm wondering if anyone is aware of an XSLT ...

What IDE to use for Node.js / Javascript?

What is your preference when it comes to editing/debugging large JavaScript projects, containing number of relatively big JS files? Please list your choice, why do you like it compared to others; If it is already listed you can up vote it if you like. ...

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

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? ...

Javascript engine with good interoperability with JVM and CLR

Due to the huge resources behind it, Javascript seems to rapidly becoming the scripting language of choice for applications, particularly those with a web front end. I have an application that requires extensibility both on the front and backend. Javascript, or a thin wrapper like CoffeeScript, seems like an excellent, future-oriented, ...

Why properties added via Object.definePropery are not iterable in Javascript

Consider this code: var a = { get aa() { return 'aa'; } }; Object.defineProperty( a, 'bb', { get: function() { return 'bb'; } } ); for(p in a) { sys.puts(p + ': ' + a[p]); } The output is: aa: aa However property bb is perfectly accessible and working. Why 'bb' is ...