On 2/12/14 2:20 PM, Liam wrote:

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]> 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.

Anything that let you access C++ code is going to have to give you some
kind of a pointer access scheme, unless your C++ APIs only ever take and
return strings, ints, etc.  Which will then let you write code that crashes
node.

If you think node-ffi is a little too low-level, then maybe you could write
something a little higher-level over the top; easier for people to use,
less chance they'll write crashing code?

-- 
-- 
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