FAQ
Hi All,


I have created a prototype of LWP running over threads for node. There are
a couple of short videos of it running at

http://www.youtube.com/channel/UCEKyOjUJwxe6kTes3p-HYRg. The code &
pre-built Windows binary are at https://github.com/westboost/troop.js.proto.
Only Windows support is working at the moment. You should be able to run
any standard node code in each LWP without problems.


I am sure some/many will view this as unneeded, my interest is being able
to use node for medium/heavy data processing and in that area I was
concerned processes (particularly IPC) would really would become an issue,
so hence a prototype using threads to see how scary it was. LWP was just
a convenient model to present the threads. The code was designed as far as
possible to be a bolt-on to node to make it easy to track changes without
too much heartache, it's currently based on v0.8.


What I have not put much/any effort into is defining a decent interface to
the LWP model, all you can do at the moment is exec() to create new LWP.
Very much open to suggestions on what people would think is
essential/useful. Feel free to open wish list items against the prototype,
I will look at these when deciding on what changes are needed for a
production version with wider OS support to work.


Enjoy,

Kev

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

Search Discussions

  • Bradley Meck at Aug 13, 2012 at 8:05 pm
    This looks similar to the work on isolates from a while back, can you
    enumerate the differences and if you are managing some of the more complex
    state of processes like process.env / process.cwd?
    On Monday, August 13, 2012 1:04:09 PM UTC-5, Kevin Jones wrote:

    Hi All,


    I have created a prototype of LWP running over threads for node. There
    are a couple of short videos of it running at

    http://www.youtube.com/channel/UCEKyOjUJwxe6kTes3p-HYRg. The code &
    pre-built Windows binary are at
    https://github.com/westboost/troop.js.proto. Only Windows support is
    working at the moment. You should be able to run any standard node code in
    each LWP without problems.


    I am sure some/many will view this as unneeded, my interest is being
    able to use node for medium/heavy data processing and in that area I was
    concerned processes (particularly IPC) would really would become an issue,
    so hence a prototype using threads to see how scary it was. LWP was just
    a convenient model to present the threads. The code was designed as far as
    possible to be a bolt-on to node to make it easy to track changes without
    too much heartache, it's currently based on v0.8.


    What I have not put much/any effort into is defining a decent interface
    to the LWP model, all you can do at the moment is exec() to create new LWP.
    Very much open to suggestions on what people would think is
    essential/useful. Feel free to open wish list items against the prototype,
    I will look at these when deciding on what changes are needed for a
    production version with wider OS support to work.


    Enjoy,

    Kev
    --
    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 [email protected]
    To unsubscribe from this group, send email to
    nodejs+[email protected]
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • Kevin Jones at Aug 13, 2012 at 8:28 pm

    On Monday, August 13, 2012 9:04:57 PM UTC+1, Bradley Meck wrote:
    This looks similar to the work on isolates from a while back, can you
    enumerate the differences and if you are managing some of the more complex
    state of processes like process.env / process.cwd?
    I started from understanding the 0.7 code and re-used some bits of it. I
    can't really be definitive on how it differs as I never found a good
    description of where that work was going to end up, best I let others
    comment really. There is opportunity to separate out state fairly easily, I
    nearly went down that path but thought better keep it simple for now, so if
    you use features like env and cwd changes will be visible to all the LWP
    modulo any caching that might be happening that I have not seen. Similarly
    if one LWP listens on a port others won't be able to etc.

    Kev

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupnodejs @
categoriesnodejs
postedAug 13, '12 at 7:34p
activeAug 13, '12 at 8:28p
posts3
users2
websitenodejs.org
irc#node.js

2 users in discussion

Kevin Jones: 2 posts Bradley Meck: 1 post

People

Translate

site design / logo © 2023 Grokbase