-
-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Description
Provide support for native modules similar to Node.js addons. Regular JavaScript modules are loaded as follows
var myModule = require('./myModule.js');Similarly, we can load native module as follows
var myModule = require('./libMyModule.so');Native modules provide glue to C and C++ libraries. They are useful in performance sensitive scenarios because they avoid JavaScript-to-Java marshalling. Good examples are OpenGL libraries.
You can find sample implementation of native module here.