All Projects → nitely → V8 Cffi

nitely / V8 Cffi

Licence: mit
Embed the V8 Javascript Interpreter into Python

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to V8 Cffi

Fibjs
JavaScript on Fiber (built on Chrome's V8 JavaScript engine)
Stars: ✭ 2,880 (+9190.32%)
Mutual labels:  v8
V8eval
Multi-language bindings to JavaScript engine V8
Stars: ✭ 332 (+970.97%)
Mutual labels:  v8
V8.dev
The source code of v8.dev, the official website of the V8 project.
Stars: ✭ 567 (+1729.03%)
Mutual labels:  v8
Web Tooling Benchmark
JavaScript benchmark for common web developer workloads
Stars: ✭ 290 (+835.48%)
Mutual labels:  v8
Jk
Configuration as Code with ECMAScript
Stars: ✭ 322 (+938.71%)
Mutual labels:  v8
Deep Into Node
深入理解Node.js:核心思想与源码分析
Stars: ✭ 4,005 (+12819.35%)
Mutual labels:  v8
Go V8
Go binding for v8
Stars: ✭ 255 (+722.58%)
Mutual labels:  v8
V8 Bailout Reasons
🔧 A list of Crankshaft bailout reasons with examples
Stars: ✭ 861 (+2677.42%)
Mutual labels:  v8
Memeye
👀 The eye of memory. A lightweight memory monitor and dashboard for Node.js application on development.
Stars: ✭ 332 (+970.97%)
Mutual labels:  v8
Type Profile
Collect runtime type information 😻 of your JavaScript code.
Stars: ✭ 518 (+1570.97%)
Mutual labels:  v8
Little Javascript Book
Early draft for The Little JavaScript Book
Stars: ✭ 305 (+883.87%)
Mutual labels:  v8
V8.js.cn
V8 官方网站中文翻译
Stars: ✭ 308 (+893.55%)
Mutual labels:  v8
V8py
Write Python APIs, then call them from JavaScript using the V8 engine.
Stars: ✭ 399 (+1187.1%)
Mutual labels:  v8
Dvm
Deno Version Manager - Easy way to manage multiple active deno versions.
Stars: ✭ 271 (+774.19%)
Mutual labels:  v8
Liquidcore
Node.js virtual machine for Android and iOS
Stars: ✭ 765 (+2367.74%)
Mutual labels:  v8
Javascriptengineswitcher
JavaScript Engine Switcher determines unified interface for access to the basic features of popular JavaScript engines (ChakraCore, Jering.Javascript.NodeJS, Jint, Jurassic, MSIE JavaScript Engine for .NET, NiL.JS, Microsoft ClearScript.V8 and VroomJs). This library allows you to quickly and easily switch to using of another JavaScript engine.
Stars: ✭ 265 (+754.84%)
Mutual labels:  v8
Javascript Idiosyncrasies
A bunch of Javascript idiosyncrasies to beginners.
Stars: ✭ 353 (+1038.71%)
Mutual labels:  v8
Monomorphist
monomorphist - a JavaScript performance companion
Stars: ✭ 30 (-3.23%)
Mutual labels:  v8
Cef4delphi
CEF4Delphi is an open source project to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows, Linux and MacOS.
Stars: ✭ 785 (+2432.26%)
Mutual labels:  v8
React Native V8
Opt-in V8 runtime for React Native Android
Stars: ✭ 514 (+1558.06%)
Mutual labels:  v8

V8-CFFI

Build Status Coverage Status pypi licence

Embed the V8 Javascript engine into Python.

Note: The initial purpose of this library is to render React components server side.

Compatibility

  • GCC +4.8
  • G++ +4.8
  • Python 2.7, 3.4, 3.5 and PyPy 5.3

Note: Linux-x64 is the only (officially) supported platform. To build the binaries for other platforms, the ./dev steps must be adapted (probably to vagrant instead of docker) accordingly. PRs are welcome.

Usage

from v8cffi import shortcuts
shortcuts.set_up()

ctx = shortcuts.get_context()
ctx.load_libs(['./foo_bundled.js'])
ctx.run_script('foo.render("hola mundo");')
# "hola mundo"

Read the docs.

Notes

  • Currently ships with V8 4.9.385.33 (stable).
  • This repo contains V8 static files for Linux-x64, built with CentOS 6.7 (glibc 2.12), it's known to work in Ubuntu 12.04/14.04/16.04.

Resources

Devs

Devs

Benchmarks

This will run some silly benchmarks. It runs about ~110k ops/s on a 1.8GHz CPU.

$ make benchmarks

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].