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...
Anyone know whether Javascript on V8 runs faster than equivalent code on other languages such as Python, Perl, PHP etc...?
...
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...
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*...
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...
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...
How is it possible to create document object from html source and use document.* functions like getElementById in node.js?
...
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...
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__? 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?...
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...
I'm using V8 javascript interpreter on the command line but it has no tab-completion.
Is it possible to add it somehow?
...
Or can you only build v8 with python 2.x?
I have tried 2to3.py but it still freaks!
...
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?
...
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...
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 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.
...
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?
...
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, ...
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 ...