TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

React Compiler is now open source

8 点作者 rixtox大约 1 年前

1 comment

rixtox大约 1 年前
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>