TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

TypeScript team released an explorer for performance tuning

111 pointsby aabbcc1241about 2 years ago

4 comments

DanHultonabout 2 years ago
This is... good news, but I still cannot fathom using the default Typescript compiler for regular development. Seriously, leave the type-checking to your IDE and CICD chain, and switch to using tsx (<a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;tsx" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;tsx</a>) or swc (<a href="https:&#x2F;&#x2F;swc.rs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;swc.rs&#x2F;</a>) and you will _immediately_ notice the difference in speed and productivity.
评论 #35928867 未加载
评论 #35929097 未加载
评论 #35928046 未加载
muglugabout 2 years ago
This is really impressive work, which can benefit other large JS tools.<p>I realise this is sort of a dead horse, but rewriting the Typescript checker in Rust would not be an impossible task for a team as well-resourced as Microsoft’s.<p>I know, because I rewrote a different 100KLOC typechecker myself in Rust (making a few small adjustments for a slightly different target language). It took me about a year.<p>It would speed up the TypeScript typechecker at least 3-5x, which would save a lot of programmer time (and also datacenter energy consumption).<p>There’s one obvious downside — it raises the bar for outside contributions — but given the expertise necessary to contribute usefully to a static analysis tool in the first place, and to contribute to TypeScript in particular, I’m not sure it’s a big additional impediment.
评论 #35927918 未加载
评论 #35932383 未加载
评论 #35929574 未加载
brundolfabout 2 years ago
Extremely cool. It&#x27;s crazy to think that the team built such an advanced tool for themselves, which very few other JS codebases can even benefit from. But the results speak for themselves, it was clearly worthwhile
roqiabout 2 years ago
Is there any effort to get browsers to support typescript? Transpiling is great, but all the tooling required by a typescript project, from transpiling to barreling, is becoming daunting.
评论 #35928294 未加载
评论 #35928365 未加载
评论 #35929546 未加载
评论 #35944874 未加载
评论 #35930586 未加载