Re: [nodejs] DTrace

2014-09-17 Thread Peter Tribble
Luke,

I've read that DTrace is a powerful tool for introspection and tracing in
> Node.. and also that SmartOS provides DTrace support built-in.
>
> However, we've also been looking at CoreOS w/Docker as an
> alternative/augmentation of our virtual environment setup.
>
> Does anyone know of a way to install DTrace on CoreOS/Docker (in any way,
> e.g. install SmartOS/Illumos within a Docker Container, Install DTrace on
> Ubuntu, etc), or is SmartOS the only way to go?  If SmartOS is the only
> way, then has anyone considered how Docker can be included in a SmartOS
> driven infrastructure, or does SmartOS offer an alternative?
>

Well, SmartOS, like Solaris and the other illumos distributions, has zones,
which offer
similar functionality to Containers/Docker. I've been using zones for the
sort of use
cases that Containers/Docker addresses for the last decade.

It's not identical, and the implementation and administration are
different, but it's along
the same lines. Of the illumos distros, SmartOS is probably the closest to
CoreOS.

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAEgYsbGkntB81k%2BsW85Y3s-mAaM8Lt4SwdLoeWO2GCtYjQTQOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [nodejs] module/addon to access any C/C++ library in JS

2014-02-12 Thread Peter Tribble
On Wed, Feb 12, 2014 at 11:00 AM, Liam  wrote:

> Is anyone aware of a module which would allow most C/C++ libraries to be
> accessed from node.js apps with minimal work?
>

That sounds rather like node-ffi. Using ffi is a way to do
exactly what you describe, and is used in other languages.

