Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I have heard such thing as Script Binding - binding Javascript or lua with API's from C++ or Objective-C. I want to know more about it- however Google has strangely proven unuseful for this.

How is it done? - it OK if I get pointed to other sources, but, just how? I never knew a Scripts jitter could interact with compiled libraries.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

node.js appears to just spin up an instance of v8, parse a JavaScript file and extract a function object from it (in C++) then wrap some external C++ libraries in a v8 object and pass it into the function and call it. From there on out, it's bootstrapped with it's own bridge.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.