Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Node v0.7.0
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 28 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ryan Dahl  
View profile  
 More options Jan 16 2012, 10:59 pm
From: Ryan Dahl <r...@tinyclouds.org>
Date: Mon, 16 Jan 2012 19:59:17 -0800
Local: Mon, Jan 16 2012 10:59 pm
Subject: Node v0.7.0
This is the first release in the unstable v0.7 series. Almost all
users will want to remain using the stable v0.6 releases.

2012.01.16, Version 0.7.0 (unstable)

* Upgrade V8 to 3.8.6

* Use GYP build system on unix (Ben Noordhuis)

* Experimenetal isolates support (Ben Noordhuis)

* Improvements to Cluster API (Andreas Madsen)

* Use isolates for internal debugger (Fedor Indutny)

* Bug fixes

Source Code: http://nodejs.org/dist/v0.7.0/node-v0.7.0.tar.gz

Windows Installer: http://nodejs.org/dist/v0.7.0/node-v0.7.0.msi

Macintosh Installer: http://nodejs.org/dist/v0.7.0/node-v0.7.0.pkg

Website: http://nodejs.org/docs/v0.7.0/

Documentation: http://nodejs.org/docs/v0.7.0/api/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
maga  
View profile  
 More options Jan 17 2012, 8:03 am
From: maga <denel...@gmail.com>
Date: Tue, 17 Jan 2012 05:03:21 -0800 (PST)
Local: Tues, Jan 17 2012 8:03 am
Subject: Re: Node v0.7.0

Is there any docs on isolates yet?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jan 17 2012, 9:53 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Tue, 17 Jan 2012 15:53:27 +0100
Local: Tues, Jan 17 2012 9:53 am
Subject: Re: [nodejs] Re: Node v0.7.0

On Tue, Jan 17, 2012 at 14:03, maga <denel...@gmail.com> wrote:
> Is there any docs on isolates yet?

Not yet[1].

Isolates are (will be) API-compatible with child processes. So you
call child_process.fork({thread:true}) and it will spawn a new isolate
instead a new process.

[1] https://github.com/joyent/node/issues/2551


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seva Adari  
View profile  
 More options Jan 17 2012, 12:37 pm
From: Seva Adari <oddiss...@gmail.com>
Date: Tue, 17 Jan 2012 09:37:32 -0800 (PST)
Local: Tues, Jan 17 2012 12:37 pm
Subject: Re: [nodejs] Re: Node v0.7.0

Just curious:
If isolates maintain complete separate states, and objects from one isolate
are not be used in other isolates then how is an isolate different than
a separate run of a process?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paddy Byers  
View profile  
 More options Jan 17 2012, 12:50 pm
From: Paddy Byers <paddy.by...@gmail.com>
Date: Tue, 17 Jan 2012 17:50:40 +0000
Local: Tues, Jan 17 2012 12:50 pm
Subject: Re: [nodejs] Re: Node v0.7.0

Hi,

If isolates maintain complete separate states, and objects from one isolate

> are not be used in other isolates then how is an isolate different than
> a separate run of a process?

The javascript state of isolates are completely separated from one another,
but the creation cost of an isolate should be lower than that of a separate
process; for example, some of the v8 state and the eio thread pool (on unix
systems) will be shared.

Paddy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fedor Indutny  
View profile  
 More options Jan 17 2012, 12:53 pm
From: Fedor Indutny <fe...@indutny.com>
Date: Tue, 17 Jan 2012 23:53:56 +0600
Local: Tues, Jan 17 2012 12:53 pm
Subject: Re: [nodejs] Re: Node v0.7.0

And if process will die - all it's isolates will be dead too.
It's good for some use cases.

Cheers,
Fedor.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seva Adari  
View profile  
 More options Jan 17 2012, 1:21 pm
From: Seva Adari <oddiss...@gmail.com>
Date: Tue, 17 Jan 2012 10:21:27 -0800 (PST)
Local: Tues, Jan 17 2012 1:21 pm
Subject: Re: [nodejs] Re: Node v0.7.0

