[mochikit] Re: Generator vs Deferred

2007-07-02 Thread Hamish Friedlander
This sort of technique isn't dependent on generators - they just take care of one annoying issue. I wrote djax (djax.mindcontroldogs.com) which does a similar sort of transformation and could be adapted to use generators. The advantages are (sort of) pre-emptive threads that would be perfect for

[mochikit] Re: Generator vs Deferred

2007-06-28 Thread Bob Ippolito
On 6/27/07, Giulio Cesare Solaroli <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > a colleague has just pointed me to this post on Javascript threading: > http://www.neilmix.com/2007/02/07/threading-in-javascript-17/ > > I have to admit that I did not read the whole articole very careful, > bu

[mochikit] Re: Generator vs Deferred

2007-06-28 Thread Arnar Birgisson
On 6/28/07, Giulio Cesare Solaroli <[EMAIL PROTECTED]> wrote: > For the project I am working at (www.clipperz.com), I need to make the > UI (all written in JavaScript) reactive even when performing some > heavy (cryptographic) tasks. > > I was thinking about how to split the computation tasks of e

[mochikit] Re: Generator vs Deferred

2007-06-28 Thread Giulio Cesare Solaroli
Hello Arnar, On 6/28/07, Arnar Birgisson <[EMAIL PROTECTED]> wrote: > Hi Giulio, > > On 6/28/07, Giulio Cesare Solaroli <[EMAIL PROTECTED]> wrote: > > I was hoping I could avoid the extra effort of warping my mind around > > another challenging paradigm, but I was hoping wrong. :-) > > Well.. unl

[mochikit] Re: Generator vs Deferred

2007-06-28 Thread Arnar Birgisson
Hi Giulio, On 6/28/07, Giulio Cesare Solaroli <[EMAIL PROTECTED]> wrote: > I was hoping I could avoid the extra effort of warping my mind around > another challenging paradigm, but I was hoping wrong. :-) Well.. unless you have specific need for this kinda thing (pseudo-threading in javascript),

[mochikit] Re: Generator vs Deferred

2007-06-28 Thread Giulio Cesare Solaroli
Amar, thank you very much for your thoroughly comment. I was hoping I could avoid the extra effort of warping my mind around another challenging paradigm, but I was hoping wrong. :-) Thanks again. Giulio Cesare On 6/28/07, Arnar Birgisson <[EMAIL PROTECTED]> wrote: > On 6/27/07, Giulio Ces

[mochikit] Re: Generator vs Deferred

2007-06-27 Thread Arnar Birgisson
On 6/27/07, Giulio Cesare Solaroli <[EMAIL PROTECTED]> wrote: > a colleague has just pointed me to this post on Javascript threading: > http://www.neilmix.com/2007/02/07/threading-in-javascript-17/ Interesting, kinda like Stackless Python but for javascript :) > I have to admit that I did not re