Skip to content

vasun77/ejecta-v8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ejecta-v8

This is a port of @phoboslabs EjectaJS to C++ which uses v8 instead of JavaScriptCore. Think of it as a simple browser. It only offers Canvas and a simple AJAX interface in Javascript, but it is super fast and embeddable. No HTML, DOM or CSS is included - it is for JS only. More information on the topic can be seen in the slides of a presentation we held a while back here: http://www.slideshare.net/KevinRead3/presentation-tng

The original (non-JIT, iOS-only) code can be found at https://github.com/phoboslab/ejecta. This port focuses on Android for now but could easily run on all OS that support OpenGL or OpenGL ES.

We have included pre-built shared libraries for v8, as compiling for Android can be a hassle. Further work is needed to support newer versions of v8, as many things have changed there (see TODO).

You can download the sample app from Play Store: https://play.google.com/store/apps/details?id=ag.boersego.bgjs.sample

Ejecta-v8 is published under the MIT Open Source License (http://opensource.org/licenses/mit-license.php), as is Ejecta.

Building

You need gradle and the NDK to build the library and the sample. To build the library do

cd library
ndk-build
gradle assembleX86Debug
gradle assembleArmDebug

Then you can build the sample.

To-Do

  • Fix support for newer versions of v8
  • Enable loading of more than one script file!
  • Get rid of android.js

About

A port of @PhobosLabs EjectaJS which uses v8 instead of JavaScriptCore.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 63.9%
  • C++ 30.4%
  • Java 4.3%
  • JavaScript 0.8%
  • Objective-C 0.5%
  • Makefile 0.1%