jsr icon indicating copy to clipboard operation
jsr copied to clipboard

TS Go Port and Slow Types

Open KnorpelSenf opened this issue 9 months ago • 6 comments

https://devblogs.microsoft.com/typescript/typescript-native-port/ is a thing now and TS gets 10X faster. This poses two questions:

  1. Is it still reasonable to argue that calling into tsc is slow (something that was very obvious with the JS version of tsc)?
  2. What does this mean for slow types?

KnorpelSenf avatar Mar 11 '25 20:03 KnorpelSenf

The question shouldn't be throw now because this "new" project isn't published

AugustinMauroy avatar Mar 11 '25 21:03 AugustinMauroy

It's published and starting to be usable for some tasks already, and it is definitely going to be very much inevitable for any serious project building on top of TS. JSR is such a project, so it makes sense to discuss this. Just because they didn't configure a build step in CI yet, doesn't mean it's not relevant.

KnorpelSenf avatar Mar 11 '25 21:03 KnorpelSenf

Oh wow interesting. I wasn't aware of that. for moment type checking with JSR cli/deno is done by tsc cli under the hood. So wee need to see what deno will do.

AugustinMauroy avatar Mar 12 '25 15:03 AugustinMauroy

I'd guess that slow types will remain. For large projects, even a 10× speedup might not be enough, and the issue of types becoming unstable over time will remain (although JSR could potentially cache the output).

lishaduck avatar Mar 13 '25 02:03 lishaduck

I still think #15 is better 🤔

typed-sigterm avatar Mar 22 '25 09:03 typed-sigterm

I actually agree that faster tsc means faster checks but nothing beyond that. My personal take is that TS 7.0 does not change anything about the fact that we should encourage developers to use isolatedDeclarations. I guess slow types are a way to move people towards better code, and this aspiration does not change because some tool gets faster.

KnorpelSenf avatar May 08 '25 12:05 KnorpelSenf

Seems like nobody has anything to add. Closing.

KnorpelSenf avatar Sep 05 '25 08:09 KnorpelSenf