I'm looking into using TypeScript combined with a client-side MVC (most likely Backbone.js + Marionette.js or Ember.js) for future projects and therefor have a few questions related to performance and optimisation :
How does
TypeScriptoutput compare to native JavaScript performance wise ?Since
asm.jsis a subset of JavaScript, would it be possible to convertTypeScriptcode intoasm.jscode ? If yes, is it already possible ?Is it possible and still useful to create builds of AMD projects that use
TypeScriptwithGoogle Closure compiler?How much overhead does
TypeScriptadd on average, file-size wise ?When using lightweight libraries like
Backbone.jsin a small project for example. Does it make sense to useTypeScriptin regards to file size ?
I like the added benefits of TypeScript but I don't want to sacrifice performance for coding style and typing.
Any articles / books about using TypeScript in big projects, especially related to performance, optimisations and builds are very welcome !
Thank you in advance !