Re: About generators

2015-05-14 Thread Jeremy Martin
Hey (author of suspend here): this post was an earlier attempt I had an explaining some of the concepts involved: http://devsmash.com/blog/whats-the-big-deal-with-generators It covers some of the basics, like, what iterators are, how generators relate to iterators, how generators enable suspended

Re: About generators

2015-05-14 Thread Jason Orendorff
On Thu, May 14, 2015 at 2:05 AM, mohan.radhakrish...@cognizant.com wrote: Thanks. What is the underlying concurrency framework when we use generators for concurrent workloads ? Does it depend on the particular VM ? Generators aren't for concurrency. When a generator runs, it runs in the same

RE: About generators

2015-05-14 Thread Mohan.Radhakrishnan
Subject: RE: About generators I've done a few blog posts on the topic: http://www.aaron-powell.com/posts/2014-01-13-functions-that-yield-mutliple-times.html http://www.aaron-powell.com/posts/2014-01-18-calling-up-callbacks-with-yield.html http://www.aaron-powell.com/posts/2014-01-28-cleaning-up

About generators

2015-05-14 Thread Mohan.Radhakrishnan
Hi, I have used simple generators but there seem to be some advanced usages. I came across these git references from another post and I have looked at the code. What are some articles that explain these concepts for JS developers before delving into this type of code ? Is reading this

RE: About generators

2015-05-14 Thread Aaron Powell
has blogged about them too - http://www.2ality.com/2013/06/iterators-generators.html From: es-discuss [mailto:es-discuss-boun...@mozilla.org] On Behalf Of mohan.radhakrish...@cognizant.com Sent: Thursday, 14 May 2015 4:10 PM To: es-discuss@mozilla.org Subject: About generators Hi, I have

RE: About generators

2015-05-14 Thread Mohan.Radhakrishnan
@mozilla.orgmailto:es-discuss@mozilla.org Subject: About generators Hi, I have used simple generators but there seem to be some advanced usages. I came across these git references from another post and I have looked at the code. What are some articles that explain these concepts for JS developers before

Re: About generators

2015-05-14 Thread Axel Rauschmayer
  From: es-discuss [mailto:es-discuss-boun...@mozilla.org mailto:es-discuss-boun...@mozilla.org] On Behalf Of mohan.radhakrish...@cognizant.com mailto:mohan.radhakrish...@cognizant.com Sent: Thursday, 14 May 2015 4:10 PM To: es-discuss@mozilla.org mailto:es-discuss@mozilla.org Subject: About