Ah, also wanted to ask how does SWIG compare to FFI which load and bind libraries at runtime? I'm guessing SWIG is more efficient since it does the heavy work at compile time but just would like to confirm.


On 1 November 2012 15:05, Olivier Lalonde <olalonde@gmail.com> wrote:
Hi all,

I am completely new to SWIG but I am considering developing SWIG support for Javascript (Node.js). My end goal would be to be able to load (almost) any C library from Node.js and be able to call them using Javascript. If I understand correctly, SWIG can automatically wrap C libraries and make them available in higher level languages is that correct? Now I guess I would need to extend SWIG to make it support Javascript. 

Anyways, sorry if I look a bit confused. I'll start digging deeper in the documentation but any tip on how to get started would be appreciated!

Cheers!

--
- Oli

Olivier Lalonde
http://www.syskall.com <-- connect with me!

Freelance web and Node.js engineer
Skype: o-lalonde




--
- Oli

Olivier Lalonde
http://www.syskall.com <-- connect with me!

Freelance web and Node.js engineer
Skype: o-lalonde