On Tue, Mar 29, 2011 at 7:59 PM, gqt65 <[email protected]> wrote:
> I'm starting playing around with v8... but, in order to embed v8 into > my application, I must be able to make a few changes in the language, > mainly, to add a new object type (database) to allow the scripts to > connect to the database. > It sounds like you just want to add access to native (C/C++) features from JS, as opposed to extending the language itself. If that is the case, several list members have created libraries to assist in the binding of native objects (like your database) to v8. My version is here: http://code.google.com/p/v8-juice/wiki/HomePage <http://code.google.com/p/v8-juice/wiki/HomePage>In the "Related works" section of that page are links to several others. You didn't mention which database you're using, but you might be able to find existing v8 bindings for it. (If i'm not mistaken, nodejs has MySQL bindings, and i have started work on binding a C DB access abstraction API which supports sqlite3 and mysql.) If you truly need to extend the language itself, you can't do that without hacking on v8. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
