Welcome to my v8 addons repository
This project has moved to a shiny new home at Google Code:
http://code.google.com/p/v8-juiceOlder content...
This is my Fossil source code repository for add-ons for Google's v8 JavaScript engine. Current add-ons include:
- Templates for "binding" v8::External objects to native objects in a type-safe manner (no casting, as is required by the normal External interface).
- Templates for converting to/from JS/native types using a uniform, typesafe interface, including converting (without casting) v8::External handles to native types bound using the binding API.
- A plugins API, for loading new features at runtime via DLLs.
- A sprintf() implementation for JS.
- sqlite3 bindings. Everything one really needs for working with sqlite3 databases is implemented, including implementing custom SQL functions from JS code. These bindings are a port of older work for the SpiderMonkey engine, and are demonstrated at the original site: http://spiderape.sourceforge.net/plugins/sqlite/
- ncurses bindings. Like the sqlite3 bindings, these are port of older SpiderMonkey-based code: http://spiderape.sourceforge.net/plugins/ncurses/
- A JavaScript-side IODevice class.
Downloads
See the downloads page.
TODOs
The more significant TODOs for this code in general are:
- General-purpose C++-to-JS class wrappers. This is a tricky problem, but there's lots we can do with a bit of template magic.