embedded-v8 Questions

4

Solved

I'm looking for a solution for embedding the Google JavaScript engine V8 in my Java application. Have you got some solutions?
Treytri asked 16/6, 2011 at 9:44

4

Solved

I need to serialize moderately complex objects with 1-100's of mixed type properties. JSON was used originally, then I switched to BSON which is marginally faster. Encoding 10000 sample objects ...
Cappella asked 2/6, 2011 at 18:13

2

Solved

I am looking to embed v8 and have a module available that exports a function that calls into c++ code. For example, let's assume I have something like the following in main.js: import {foo} from '...
Fountainhead asked 12/7, 2019 at 16:40

3

Solved

I am working with c++ and v8, and have run into the following challenge: I want to be able to define a function in javascript using v8, then call the function later on through c++. Additionally, I ...
Agrapha asked 8/7, 2012 at 21:53

1

Solved

I use an embedded V8 engine in my (Windows Desktop) C++ application. I understand that V8 has support for ES6 modules. How would I go about activating and using this feature in my application? I ...
Mollescent asked 26/8, 2018 at 4:22

6

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 asynchrono...
Tirrell asked 7/8, 2013 at 9:55

1

Solved

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 reaso...
Clisthenes asked 27/8, 2017 at 0:10

1

Following is v8 code comment, I don't quite understand explaination. /** * Marks the reference to this object independent. Garbage collector * is free to ignore any object groups containing this...
Xiphoid asked 24/5, 2013 at 9:3

2

Solved

I'm making a game engine for school, and I want to use Google's V8 to allow for JavaScript scripting in-engine. The engine is written using Visual Studio 2013, and as the final game must not exceed...
Aveyron asked 9/10, 2014 at 20:26

2

I'm having some trouble installing phpv8js on Ubuntu. I've made sure I have a recent version of libv8 installed and have the required version of PHP but the install fails using PECL. Here's the o...
Swanhildas asked 14/10, 2011 at 16:23

1

Solved

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 ...
Brushoff asked 13/8, 2014 at 19:47

1

I have the following, almost working piece of code written in c++: [..] Handle<Object> jsGlobal; Handle<Function> jsUpdateFunc; void setupJs () { V8::Initialize(); Isolate* isolate...
Bugaboo asked 16/10, 2015 at 11:2

1

I'm having trouble cleaning up garbage in V8. First, my Javascript is as follows: var bigstring = "ASD"; for (var b = 0; b < 20; b++) { bigstring = bigstring + bigstring; } trace("bigstring " ...
Slr asked 30/5, 2014 at 19:6

1

Solved

The following program is based on the example in the v8 Getting Started page. I have made three changes to demonstrate a problem I am encountering: I create an empty array put it into the global ...
Hardboard asked 16/7, 2014 at 1:59

2

Solved

What is the difference/connection between these objects in V8? Does a context "belong" to an Isolate or vice versa? I know that a single Isolate may only be accessed by one thread at a time (and t...
Motoneuron asked 15/10, 2013 at 14:24

1

Solved

I'm having trouble understanding what the SetInternalFieldCount() function actually does. In the v8 documentation the function is described as setting "the number of internal fields for objects gen...
Terms asked 17/5, 2013 at 3:2

1

Solved

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?
Motoring asked 13/1, 2013 at 20:42

3

Solved

Is it possible to access the AST of the v8 engine, for a given JavaScript code? I'm working on a JavaScript Static Analyzer using V8 engine.

2

Solved

I've been studying the v8 source, particularly at how the 'mksnapshot' tool includes a compiled image of the native javascript files(runtime.js, json.js...) in the v8 binaries and noticed that it a...
Khajeh asked 29/9, 2012 at 14:18

0

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...
Frolic asked 1/8, 2012 at 10:5

1

Solved

I would like to embed a javascript engine into an ANSI C application. In fact, I would like to be able to run some code entered on runtime, while being able to interact with some C variables and ...
Hawthorne asked 30/6, 2012 at 10:59

2

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 t...
Nicosia asked 19/3, 2012 at 10:57

3

Solved

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 htt...
Fibrinolysis asked 1/12, 2011 at 1:12

2

Solved

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 ...
Cooler asked 7/8, 2011 at 18:9

1

Solved

I have successfully embedded Chromium into my Delphi 6 projects with the help of Delphi Chromium Embedded. Now I want to be able to execute Javascript code and the have results returned to my host ...
Overdye asked 31/7, 2011 at 23:30

© 2022 - 2024 — McMap. All rights reserved.