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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Compiling Rust is NP-hard

8 点作者 NieDzejkob将近 4 年前

1 comment

kadoban将近 4 年前
Quite interesting, I had not thought of pattern-exhaustiveness checking like that.<p>Isn&#x27;t compiling several languages, including Rust, actually undecidable though? Seems like if your type system or metaprogramming systems are Turing complete, this has to be the case.<p>So that&#x27;s worse than NP-hard already (though calling it NP-hard is still technically correct).