Looking for template engine like HTML::Mason (or Mason), so what "compiles" source components into perl code, but instead of perl-code will "compile" components into JavaScript code and after run/execute them with Javascript::V8 perl…
PHP has embedded V8 JavaScript engine, http://www.php.net/manual/en/book.v8js.php. I was wondering what are possible use cases, esp. considering that PHP is synchronous and JavaScript is asynchronous.
I'm new to V8 and plan on using it in a python web application. The purpose is to let users submit and execute certain JS scripts. Obviously this is a security threat so I'm looking for resources that document the ways one might 'lock down' v8. For…
I am new to V8 and trying to create some bindings between my C++ and JS code. The issue is that I am not able to access a global Javascript variable across different Javascript functions. The reason is because each Javascript function is called my…
Let's say I have the code provided in this tutorial.
How would I modify this so that the Point C++ object that is created has its destructor called and is deleted from memory when the GC for V8 destroys the JavaScript wrapper?
Using Google's v8 c++ library, I am wanting to create a context where I have several templates, variables, and globals defined and ready for use by several places in code that may run on different threads, each with its own isolate, where they…
How do I setup/build/run a Google's V8 Engine so that I can call a sample javascript file and see it interpreted step by step all the way down to C++ code?
I'm refactoring my V8 with OpenGL implementation and got stuck with a problem on the execution context.
The concept is the following:
V8GL::initialize()
This method initializes a context and the global template. It also uses the context for glut,…
I want to use the V8 javascript engine standalone, e.g. I will run it in command line as explained here:
$> ./v8-shell -e 'print("10*10 = " + 10*10)'
I want the javascript to perform some http requests, preferably using jQuery APIs but…
I have a little console application that has an embedded v8 engine, and I would like to add a hook to register key events. This all worked before when I was using Qt and QtScript, but I am porting it all over to straight C++ in VC++ 2008. The…
I'm using : https://github.com/Buildstarted/Javascript.ViewEngines as additional Viewengine.
This way i can server side render javascript, react, angular, ... ( it worked before)
For this i need to include a couple of dll in the root directory (…
Here is a node.js addon module I've written in C++ and built using node-gyp.
When StoreFunction I am trying to store a pointer to the function so I can use it later
When I try to invoke it later though in InvokeFunction I get a Segmentation fault.…
I just upgraded my V8 version to 3.20.16 (from some very old version). I can no longer use
Handle obj /* = ... */;
Persistent p = Persistent::New( obj );
to create a persistent handle to an object. The compiler suggests…
I'm trying to create some node.js addons. Inside the addon i have a call to a static lib. Everything compiles ok, but when i call my addon function from javascript, i get the following:
module.js:356
Module._extensions[extension](this, filename);
…