News for hackers. Stuff that matters.
Re:Syncify.js – Eliminates the need for callbacks in the bro... by adrusi on Sunday May 10, 2015 @11:21AM (#9520155)
It seems incredibly fragile, better to just use some kind of compile-to-js language. IcedCoffeeScript, Clojurescript, Gopherscript and more all make it possible to avoid callbacks in a cleaner way, with fewer restrictions and probably better performance. Babel has experimental support for es7 async functions, if you really want to write javascript code.
Re:Syncify.js – Eliminates the need for callbacks in the bro... by voxtex on Sunday May 10, 2015 @11:28AM (#9520172)
I've found using promises with generators yields code very similar to async/await, without relying on experimental features.

https://github.com/tj/co

or

https://github.com/petkaantonov/bluebird/blob/master/API.md#...

Re:Syncify.js – Eliminates the need for callbacks in the bro... by randall on Sunday May 10, 2015 @12:40PM (#9520418)
Re:Syncify.js – Eliminates the need for callbacks in the bro... by adrusi on Sunday May 10, 2015 @11:40AM (#9520212)
yes, async/await and generators are the same construct, represented by two different syntaxes. Each can be implemented in terms of the other.