fibers and generators (as described in harmony) have a large delta between them.

if you read the harmony spec for generators you'll notice that the yield 
statement pushes it's way all the way up the call stack so you can't abstract 
it away the same way common-node does with fibers.

what you should probably do is just use normal node, the way 99% of the 
community does :)


On Feb 10, 2012, at February 10, 20121:35 PM, Marco Rogers wrote:

> 1) node will support harmony generators the second they are stable in v8. The 
> language evolves with v8, node doesn't touch it.
> 
> 2) To my knowledge, node-fibers is a fork of node with patches to both node 
> and v8 to enable fibers. So you can't just run node, you have to run 
> node-fibers.
> 
> 3) I think it would be very easy to paint yourself into a corner here. But 
> there are lots of abstractions on top of fibers that could possibly be 
> implemented later with generators instead. Keep in mind that when you dig 
> into the details, fibers seem to allow deeper semantic changes in node than 
> the version of generators in harmony. I'm not the best person to explain the 
> difference, but I've understood enough of the talk to know they are not 
> equivalent paradigms. Generators enable a subset of functionality that fibers 
> does.
> 
> Hope this helps.
> 
> :Marco
> 
> -- 
> 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
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

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

Reply via email to