Questions tagged [libv8]

A gem for distributing the v8 runtime libraries and headers in both source and binary form.

A gem for distributing the v8 runtime libraries and headers in both source and binary form.

The goal of libv8 is two fold: provide a binary gem containing the a pre-compiled libv8.a for as many platforms as possible while at the same time supporting for an automated compilation for all others.

Not only does this drastically reduce gem install times, but it also reduces dependencies on the local machine receiving the gem. It also opens the door for supporting Windows.

87 questions
0
votes
1 answer

Executing bytecode without source in v8 engine

I try to use this source https://github.com/JoseExposito/v8-compiler/blob/master/addon/v8-compiler.cpp in my project. But a function compilation_cache() called from runScript always returns NULL. What can be wrong? What I need to fix in the source…
0
votes
1 answer

What does it mean that v8 compiles js code to native machine code?

How does v8 load and execute the native machine code it generates?
user6872780
0
votes
1 answer

How is javascript compiled by v8?

Take the hello-world as an example. I have couple of questions: What does v8::Isolate do? Does it create an new thread What does v8::Isolate::Scope do? What does v8::HandleScope do? What does v8::Local do? What does…
user6872780
0
votes
0 answers

Strip(remove) exported symbols from static lib

I am embedding v8 in my exe and it's built as a static library, the result is an exe file after full optimization both in compiling and linking. The total exe size is about 13MB .. I noticed that most of the v8 APIs are exported symbols in my exe.…
Ala'a .H
  • 113
  • 8
0
votes
1 answer

V8 library size

We are working on the V8 version 5.3.332 & we choose to compile it as static library. We compiled the library with the following configuration. MAKE_TARGET="android_$BUILD_LIB_VERSION.$BUILD_MODE" make $MAKE_TARGET -j1 snapshot=off…
Srini Edara
  • 101
  • 6
0
votes
0 answers

Rails on WINDOWS: install therubyracer & libv8 - working on a website designed on MAC

I have a website developed with was RoR v 4.2.4 on MAC which needs some adaptions and I'm trying to get in running on my windows 10 (because I don't have a MAC).I was not successfull with the rails installer and rails 5.0. After a lot of pain…
CaptIglu
  • 93
  • 8
0
votes
2 answers

Why installing gem libv8 3.11.8.17 works on ruby-2.1.2, but gives error with ruby-2.3.1?

I'm using RVM to manage my gems. Gemfile: source 'https://rubygems.org' gem 'libv8', '~> 3.11.8' Trying with ruby-2.1.2: #1 Terminal commands on Mac OSX rvm use ruby-2.1.2@test rm Gemfile.lock bundle install The above works normally. Now trying…
Paul Verschoor
  • 1,479
  • 1
  • 14
  • 27
0
votes
1 answer

Rails 4.2.0 assets precompile error "wrong argument type nil (expected Data)"

I've built website using RubyOnRails 4.2.0 on a CentOS 6.6 Linux. I can't assets precompile CoffeeScript. It seems like an error occurred while gem "therubyracer" running. Precompile is succeeded only if CoffeeScript doesn't exist. I use gem…
0
votes
1 answer

Is it required to grab v8::Locker before making v8::Function::Call?

I'm using V8 to execute some custom javascript code, exposing OnUpdate function to JS world. Overall code works fine but currently I'm concerned about performance of below code - is it required to grab v8::Locker for executing any user defined…
Abhi
  • 33
  • 1
  • 4
0
votes
1 answer

V8 NewInstance failing when ObjectTemplate has a Date member

Is V8 Broken or am I? I want to add a JS Date to a Object available in the global object. This works with a older version (4.9.385.28) but fails with (5.0.71.33)... see output g++ -I/usr/local core.c -o testCore -ldl -pthread -std=c++0x -lv8…
Matt
  • 1
  • 1
0
votes
1 answer

How to optimize using v8 hidden classes optimization techniques?

I want to use hidden class concept for making my web app fast. I tried the following code from a tutorial on using hidden class,but it still shows abrupt results. var PROPERTIES = 10000000; function O(size) { for (var i = 0; i < size; i++) { …
Amir
  • 73
  • 5
0
votes
1 answer

Compatibility issues between therubyracer and libv8

Facing compatibility issues between 'therubyracer-0.12.1', 'libv8-3.16.14.0' and 'v8'. Which gem versions will solve this issue?
0
votes
1 answer

Issue upgrading application to rails 4.2.1 with libv8 & devise & therubyracer

My application was working all fine with the following gemfile: source 'https://rubygems.org' #ruby version ruby "2.1.5" # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.10' # Use sqlite3 as the database for Active…
RenegadeAndy
  • 5,440
  • 18
  • 70
  • 130
0
votes
1 answer

gem install therubyracer -v '0.12.1' fails in RubyMine

When I try running the following command gem install therubyracer -v '0.12.1' I am getting the following error. I tried to install libv8, but was not successful then. Can someone please help me out here. Temporarily enhancing PATH to include…
Philip John
  • 5,275
  • 10
  • 43
  • 68
0
votes
1 answer

Gem::RemoteFetcher::UnknownHostError: no such name

I get error when trying to bundle install: Gem::RemoteFetcher::UnknownHostError: no such name (https://rubygems.org/gems/libv8-3.16.14.7-x86_64-darwin-14.gem) An error occurred while installing libv8 (3.16.14.7), and Bundler cannot continue. …
simo
  • 23,342
  • 38
  • 121
  • 218