Re: [julia-users] questions about coroutines

2015-06-30 Thread Tom Breloff
Looking forward to your ideas Amit. My experience with Go (and the all-in recommendation to use channels for everything) is that very frequently this is horribly bad advice. Channels will always be heavy weight due to the fact that they have to maintain multiple states and context switch betwe

Re: [julia-users] questions about coroutines

2015-06-30 Thread Amit Murthy
Agree with your comments. There is enough room to speed up these constructs. I have some thoughts on having channels in Base. Will post a note about it on Julia-dev in a couple of days. On Tue, Jun 30, 2015 at 12:20 PM, g wrote: > I'm trying to understand coroutines for single threaded concu

[julia-users] questions about coroutines

2015-06-30 Thread ggggg
I'm trying to understand coroutines for single threaded concurrency. I'm surprised that produce()/consume() and RemoteRef have no mechanism for type information, and as I understand it, are type unstable. One should therefore avoid using these in inner loops I guess? Should we expect this to re