4 ms·
Why CoffeeScript? Am I missing something or wouldn't have better performance with straight javascript?
by DonnyV 15y ago
Why CoffeeScript? Am I missing something or wouldn't have better performance with straight javascript?
- DougBTX 15y agoWhy do you think there would be a performance aspect? The JavaScript generated by the CoffeeScript compiler looks just like well written JavaScript. (But without the comments, grumble grumble.)
- rimantas 15y agoTry this: ### Your comment there ###
- ehsanu1 15y agoCoffeeScript can even be faster than hand-written JavaScript. See this comment I digged up by jashkenas: http://news.ycombinator.com/item?id=2443138 http://news.ycombinator.com/item?id=2443138 Also, from the CoffeeScript website: The compiled output is readable and pretty-printed, passes through JavaScript Lint without warnings, will work in every JavaScript implementation, and tends to run as fast or faster than the equivalent handwritten JavaScript. http://coffeescript.org/ http://coffeescript.org/
- tlrobinson 15y agoIt's equally possible to write CoffeeScript that's slower than the equivalent JavaScript: https://news.ycombinator.com/item?id=3371471 https://news.ycombinator.com/item?id=3371471 To get the most performance out of any language you need to understand it very well.