Re: transpiling ES6 generator functions to ES5: what next?

2014-01-25 Thread Ben Newman
My experience implementing Regenerator is consistent with the nuance that Brendan is highlighting here, as I understand it. The state machines that Regenerator produces behave to the outside world almost exactly as generators are supposed to behave, but there are gaps: as an example, direct eval

Re: transpiling ES6 generator functions to ES5: what next?

2014-01-24 Thread Brendan Eich
David Bruant wrote: Hi Ben, Sorry for the very late response. This is quite an interesting work, thanks for sharing! I'm particularly interested in your test suite [1] which is impressive. This is making me realize that generators are fully compilable (efficiently from what I can see) into

Re: transpiling ES6 generator functions to ES5: what next?

2014-01-14 Thread David Bruant
Hi Ben, Sorry for the very late response. This is quite an interesting work, thanks for sharing! I'm particularly interested in your test suite [1] which is impressive. This is making me realize that generators are fully compilable (efficiently from what I can see) into ES5 and makes me wonder

transpiling ES6 generator functions to ES5: what next?

2013-11-03 Thread Ben Newman
This is my first post here, after years of lurking. I'm the primary author of https://github.com/facebook/regenerator, a transpiler for ES6 generator functions that was announced on Hacker News about two weeks ago: https://news.ycombinator.com/item?id=6594207. On the linked announcement page,