On Jan 12, 2015, at 10:05 AM, Aria Stewart wrote: > > On Jan 12, 2015, at 10:41 AM, Zeev Atlas wrote: >> >> I am new to JavaScript and node.js, but I have a lot of experience in other >> languages (Perl for example.) Could somebody please explain or point me to >> documentation about what is the difference between child/callback and fork >> that is used in Perl. Is there any conceptual difference, any improvement or >> is it basically one and the same > > Perl's fork starts a whole new unix process; communication with the parent is > only via a status code. > > Callbacks are a much more internal structure; they're like a sub reference in > perl, passed to a sub that starts IO to be called when the IO has finished.
But of course you *can* start a whole new unix process in node if you want to, using child_process: http://nodejs.org/api/child_process.html -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/F122D1E6-D3AD-4A4F-82AE-B937235A143F%40ryandesign.com. For more options, visit https://groups.google.com/d/optout.
