[nodejs] Re: Dependency based asynchronous flow

2013-01-09 Thread nin jin
require( 'jin' )( function( $ ){
//var flow= require('graphflow').flow
//flow()

var forty= $.jin.sync( function( done ){
done( null, 40 )
} )
//  .add('forty', function(callback) {
//callback(null, 40);
//  })

var two= $.jin.sync( function( done ){
done( null, 2 )
} )
//  .add('two', function(callback) {
//callback(null, 2);
//  })

var result= forty() + two()
//  .add('added', ['forty', 'two'], function(callback) {
//callback(null, this.forty + this.two);
//  })

//  .fail(function(error) {
//throw error;
//  })

console.log( 'answer:', result )
//  .done(function(values) {
//console.log('answer:', values.added);
//  })

} )
//  .run();

and you can use loops, conditions, error handling, recursion and all of 
javascript stuff

четверг, 10 января 2013 г., 1:13:14 UTC+4 пользователь Tom Wieland написал:

> Hi everyone,
>
> I've created a simple library for asynchronous flow, based on specifying 
> dependencies. I implemented it using a dependency graph and LiveScript. 
> Except that it doesn't form one list of dependencies in order, it forms a 
> list of beginning and exit nodes, and executes everything in between 
> in parallel where needed by defining dependencies.
>
> I'm aiming to cut away as much code as possible by the use of .flow(), but 
> also allow you to use the Graph and Node classes/functions when needing 
> more expressiveness (e.g. reuse of nodes in different graphs, generating 
> graphs, etc).
>
> https://github.com/Industrial/graphflow
>
> Any input would be greatly appreciated, as this is my first release on npm 
> :-)
>
> Cheers,
>
> Tom Wieland
>

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


[nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Eldar
Wow, how many similar libs appeared simultaneously. But, hey guys to be 
honest, make-flow  is the most 
javascript-ish and the only practical out there :)

On Thursday, January 10, 2013 1:13:14 AM UTC+4, Tom Wieland wrote:
>
> Hi everyone,
>
> I've created a simple library for asynchronous flow, based on specifying 
> dependencies. I implemented it using a dependency graph and LiveScript. 
> Except that it doesn't form one list of dependencies in order, it forms a 
> list of beginning and exit nodes, and executes everything in between 
> in parallel where needed by defining dependencies.
>
> I'm aiming to cut away as much code as possible by the use of .flow(), but 
> also allow you to use the Graph and Node classes/functions when needing 
> more expressiveness (e.g. reuse of nodes in different graphs, generating 
> graphs, etc).
>
> https://github.com/Industrial/graphflow
>
> Any input would be greatly appreciated, as this is my first release on npm 
> :-)
>
> Cheers,
>
> Tom Wieland
>

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


[nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Tatumizer
@eldar: sure, any honest person prefers his own lib :)

Syntactic noise. Boilerplate. Nothing javascript-ish about tons of 
boilerplate. Parallel execution? Loops? Stream processing?
Work until you reach syntax so concise that async program looks as natural 
as sync equivalent. And cover the same features.

Or join discussion here:
https://github.com/tatumizer/circuit

:)



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


[nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Eldar
nope, that's wrong

On Thursday, January 10, 2013 9:28:40 PM UTC+4, Tatumizer wrote:
>
> @eldar: sure, any honest person prefers his own lib :)
>

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


Re: [nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Tom
I don't like having my threads hijacked.

Use mine because it's better? Oh you are where I was years ago?

Too bad this isn't a forum, because I'd request a thread lock.

I'll just continue with my project, and leave the 'real' work to the 'big
boys'.

I'm sure this doesn't leave a great impression of me but neither does it of
the mailing list. I guess this is what happens when communities get big.

I'll move discussion of graphflow to github.


On Thu, Jan 10, 2013 at 7:04 PM, Eldar  wrote:

> nope, that's wrong
>
>
> On Thursday, January 10, 2013 9:28:40 PM UTC+4, Tatumizer wrote:
>>
>> @eldar: sure, any honest person prefers his own lib :)
>>
>  --
> 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 nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> 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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Eldar
I am sorry, I true didn't want to say "Oh, you lib is crap, I don't 
respect" and don't have that in mind. But you requested feedback and were 
pointed to other libs with similar idea. The best thing is to grap some 
useful ideas from them if there are such. BTW, why do you need feedback? 
The best feedback is your app and your users.

On Friday, January 11, 2013 1:09:01 AM UTC+4, Tom Wieland wrote:
>
> I don't like having my threads hijacked.
>
> Use mine because it's better? Oh you are where I was years ago?
>
> Too bad this isn't a forum, because I'd request a thread lock.
>
> I'll just continue with my project, and leave the 'real' work to the 'big 
> boys'.
>
> I'm sure this doesn't leave a great impression of me but neither does it 
> of the mailing list. I guess this is what happens when communities get big.
>
> I'll move discussion of graphflow to github.
>
>
> On Thu, Jan 10, 2013 at 7:04 PM, Eldar >wrote:
>
>> nope, that's wrong
>>
>>
>> On Thursday, January 10, 2013 9:28:40 PM UTC+4, Tatumizer wrote:
>>>
>>> @eldar: sure, any honest person prefers his own lib :)
>>>
>>  -- 
>> 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 nod...@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+un...@googlegroups.com 
>> 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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Mark Hahn
> I don't like having my threads hijacked

You must not have been following this forum for very long.  Every month or
two someone posts something about an async library and then a flame war
erupts.  Some threads have gone into hundreds of posts.  Someone always
suggests to ban these threads or start a new forum.  This is a *very*
opinionated topic.  You didn't realize what a mine field you were stepping
into.  Check out some old threads.


On Thu, Jan 10, 2013 at 1:25 PM, Eldar  wrote:

> I am sorry, I true didn't want to say "Oh, you lib is crap, I don't
> respect" and don't have that in mind. But you requested feedback and were
> pointed to other libs with similar idea. The best thing is to grap some
> useful ideas from them if there are such. BTW, why do you need feedback?
> The best feedback is your app and your users.
>
>
> On Friday, January 11, 2013 1:09:01 AM UTC+4, Tom Wieland wrote:
>
>> I don't like having my threads hijacked.
>>
>> Use mine because it's better? Oh you are where I was years ago?
>>
>> Too bad this isn't a forum, because I'd request a thread lock.
>>
>> I'll just continue with my project, and leave the 'real' work to the 'big
>> boys'.
>>
>> I'm sure this doesn't leave a great impression of me but neither does it
>> of the mailing list. I guess this is what happens when communities get big.
>>
>> I'll move discussion of graphflow to github.
>>
>>
>> On Thu, Jan 10, 2013 at 7:04 PM, Eldar  wrote:
>>
>>> nope, that's wrong
>>>
>>>
>>> On Thursday, January 10, 2013 9:28:40 PM UTC+4, Tatumizer wrote:

 @eldar: sure, any honest person prefers his own lib :)

>>>  --
>>> 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 nod...@googlegroups.com
>>>
>>> To unsubscribe from this group, send email to
>>> nodejs+un...@**googlegroups.com
>>>
>>> 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 nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> 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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en