News for hackers. Stuff that matters.
Re:JavaScript Isn't Scheme (2013) by rachitnigam on Wednesday April 25, 2018 @06:13PM (#16926781)
Both promises and generators can be used to implement delimited continuations.

Furthermore, there is already a compiler that implements first class delimited continuations in JavaScript: http://stopify.org

The project implements the control operator (which can implement other operators like call/cc). The research paper linked on the website talks about how control is implemented.

Re:JavaScript Isn't Scheme (2013) by mst on Wednesday April 25, 2018 @08:44PM (#16927872)
I've implemented delimited continuations using both. But I don't disagree with any of your factual statements.