Re: [nodejs] Request for Feedback: asyncscript

2012-12-11 Thread Bruno Jouhier
Try streamline.js (https://github.com/Sage/streamlinejs) It uses a slightly different syntax (underscore parameter instead of await operator) but it handles *all* JavaScript constructs. For example, it supports async calls in exception handling constructs (both try/catch and try/finally) as wel

Re: [nodejs] Request for Feedback: asyncscript

2012-12-11 Thread Mark Hahn
Welcome to the community of async library authors. I wrote one when I started node. There is no better way to learn the ins and outs of async programming. I switched back to straight async code as did many other authors. It is like learning how to ride a bicycle. All the hell goes away and sim

Re: [nodejs] Request for Feedback: asyncscript

2012-12-11 Thread Jonathan Dickinson
Oh wow. That's awesome: I had no idea that these projects existed. The approach with the defer keyword is incredibly interesting (I assume the existence of some promise library, like JQuery or node-promise). For what it's worth I set out to avoid heavy dependence on the stack: it seems that aft

Re: [nodejs] Request for Feedback: asyncscript

2012-12-11 Thread Forrest L Norvell
On Tuesday, December 11, 2012, Daniel Rinehart wrote: > I would say that this module is handling "control flow" not "flow control". Sure, and I apologize for any confusion. I, and a lot of other people, have a bad habit of using the two interchangeably. F On Tue, Dec 11, 2012 at 10:59 AM, For

Re: [nodejs] Request for Feedback: asyncscript

2012-12-11 Thread Daniel Rinehart
I would say that this module is handling "control flow" not "flow control". -- Daniel R. [http://danielr.neophi.com/] On Tue, Dec 11, 2012 at 10:59 AM, Forrest L Norvell wrote: > From a brief look, this looks very similar to the model used by TameJS or > Iced CoffeeScript, both of which use a

Re: [nodejs] Request for Feedback: asyncscript

2012-12-11 Thread Forrest L Norvell
>From a brief look, this looks very similar to the model used by TameJS or Iced CoffeeScript, both of which use an approach rooted in await / deferred semantics and AST parsing and rewriting. Are you aware of those projects? If so, how is your approach different? Also, aside from slightly terser sy

[nodejs] Request for Feedback: asyncscript

2012-12-11 Thread Jonathan Dickinson
Hi All, I just started my first foray into javascript beyond the usual minimal glue I was used with browsers. After looking at some node tutorials the first thing I noticed was the CPS hell (honestly, no way in hell I am dealing with that ;)). I present an extremely rough draft of asyncscript;