On Sat, Jun 25, 2011 at 6:49 PM, Brendan Miller <[email protected]> wrote:
> On Sat, Jun 25, 2011 at 4:23 PM, Stephan Beal <[email protected]> wrote:
>>birtthday pa
>> i'm not familiar with ctypes.
>
> ctypes was originally a python library based on libffi. ctypes and

Brendan is right.  I would have responded with more info before, but I
was using my iPhone & mobile GMail while at my nephew's birthday
party. :P  Here's what mozilla says about ctypes:

https://wiki.mozilla.org/JSctypes
https://developer.mozilla.org/en/js-ctypes

>
> The advantage of that kind of interface is you can distribute wrapper
> for native libraries in pure python/javascript/etc. Also, if you have
> multiple implementations that implement ctypes, then your library
> wrappers are totally decoupled from implementation.

That's the idea.  In practice, there's significant overhead in current
implementations for v8 (https://github.com/rbranson/node-ffi).
However, template specialization may help this situation.

>
> I think having both kinds of FFI standardized for javascript would be
> really valuable to different people...

I agree.

-L

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

Reply via email to