News for hackers. Stuff that matters.
Re:Ten Years of TypeScript by mumphster on Saturday October 01, 2022 @03:36PM (#33049338)
Do you have examples of slower code generated by typescript? TS is a superset of JS so it changing anything that has a large performance impact seems odd, but maybe I’m missing something here. The types aren’t even available at runtime, what’s the biggest slow down you’ve seen?
Re:Ten Years of TypeScript by redox99 on Saturday October 01, 2022 @03:44PM (#33049387)
Most likely polyfills because he's targeting some old ES version.
Re:Ten Years of TypeScript by dynamite-ready on Saturday October 01, 2022 @04:31PM (#33049823)
Re:Ten Years of TypeScript by int_19h on Saturday October 01, 2022 @07:03PM (#33050999)
This claims that TypeScript is an order of magnitude slower than JavaScript, which is obvious nonsense if you know how TypeScript works, unless they counted transpiling in execution time.