Hello,

I have written a C++ library and I would like to make it work like a 
Node.js addon (see https://nodejs.org/api/addons.html#addons_c_addons), but 
for V8.

However, I am not sure what is the best way to do that. Some 
thoughts/limitations are:

1. I would prefer to connect it directly with V8, without any extra 
interfaces (like nbind, for example) or Node.js.
2. Compiling the library to JavaScript (e.g. using Emscripten) is not an 
option.
3. Ideally, I would like to be able to load it in any instance of V8, such 
as in Chrome, (maybe via the "require(…)" keyword, like a Node.js addon?), 
so embedding the library with V8 and shipping it as an executable would not 
be a neat choice. I also guess that this diminishes the option to compile 
the library as a builtin V8 library function.

I would really appreciate any suggestions you might have. 🙂

― Vangelis

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to