r/coffeescript • • Jul 02 '14
Transpiler performance comparisons
Hi.
Does anyone know of a resource on the speeds of the js output of various transpiled languages.
I'm mostly wondering about coffee and clojure and how efficient the js their respective compilers produce is, if there's even any difference.
4
Upvotes
View all comments
Show parent comment
1
u/Piercey4 Jul 29 '14
90% of coffeescript is 1 to 1 with JavaScript, closurescript has a lot more language overhead to get it to output to js. Ultimately it comes down to the fact that writing in closure can force some good design principles improving code performance where you might have normally missed something. Coffeescript is the same way in many cases but ultimately both are js, and an optimized coffeescript file would be similar in performace to an optimized closure file, but both have their place to make certain programming styles more easily expressed through JavaScript.