3 ms·
Well then, people should also stop doing that with Typescript because it's often as slow as Python and much slower than JavaScript.
by abraxas 3y ago
Well then, people should also stop doing that with Typescript because it's often as slow as Python and much slower than JavaScript.
- yamtaddle 3y ago> Well then, people should also stop doing that with Typescript because it's [...] much slower than JavaScript. Wuh?
- abraxas 3y agoTypescript transpiles to JS with a bunch of runtime checks woven in resulting in much slower code than equivalent barebones JS. There are benchmarks that show this.
- fredrikholm 3y agoCould you share some of these benchmarks? This is news to me; AFAIK TS transpiles into minimized JS and has 1:1 runtime characteristics.
- yokljo 3y agoThis is false. TypeScript does not add any run time checks, but it does encourage you to add some yourself.