(I'm not sure how well maintained it is, and for performance
sensitive work there's a significant overhead.)


> Just brainstorming, I imagine this could be done by loading the library in
> a generic process that provides an efficient IPC service. Library-specific
> glue code to handle IPC msgs would be confined to that process, and not use
> the (arcane) V8 api. A generic node module would provide the IPC client.
>
> I've written or contributed to a handful of C++ glue modules for libraries
> and they're a pain to write and debug. Glue and library bugs can crash
> node. And glue modules by different authors look different, so they're hard
> to comprehend and extend.
>
> Pointers? Comments?
>
>  --
> --
> 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" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nodejs+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
-- 
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" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [nodejs] Wrong md5 for downloads of 0.10.23

2013-12-17 Thread Peter Tribble
On Tue, Dec 17, 2013 at 1:54 PM, samonzeweb  wrote:

> Hi,
>
> According to the news :
> http://blog.nodejs.org/2013/12/11/node-v0-10-23-stable/
>
> The MD5 for source code tarball is8717942d1bdfa8902ce65cd33b4293d16b486c64
>
> But after download (two times, on separate computers) MD5 is
> 90d75d6d12890cad4ec9cdfefa5f3a3e
>
> Perhaps it's just a mistake on the blog, but for security sake I prefer
> report it.
>

It's an SHA1 checksum, not MD5.

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
-- 
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" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [nodejs] compilation error for node-v0.8.19 on Solaris SPARC 10

2013-02-22 Thread Peter Tribble
On Thu, Feb 21, 2013 at 11:13 PM,   wrote:
> Hi,
>
> I am trying to compile mentioned node version on Solaris SPARC 10

As Ben said, SPARC is simply not going to work.

> I have also tried to download latest version from -
> http://www.petertribble.co.uk/Solaris/node.html and add the package. It got
> added successfully but not sure how to check whether it installed correctly
> or not? on that post only I have found "If you're on Solaris 10, then
> unfortunately those binaries won't work for you." It means I can't compile
> on Solaris 10?

To clarify - the "SunOS" binaries from nodejs.org will work on newer
OpenSolaris-derived releases - SmartOS, OpenIndiana, OmniOS,
Illumos and friends, and presumably Solaris 11. If you need binaries
for Solaris 10, then  you need my packages. In both cases, x86 only.

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
-- 
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" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [nodejs] Re: Node package for Solaris 10 (x86)

2013-02-08 Thread Peter Tribble
On Fri, Feb 8, 2013 at 9:36 PM, Will Arroyo  wrote:
>
> thank you for the help! I have got node running but i am having trouble with
> npm...all i see in the bin directory is a npm-cli.js file. is this suppose
> to be in my path?

Oops (I didn't say I had thoroughly tested it). What I should have written was

cd bin
ln -s ../lib/node_modules/npm/bin/npm-cli.js npm

so that npm is a symlink to that script. You'll probably have to edit
that as well, so it's got the correct path to the node binary in it.

> On Friday, February 8, 2013 11:42:27 AM UTC-7, Peter Tribble wrote:
>>
>> On Fri, Feb 8, 2013 at 6:38 PM, Will Arroyo  wrote:
>> > Wow thanks for the fast response! I also already have curl installed, so
>> > in
>> > order to use my own curl would I just change those sym links?
>>
>> No, if you arrange it so that it finds your curl first, then you'll
>> be fine. You could then just delete the curl I ship (which is just
>> a convenience for people who don't have it already). (Ditto the
>> symlinks for tar and make - I think npm expects the gnu versions
>> of tar and make.)
>>
>> > On Friday, February 8, 2013 11:28:28 AM UTC-7, Peter Tribble wrote:
>> >>
>> >> On Fri, Feb 8, 2013 at 6:10 PM, Will Arroyo 
>> >> wrote:
>> >> > I know this is an old thread but I want to use your package for
>> >> > solaris
>> >> > 10.
>> >> > Only thing is I want to install it in my home directory not opt/node.
>> >> > how
>> >> > can this be done?
>> >>
>> >> You can extract the files out of a package with pkgtrans, the only
>> >> bit this will miss is any symbolic or hard links.
>> >>
>> >> Something like this ought to work:
>> >>
>> >> bunzip2 TRIBnode-0.8.19.0.pkg.bz2
>> >> pkgtrans TRIBnode-0.8.19.0.pkg .
>> >> mv TRIBnode/root/opt/Node .
>> >>
>> >> you'll need to set LD_LIBRARY_PATH (one day I'll get around
>> >> to fixing this because it shouldn't really be necessary)
>> >>
>> >> env LD_LIBRARY_PATH=Node/lib PATH=Node/bin:$PATH node ...
>> >>
>> >> and if you want npm to work there are a few more symlinks
>> >>
>> >> cd Node/lib
>> >> ln -s libcurl.so.4.2.0 libcurl.so.4
>> >> ln -s libcurl.so.4.2.0 libcurl.so
>> >> cd ../bin
>> >> ln -s /usr/sfw/bin/gmake make
>> >> ln -s ../lib/node_modules/npm/bin/npm-cli.js*
>> >> ln -s /usr/sfw/bin/gtar tar
>>
>> --
>> -Peter Tribble
>> http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
>
> --
> --
> 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" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nodejs+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
-- 
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" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [nodejs] Re: Node package for Solaris 10 (x86)

2013-02-08 Thread Peter Tribble
On Fri, Feb 8, 2013 at 6:38 PM, Will Arroyo  wrote:
> Wow thanks for the fast response! I also already have curl installed, so in
> order to use my own curl would I just change those sym links?

No, if you arrange it so that it finds your curl first, then you'll
be fine. You could then just delete the curl I ship (which is just
a convenience for people who don't have it already). (Ditto the
symlinks for tar and make - I think npm expects the gnu versions
of tar and make.)

> On Friday, February 8, 2013 11:28:28 AM UTC-7, Peter Tribble wrote:
>>
>> On Fri, Feb 8, 2013 at 6:10 PM, Will Arroyo  wrote:
>> > I know this is an old thread but I want to use your package for solaris
>> > 10.
>> > Only thing is I want to install it in my home directory not opt/node.
>> > how
>> > can this be done?
>>
>> You can extract the files out of a package with pkgtrans, the only
>> bit this will miss is any symbolic or hard links.
>>
>> Something like this ought to work:
>>
>> bunzip2 TRIBnode-0.8.19.0.pkg.bz2
>> pkgtrans TRIBnode-0.8.19.0.pkg .
>> mv TRIBnode/root/opt/Node .
>>
>> you'll need to set LD_LIBRARY_PATH (one day I'll get around
>> to fixing this because it shouldn't really be necessary)
>>
>> env LD_LIBRARY_PATH=Node/lib PATH=Node/bin:$PATH node ...
>>
>> and if you want npm to work there are a few more symlinks
>>
>> cd Node/lib
>> ln -s libcurl.so.4.2.0 libcurl.so.4
>> ln -s libcurl.so.4.2.0 libcurl.so
>> cd ../bin
>> ln -s /usr/sfw/bin/gmake make
>> ln -s ../lib/node_modules/npm/bin/npm-cli.js*
>> ln -s /usr/sfw/bin/gtar tar

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
-- 
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" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [nodejs] Re: Node package for Solaris 10 (x86)

2013-02-08 Thread Peter Tribble
On Fri, Feb 8, 2013 at 6:10 PM, Will Arroyo  wrote:
> I know this is an old thread but I want to use your package for solaris 10.
> Only thing is I want to install it in my home directory not opt/node. how
> can this be done?

You can extract the files out of a package with pkgtrans, the only
bit this will miss is any symbolic or hard links.

Something like this ought to work:

bunzip2 TRIBnode-0.8.19.0.pkg.bz2
pkgtrans TRIBnode-0.8.19.0.pkg .
mv TRIBnode/root/opt/Node .

you'll need to set LD_LIBRARY_PATH (one day I'll get around
to fixing this because it shouldn't really be necessary)

env LD_LIBRARY_PATH=Node/lib PATH=Node/bin:$PATH node ...

and if you want npm to work there are a few more symlinks

cd Node/lib
ln -s libcurl.so.4.2.0 libcurl.so.4
ln -s libcurl.so.4.2.0 libcurl.so
cd ../bin
ln -s /usr/sfw/bin/gmake make
ln -s ../lib/node_modules/npm/bin/npm-cli.js*
ln -s /usr/sfw/bin/gtar tar

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
-- 
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" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [nodejs] Error when compiling node.js on Solaris 10

2013-02-07 Thread Peter Tribble
On Thu, Feb 7, 2013 at 4:54 PM, Grzegorz Junka  wrote:
> Hi, I'm trying to install node.js on Solaris 10. The binary distribution
> that can be downloaded from node.js website is compiled on Solaris 11 and
> doesn't work on Solaris 10 (libsocket.so.1: version 'SUNW_1.7' not found).

Packages for Solaris 10 are available here:

http://www.petertribble.co.uk/Solaris/node.html

If those don't suit your needs then let me know and I'll send you my
patches.

> I tried to compile from sources but I am getting this error:
>
> /bin/sh: syntax error at line 1: `$' unexpected
> gyp: Call to '(echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E - >
> /dev/null 2>&1) && echo "-m32" || true' returned exit status 2. while
> loading dependencies of /Documents/staging/pdfweb/deps/node/node.gyp while
> trying to load /Documents/staging/pdfweb/deps/node/node.gyp
> Error running GYP
>
>
> I installed both gcc and g++ from OpenCSW:
>
> bash-4.2# which gcc && which g++
> /opt/csw/bin/gcc
> /opt/csw/bin/g++
>
>
> Python is in version 2.6.8 and make in version 3.81, so all prerequisites
> are fulfilled. Any idea or suggestion? I would appreciate any help.

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
-- 
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" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [nodejs] node.js on Solaris 10

2012-12-28 Thread Peter Tribble
On Thu, Dec 27, 2012 at 12:07 PM, Ben Noordhuis  wrote:
> On Thu, Dec 27, 2012 at 11:19 AM, Eugene Zheganin  wrote:
>> Hi.
>>
>> How do you guys build it on Solaris ? Because I'm stuck. I have a Solaris 10
>> server and I need to put a node.js on it.

If you're happy with prebuilt packages then you can get
them from here:

http://www.petertribble.co.uk/Solaris/node.html

>> So... I tried to build a newer 0.9.x branch. After doing same stufff (adding
>> a couple of --std=c99 and -D_XPG6 flags to some .mk and .gyp) I got the
>> following issue:
...
> Can you try a patch? Apply it with:
>
>   curl -s https://github.com/bnoordhuis/libuv/commit/6e12bff.patch |
> git apply --directory=deps/uv

Thanks Ben - that works fine for me.

(Just for info, I'm using gcc 4.6.3.)

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
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" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Version 0.8.6 (Stable)

2012-08-07 Thread Peter Tribble
On Tue, Aug 7, 2012 at 8:06 PM, Isaac Schlueter  wrote:
> 2012.08.07, Version 0.8.6 (Stable)
>
> This is the first release to include binary distributions for all
> supported Unix operating systems (Linux, Darwin, and SunOS).

Nice!

The SunOS binaries are only for modern versions (presumably
Illumos and derivatives and maybe Solaris 11); it would be handy
to know exactly where they're expected to work.

For Solaris 10 (x86 only, not sparc, as people occasionally ask)
I've got my packages available here:

http://www.petertribble.co.uk/Solaris/node.html

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
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" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: v0.8.* make failed under Linux x64

2012-07-18 Thread Peter Tribble
On Tue, Jul 17, 2012 at 11:45 PM, Ben Noordhuis  wrote:

> You need at least make 3.81. I'll update the installation prerequisites.
>
> gcc 3.4.x should technically work but I can't really guarantee it. I
> made an effort to support it until recently(ish) because it's what old
> Solaris systems ship with.
>
> There was however no one but me actually using Solaris boxes that old,
> so I dropped it. :-) Realistically speaking, you need at least gcc
> 4.2.0.

There are other people out there using Node on Solaris 10. I built
the 0.4 series with the old bundled gcc, but starting with 0.6 I use a
newer gcc (4.6.x) because that's so much easier.

For anyone else who wants prebuilt Solaris 10 packages for Node.js
(x86 only, not sparc) mine are available from here:

http://www.petertribble.co.uk/Solaris/node.html

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
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" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en