News for hackers. Stuff that matters.
Re:Type conversions from JavaScript to C++ in V8 by amelius on Sunday April 03, 2016 @03:02PM (#11417171)
http://www.swig.org also supports V8.

Does anybody know if NodeJS uses SWIG?

Re:Type conversions from JavaScript to C++ in V8 by wasdfan on Sunday April 03, 2016 @08:22PM (#11418599)
Swig is amazing at quickly converting simple functions (i.e., functions that return an int and other simple types). But if you want to make a C++ function that returns an array or something like a JS object, SWIG doesn't seem to be able to automatically convert it into its javascript equivalent (AFAIK -- could be wrong here).