Has anyone tried integrating Eric Meijer's Reactive approach with 
coroutines? Ross Bencina tried an initial Lua port of Rx (I had an exchange 
with him on this list about a year and a half ago) 
- https://github.com/RossBencina/Rxperimentalua?



On Monday, November 3, 2014 8:21:58 AM UTC-5, Tim Caswell wrote:
>
> Yes, the plan is to support both styles in all public APIs.  I agree that 
> blocking code makes doing things in parallel super hard and often ends up 
> in deadlocks where callback code would keep on running.  Each style has 
> it's strengths.
>
> On Sun, Nov 2, 2014 at 7:05 PM, Ross Bencina <[email protected] 
> <javascript:>> wrote:
>
>> On 3/11/2014 7:36 AM, Eike Decker wrote:
>>
>>> I'd vote for coroutine based programming. The closure based async
>>> programing in node.js is driving me nuts. Perfectly simple goals becomes
>>> stretched and teared like warm chewing gum when jumping through just a
>>> few asnyc hoops.
>>>
>>
>> Being able to use standard control structures across blocking async calls 
>> is a big advantage of coroutines.
>>
>> But i'm not sure whether coroutines *always* provide the best solution. 
>> For example, I'm not sure how you do scatter-gather parallel requests with 
>> Lua coroutines (i.e. issue a bunch of parallel requests, then receive each 
>> reply, then continue the coroutine once all replies have been received). 
>> Would you spawn a coroutine for each request and then join them somehow? 
>> Maybe it would be desirable to have async callbacks available so that 
>> people can implement this kind of thing if/when needed.
>>
>> Cheers,
>>
>> Ross.
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "luvit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"luvit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to