[nodejs] returning a block of data from a native module

2014-09-02 Thread Pawel Por
Hi, How can I return a block of data from a native module to javascript. The following causes some kind of converison: obj->Set(String::New("name"), String::New(frag->getContent().getBytes(), frag->getContent().length())); and the following does not compile: obj->Set(String::New("name"), node::

[nodejs] additional "require" argument for native module

2014-08-28 Thread Pawel Por
Hi, How can I receive additional "require" argument inside a native module. Assume the following javascript code: var user = require('./user')(client); How can I receive "client" argument in a native module. Could you please provide a short code snippet. thanks -- Job board: http://jobs.nodejs

[nodejs] Re: Error: Symbol myaddon_module not found

2014-04-28 Thread Pawel Por
On Friday, April 25, 2014 11:29:51 AM UTC+2, Pawel Por wrote: > > Hi > > When launching my addon under linux I got the following error message: > Error: Symbol myaddon_module not found > > I can see this symbol in myaddon.node file: > 007eed40 d myaddon_module

[nodejs] Error: Symbol myaddon_module not found

2014-04-25 Thread Pawel Por
Hi When launching my addon under linux I got the following error message: Error: Symbol myaddon_module not found I can see this symbol in myaddon.node file: 007eed40 d myaddon_module I have the following line in my source code: NODE_MODULE(myaddon, myInit) My app.js is as follows: requi

[nodejs] Re: node.lib

2014-04-17 Thread Pawel Por
On Tuesday, April 15, 2014 7:37:01 PM UTC+2, mscdex wrote: > > On Tuesday, April 15, 2014 4:27:49 AM UTC-4, Pawel Por wrote: >> >> also cannot see any nodejs specific library when listing shared library >> dependencies with ldd my_module.node >> >> > &

[nodejs] Re: node.lib

2014-04-15 Thread Pawel Por
On Monday, April 14, 2014 5:14:14 PM UTC+2, mscdex wrote: > > On Monday, April 14, 2014 10:32:25 AM UTC-4, Pawel Por wrote: >> >> I can see that node.lib exists in Windows installation and does not exist >> in Linux one. >> It is used when linking native (C++) mod

[nodejs] node.lib

2014-04-14 Thread Pawel Por
Hi I can see that node.lib exists in Windows installation and does not exist in Linux one. It is used when linking native (C++) modules. I wonder why node.lib is not necessary during linking on Linux. Is everything what is inside node.lib included in ~/.node-gyp/0.10.26/deps/v8/include and ~/.n

Re: [nodejs] printing thread id

2014-02-13 Thread Pawel Por
but "ps" linux command shows that my node application consumes 2 threads. thanks for reply On Thursday, February 13, 2014 1:04:57 PM UTC+1, Alan Hoffmeister wrote: > > I think that Node.js don't have threads, so no TID... > -- > Att, > Alan Hoffmeister > >

[nodejs] printing thread id

2014-02-13 Thread Pawel Por
Hi How can I print thread id in node js ? I mean thread ID (TID) not process ID (PID). thanks for answer -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the

Re: [nodejs] npm to build the npm package

2014-02-07 Thread Pawel Por
equire(’npm’) ? > Am Fr. Feb. 07 2014 15:22:46 schrieb Pawel Por: > > > Hi > > > > Can I use npm to build an npm package itself. > > If so how can I do that ? > > > > thanks for help > > > > -- > > > > -- -- Job Board

[nodejs] non default bindigs.gyp file

2014-02-07 Thread Pawel Por
Hi node-gyp uses bindings.gyp file by default. How can I specify another bindings.gyp file for node-gyp configure | build etc... Is there some option like e.g. node-gyp -b my_bindings.ghp ... thanks for help -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joy

[nodejs] npm to build the npm package

2014-02-07 Thread Pawel Por
Hi Can I use npm to build an npm package itself. If so how can I do that ? thanks for help -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups

[nodejs] nodejs virtual machine

2013-12-16 Thread Pawel Por
Hi I would like to understand how nodejs works in more details. I found on wiki that a part of nodejs is a V8 JavaScript engine. On V8's wiki I can see that it compiles JavaScript into native machine code. Should I understand that nodejs first compiles the JavaScript code into native machine cod