On Wednesday, February 12, 2014 3:18:41 AM UTC-8, Peter Tribble wrote:
>
> On Wed, Feb 12, 2014 at 11:00 AM, Liam <[email protected] 
> <javascript:>>wrote:
>
>> Is anyone aware of a module which would allow most C/C++ libraries to be 
>> accessed from node.js apps with minimal work?
>>
>
> That sounds rather like node-ffi. Using ffi is a way to do
> exactly what you describe, and is used in other languages.
>

node-ffi lets you write JS that crashes node, because you are manipulating 
low-level constructs from JS. That's rather worse than having C++ glue code 
crash node. Also it doesn't seem to be widely used.

Library users need a scheme that performs well and can't crash node. 
Needing some glue code in C++ for each library isn't necessarily a burden, 
so long as that code is readable.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" 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/groups/opt_out.

Reply via email to