Hi, For embedding V8 into an application and creating custom extensions, please see: http://code.google.com/apis/v8/embed.html
I'd recommend taking at least a look at CommonJS and its implementations: http://www.commonjs.org/impl/ CommonJS tries to create a standardized operating environment for scripting with JavaScript outside of the browser. That Web page has a list of currently adhering implementations which offer varying modular capabilities. I'm not sure of the level of difficulty involved in integrating an existing C/C++ application with one of those engines, so the other obvious option might be to "simply" embed the V8 engine itself and write the various extensions to V8 you'd need. ( Unless you'd like to embed with Java, in which case I'd recommend Mozilla's Rhino engine: http://www.mozilla.org/rhino/ ) On the list, the Narwhal platform might be closest to what you'd like, as it can use the V8 engine ( for selecting an engine, see http://narwhaljs.org/engines.html ) and offers modules and various other things you seem interested in. I hope this is helpful, pikpik -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
