Is it necessary for Node.js (version 0.11+) addons to define
BUILDING_NODE_EXTENSION macro? The compiler warns me that the macro is
enabled by default.
Examples in the Addons Documentation http://nodejs.org/api/addons.html define
this macro. Is this deprecated?
Cheers,
Blaz.
--
Job board:
I am working on a linear algebra Node.js addon (written in C++) and I want
to be able to save to and read from disk all objects I exposed.
For example, v = la.load(fs.open(vector.out, r-)); would load a vector
object I previously saved with v.save(fs.open(vector.out, r+));. (I'm
making it up
Hi,
suppose I have wrapped a vector TJsVec and there's a function static void
multiply(const v8::FunctionCallbackInfov8::Value Args); that returns a
new TJsVec, scaled by a scalar:
void TJsVec::multiply(const FunctionCallbackInfoValue Args) {
Isolate* Isolate = Isolate::GetCurrent();
, blazs wrote:
Thanks, I'll keep that in mind. And there is no documentation like Addons
v0.10 http://nodejs.org/api/addons.html for the 0.12 version?
On Tuesday, September 23, 2014 7:20:19 PM UTC+2, Fedor Indutny wrote:
I'd certainly recommend using nan.
However, in the new V8 API it'll look
:
args.GetReturnValue().Set(...)
On Tue, Sep 23, 2014 at 7:06 PM, blazs blaz@gmail.com javascript:
wrote:
Thanks, this is helpful! Dramatic changes in the V8 API are giving me a
headache.
Suppose I have the following scenario. I wrapped a C++ object v of type
NodeJsVec and I want
Hi,
I am looking for Node.js C++ Addon examples, written for v0.12 version of
the Node.js --- the one that uses V8 version 3.22. There are major changes
between V8 3.14 and V8 3.22, and I'd like to update my code for V8 3.22 as
soon as possible. Examples on the official GitHub repository are
/joyent/node/blob/master/doc/api/addons.markdown#hello-world
Cheers.
On Tue, Sep 23, 2014 at 11:48 AM, blazs blaz@gmail.com javascript:
wrote:
Hi,
I am looking for Node.js C++ Addon examples, written for v0.12 version of
the Node.js --- the one that uses V8 version 3.22