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.

React Compiler is now open source

8 pointsby rixtoxabout 1 year ago

1 comment

rixtoxabout 1 year ago
I wish the TypeScript team can actually make a good and fast compiler with type inference support. There are so many opportunities for minimization, optimization, conditional builds, instrumentation, and so on if we can utilize the type info from the TypeScript compiler. Unfortunately the TypeScript team never commit to requests like these, and only commit to idiomatic JavaScript transpilation.[1][2]<p>And because TypeScript is so complex and development is so heavy, third party attempts on making a type checker have never succeeded.[3]<p>I&#x27;m curious how far React Compiler can go without the access to TypeScript type info, and if they would invest in compiler tooling for TypeScript in the future. But considering Meta has Flow as their in-house alternative to TypeScript, they might not have the incentive in investing in the TypeScript ecosystem.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;TypeScript&#x2F;issues&#x2F;8#issuecomment-1430312467">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;TypeScript&#x2F;issues&#x2F;8#issuecommen...</a><p>[2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;TypeScript&#x2F;issues&#x2F;661#issuecomment-374473607">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;TypeScript&#x2F;issues&#x2F;661#issuecomm...</a><p>[3]: <a href="https:&#x2F;&#x2F;github.com&#x2F;dudykr&#x2F;stc&#x2F;issues&#x2F;1101">https:&#x2F;&#x2F;github.com&#x2F;dudykr&#x2F;stc&#x2F;issues&#x2F;1101</a>