ServerJS/C API: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
 
Line 14: Line 14:
* NSPR API Reference https://developer.mozilla.org/en/NSPR_API_Reference
* NSPR API Reference https://developer.mozilla.org/en/NSPR_API_Reference
* K7 http://github.com/sebastien/k7 Uses a system of C preprocessor macros to product cross-interpreter native modules.
* K7 http://github.com/sebastien/k7 Uses a system of C preprocessor macros to product cross-interpreter native modules.
* Flusspferd's C++ api http://docs.flusspferd.org/ provides a nicer (and slightly abstracted) C++ API to Spidermonkey

Latest revision as of 12:40, 17 May 2009

C API

For C/C++ based JavaScript interpreters, being able to interface easily with C libraries is a big win because of all of the available functionality. Each JavaScript interpreter has its own bridge to C, but if there is some common API (possibly exposed at the JavaScript level as in ctypes), then this will make it much easier to share work between interpreters.

Prior Art