On Mon, Mar 2, 2009 at 4:50 AM, Slide <[email protected]> wrote:
> On Sun, Mar 1, 2009 at 2:54 AM, Stephan Beal <[email protected]> wrote:
>>
>> On Feb 28, 12:10 am, Stephan Beal <[email protected]> wrote:
>>> This evening i've made good progress on sqlite3 bindings for v8.
>>
>> Hi, all!
>>
>> Okay, the sqlite3 wrapper appears to work (except for
>> sqlite3_create_function(), where the created function is apparently
>> getting GC'd before client code can call it), with 48 wrapped
>> functions. i've dropped off the code at:
>>
>> http://wanderinghorse.net/computing/javascript/v8/
>>
>> To use it in your own code, just copy v8-*.{cc,h} into your tree,
>> include v8-sqlite3.h in your app, and call v8::p3::sq3::SetupAddon
>> (yourGlobalJSObject) to install the addon into your global object. The
>> list of bound functions is in v8-sqlite3.h, and includes docs on where
>> the JS/Native APIs differ (normally due to argument passing
>> conventions).
>>
>> As this is my first v8 code, it may have some blatant misuses of v8.
>> It seems to work, but YMMV.
>>
>> Happy hacking!
>>
>
>
> This is great! As I see a lot of people will start doing wrappers like
> this, I think it may be useful to propose some "standard"
> macros/helper functions/etc to help create wrappers such that they
> have a similar layout and code male-up. Is google planning on
> providing anything like this, or would a community led approach be
> accepted?
>
> Thanks,
>
> slide
>

By the way, I didn't mean this message to you personally Stephan, more
of a global question to the list. A follow-up to your excellent work
:-)

Thanks,

slide


-- 
slide-o-blog
http://slide-o-blog.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to