I have something similar called 
make-flow<https://github.com/eldargab/make-flow>. 
Details are not documented yet but an example from circuit's Readme looks 
like

// definition

var app = Flow()

.def('sum1', function (done) {

  add(1, 2, done)

})

.def('sum2', function (done) {

  add(3, 4, done)

})

.def('result', function (sum1, sum2, done) {

  add(sum1, sum2, done)

})

 

// usage

app.run().eval('result', function (err, result) {

  // do something with result

})


On Friday, December 28, 2012 5:03:11 AM UTC+4, Tatumizer wrote:
>
> I'm trying to come up with a better concept for asynchronous programming. 
> My first library (mesh.js) was an attempt to use a promising line of 
> attack, but it introduced a lot of boilerplate, which no one liked (myself 
> included).. 
>
> After a lot of head-scratching, I found the way to eliminate all 
> boilerplate and syntactic noise, and eventually came up with completely new 
> design -much simpler one, and much more powerful: just two functions and 
> their combinations do the job in most practical cases. I renamed the 
> concept to "circuit" - it's a better name for this device.
>
> https://github.com/tatumizer/circuit/blob/master/README.md
>
> At this stage, it's a design doc only, specifically targeting nodejs. I 
> think the concept of circuit could simplify nodejs programming..
> What is equally important that it uses all existing nodejs conventions and 
> interfaces AS IS: no code generation, no wrappers, no conversions of f(x,y) 
> into fubar(f,x,y) or anything - just pure nodejs code.
>
> I would be very interested to know opinions (even negative opinions) to 
> improve design and find  potential flaws. 
>
> Thanks,
> Alex
>

-- 
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