Hacker News new | past | comments | ask | show | jobs | submit login

This is one of the great things about doing language work on GitHub -- folks can start experimenting in their own directions, and some of it will make it back into the original project (ES5 strict mode early warnings: https://github.com/jashkenas/coffee-script/issues/1547) ... and some of it doesn't: https://github.com/satyr/coco

There's currently an open pull request for Iced to be merged with CoffeeScript, and the merge will happen if the fork manages to:

* Provide a seamless veneer over sync patterns in async code: defer in loops, with try/catch, within the middle of an expression...

* Handle both synchronous and parallel style "maps"...

* Prove to be more pleasant / powerful to use than callbacks and promises, in practice.

* And then the hardest bit -- do it all without breaking CoffeeScript's golden rule: it has to compile into straightforward JavaScript -- i.e., the callbacks you would have written in the first place.

It's a tall order, but if Max manages to pull all that off, it'll be pretty great.




Hi Jeremy,

streamline.js already fits the bill, including your golden rule: the core idea was precisely to generate the callbacks that the developer would write otherwise.

Today it works with both CoffeeScript and Javascript, but in a decoupled way: the streamline transformation is applied to the JS generated by the CS compiler. It could easily be repackaged as a CS language extension.

It has been around for more than a year and the CS+streamline combination is powering at least one live site: http://www.thethingdom.com/

Bruno




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: