Re:Psd.js: A Photoshop Document Parser in CoffeeScript
by DonnyV on Tuesday January 31, 2012 @01:38PM
(#3534547)
Why CoffeeScript? Am I missing something or wouldn't have better performance with straight javascript?
[ Parent
| on HN ]
Re:Psd.js: A Photoshop Document Parser in CoffeeScript
by DougBTX on Tuesday January 31, 2012 @01:51PM
(#3534610)
Why 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.)
Re:Psd.js: A Photoshop Document Parser in CoffeeScript
by rimantas on Tuesday January 31, 2012 @02:49PM
(#3534862)
Try this:
###
Your comment there
###
Re:Psd.js: A Photoshop Document Parser in CoffeeScript
by ehsanu1 on Tuesday January 31, 2012 @02:19PM
(#3534729)
CoffeeScript can even be faster than hand-written JavaScript. See this comment I digged up by jashkenas: 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.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript
by tlrobinson on Tuesday January 31, 2012 @03:12PM
(#3534960)
It's equally possible to write CoffeeScript that's slower than the equivalent JavaScript: https://news.ycombinator.com/item?id=3371471
To get the most performance out of any language you need to understand it very well.