So, isolate is sync'ed with the parent on the death, and for all other
practical purposes, it is an independent process. I guess if your app forks
a few processes, then you don't need to worry about taking them all down
when parent exits, clean up is on the house. What use cases can you think
of could be candidates for isolates?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hahn  
View profile  
 More options Jan 17 2012, 1:29 pm
From: Mark Hahn <m...@hahnca.com>
Date: Tue, 17 Jan 2012 10:29:25 -0800
Local: Tues, Jan 17 2012 1:29 pm
Subject: Re: [nodejs] Re: Node v0.7.0

>  What use cases can you think of could be candidates for isolates?

I'm just guessing, but anywhere you care about performance when having to
create and kill a lot of these?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jann Horn  
View profile  
 More options Jan 17 2012, 2:05 pm
From: Jann Horn <jannh...@googlemail.com>
Date: Tue, 17 Jan 2012 20:05:02 +0100
Local: Tues, Jan 17 2012 2:05 pm
Subject: Re: [nodejs] Re: Node v0.7.0
2012/1/17 Seva Adari <oddiss...@gmail.com>:

> What use cases can you think of
> could be candidates for isolates?

Theoretically, it should be possible to pass node buffers between them
(sharing would work, too, but meh, it'd just cause race conditions).
So, maybe for tasks with much input data, much output data and even
more computation that have to be done in a new thread?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dean Landolt  
View profile   Translate to Translated (View Original)
 More options Jan 17 2012, 3:33 pm
From: Dean Landolt <d...@deanlandolt.com>
Date: Tue, 17 Jan 2012 15:33:42 -0500
Local: Tues, Jan 17 2012 3:33 pm
Subject: Re: [nodejs] Re: Node v0.7.0

On Tue, Jan 17, 2012 at 2:05 PM, Jann Horn <jannh...@googlemail.com> wrote:
> 2012/1/17 Seva Adari <oddiss...@gmail.com>:
> > What use cases can you think of
> > could be candidates for isolates?

> Theoretically, it should be possible to pass node buffers between them
> (sharing would work, too, but meh, it'd just cause race conditions).
> So, maybe for tasks with much input data, much output data and even
> more computation that have to be done in a new thread?

There are a number of possible strategies for safely passing data back and
forth between isolates efficiently. Isolates lay the groundwork for some
really interesting concurrency experiments.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Worms  
View profile  
 More options Jan 17 2012, 3:51 pm
From: David Worms <wdiv...@gmail.com>
Date: Tue, 17 Jan 2012 21:51:18 +0100
Local: Tues, Jan 17 2012 3:51 pm
Subject: Re: [nodejs] Re: Node v0.7.0
I remember a video of Ryan Dahl mentioning a web server as an exemple
where requests would run in isolate. In this exemple, using isolate
prevent a process, understand the web server, to be kill in case of an
uncatch error while handling a request.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ted Young  
View profile  
 More options Jan 17 2012, 4:16 pm
From: Ted Young <t...@radicaldesigns.org>
Date: Tue, 17 Jan 2012 13:16:09 -0800
Local: Tues, Jan 17 2012 4:16 pm
Subject: Re: [nodejs] Node v0.7.0
On Jan 17, 2012, at 12:51 PM, David Worms wrote:

> I remember a video of Ryan Dahl mentioning a web server as an exemple where requests would run in isolate. In this exemple, using isolate prevent a process, understand the web server, to be kill in case of an uncatch error while handling a request.

There was a separate Domains proposal to try to handle that situation within a single process.  What's the status with that?  Does it still seem feasible?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jan 17 2012, 4:18 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Tue, 17 Jan 2012 22:18:58 +0100
Local: Tues, Jan 17 2012 4:18 pm
Subject: Re: [nodejs] Node v0.7.0

On Tue, Jan 17, 2012 at 22:16, Ted Young <t...@radicaldesigns.org> wrote:
> There was a separate Domains proposal to try to handle that situation within a single process.  What's the status with that?  Does it still seem feasible?

Yes and yes. Bert is working on domains but it's not ready yet.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mikeal Rogers  
View profile  
 More options Jan 17 2012, 4:25 pm
From: Mikeal Rogers <mikeal.rog...@gmail.com>
Date: Tue, 17 Jan 2012 13:25:03 -0800
Local: Tues, Jan 17 2012 4:25 pm
Subject: Re: [nodejs] Node v0.7.0
Correct me if I'm wrong but this is the seperation.

domains are for encapsulating and handling errors in process. you can think of it like adding a wrapper around a set of application code to treat it, and all the IO it does and it's descendant callbacks, as a transaction.

isolates are a replacement for processes as the preferred method of scaling a node application to multiple cores.

running each "transaction" in an isolate would be too costly.

-Mikeal

On Jan 17, 2012, at January 17, 20121:18 PM, Ben Noordhuis wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
billywhizz  
View profile   Translate to Translated (View Original)
 More options Jan 17 2012, 6:17 pm
From: billywhizz <apjohn...@gmail.com>
Date: Tue, 17 Jan 2012 15:17:59 -0800 (PST)
Local: Tues, Jan 17 2012 6:17 pm
Subject: Re: Node v0.7.0
quick question - do isolates allow us to set the processor affinity of
each isolate so we can "pin" an isolate to a particular cpu?

On Jan 17, 9:25 pm, Mikeal Rogers <mikeal.rog...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jan 17 2012, 6:26 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Wed, 18 Jan 2012 00:26:55 +0100
Local: Tues, Jan 17 2012 6:26 pm
Subject: Re: [nodejs] Re: Node v0.7.0

On Wed, Jan 18, 2012 at 00:17, billywhizz <apjohn...@gmail.com> wrote:
> quick question - do isolates allow us to set the processor affinity of
> each isolate so we can "pin" an isolate to a particular cpu?

No.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
billywhizz  
View profile  
 More options Jan 17 2012, 6:30 pm
From: billywhizz <apjohn...@gmail.com>
Date: Tue, 17 Jan 2012 15:30:10 -0800 (PST)
Local: Tues, Jan 17 2012 6:30 pm
Subject: Re: Node v0.7.0
thanks. that's a pity. would it be worth raising an issue with the v8
team to allow this?

On Jan 17, 11:26 pm, Ben Noordhuis <i...@bnoordhuis.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dean Landolt  
View profile  
 More options Jan 17 2012, 6:30 pm
From: Dean Landolt <d...@deanlandolt.com>
Date: Tue, 17 Jan 2012 18:30:25 -0500
Local: Tues, Jan 17 2012 6:30 pm
Subject: Re: [nodejs] Re: Node v0.7.0

On Tue, Jan 17, 2012 at 6:26 PM, Ben Noordhuis <i...@bnoordhuis.nl> wrote:
> On Wed, Jan 18, 2012 at 00:17, billywhizz <apjohn...@gmail.com> wrote:
> > quick question - do isolates allow us to set the processor affinity of
> > each isolate so we can "pin" an isolate to a particular cpu?

> No.

Is this a "not on your life" no, or just a "no for now"?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jan 17 2012, 6:34 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Wed, 18 Jan 2012 00:34:01 +0100
Local: Tues, Jan 17 2012 6:34 pm
Subject: Re: [nodejs] Re: Node v0.7.0

On Wed, Jan 18, 2012 at 00:30, billywhizz <apjohn...@gmail.com> wrote:
> thanks. that's a pity. would it be worth raising an issue with the v8
> team to allow this?

It's not a V8 issue, the isolate runs in a thread that is created by Node.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jan 17 2012, 6:39 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Wed, 18 Jan 2012 00:39:11 +0100
Local: Tues, Jan 17 2012 6:39 pm
Subject: Re: [nodejs] Re: Node v0.7.0

On Wed, Jan 18, 2012 at 00:30, Dean Landolt <d...@deanlandolt.com> wrote:
> On Tue, Jan 17, 2012 at 6:26 PM, Ben Noordhuis <i...@bnoordhuis.nl> wrote:
>> On Wed, Jan 18, 2012 at 00:17, billywhizz <apjohn...@gmail.com> wrote:
>> > quick question - do isolates allow us to set the processor affinity of
>> > each isolate so we can "pin" an isolate to a particular cpu?

>> No.

> Is this a "not on your life" no, or just a "no for now"?

Probably the former. It's nearly always better to leave work load
scheduling to the OS. I say 'nearly' but I can't really think of a
scenario where that's not the case.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
billywhizz  
View profile  
 More options Jan 17 2012, 6:43 pm
From: billywhizz <apjohn...@gmail.com>
Date: Tue, 17 Jan 2012 15:43:52 -0800 (PST)
Local: Tues, Jan 17 2012 6:43 pm
Subject: Re: Node v0.7.0
i can think of many scenarios where i would like to pin tasks to
certain cpu's to allow soft real time processing by ensuring no other
processes will be contending with the cpu the node.js isolate is on...

On Jan 17, 11:39 pm, Ben Noordhuis <i...@bnoordhuis.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seva Adari  
View profile  
 More options Jan 17 2012, 10:13 pm
From: Seva Adari <oddiss...@gmail.com>
Date: Tue, 17 Jan 2012 19:13:24 -0800 (PST)
Local: Tues, Jan 17 2012 10:13 pm
Subject: Re: [nodejs] Re: Node v0.7.0

> > What use cases can you think of could be candidates for isolates?

>> Theoretically, it should be possible to pass node buffers between them
>> (sharing would work, too, but meh, it'd just cause race conditions).
>> So, maybe for tasks with much input data, much output data and even
>> more computation that have to be done in a new thread?

> There are a number of possible strategies for safely passing data back and
> forth between isolates efficiently. Isolates lay the groundwork for some
> really interesting concurrency experiments.

If the intent of isolate is to box it and separate it, why try to use it in
a case where data sharing is required. If the use case requires data
sharing is isolate really a candidate for it?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seva Adari  
View profile  
 More options Jan 17 2012, 10:22 pm
From: Seva Adari <oddiss...@gmail.com>
Date: Tue, 17 Jan 2012 19:22:58 -0800 (PST)
Local: Tues, Jan 17 2012 10:22 pm
Subject: Re: Node v0.7.0

> i can think of many scenarios where i would like to pin tasks to
> certain cpu's to allow soft real time processing by ensuring no other
> processes will be contending with the cpu the node.js isolate is on...

Even if you have a way to schedule/assign to a particular core/cpu, is it
not the prerogative of the OS to either honor/dishonor it?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dobes  
View profile  
 More options Jan 17 2012, 10:27 pm
From: Dobes <dob...@gmail.com>
Date: Tue, 17 Jan 2012 19:27:38 -0800 (PST)
Local: Tues, Jan 17 2012 10:27 pm
Subject: Re: Node v0.7.0
You could probably make a native extension to do it, even if it isn't
built into node out of the box.

However, it does sound like a strange requirement at the application
level.

The OS should already favor having the same thread run on the same CPU
if it can, since that makes better
use of the CPU caches.

And, just because you told the OS to run that thread on that CPU with
high priority, it doesn't mean the OS
won't run other threads on that CPU while that task is not in a run
state.

On Jan 18, 7:43 am, billywhizz <apjohn...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
billywhizz  
View profile  
 More options Jan 18 2012, 12:08 am
From: billywhizz <apjohn...@gmail.com>
Date: Tue, 17 Jan 2012 21:08:25 -0800 (PST)
Local: Wed, Jan 18 2012 12:08 am
Subject: Re: Node v0.7.0
if you use taskset and cgroups in linux you can do all sorts of things
like running everything under init on 1 cpu and then running specific
processes/threads on other cpu's. it can be useful in certain
scenarios, especially where you want as little context switching as
possible in your application (i.e. low latency).

you also may want to make sure that two threads run on specific cores
so that they share the same cpu cache(s). this would only be useful if
both threads were accessing the same shared memory.

if node.js is allowing threads to be spawned then it should support
setting thread affinity imho.

http://linux.die.net/man/1/taskset
http://linux.die.net/man/2/sched_setaffinity
http://littledaemons.wordpress.com/2009/01/22/cpu-affinity-and-taskset/

On Jan 18, 3:27 am, Dobes <dob...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 28   Newer >
« Back to Discussions « Newer topic     Older topic »