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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Rust: The New LLVM

1 点作者 denisw将近 5 年前

2 条评论

HelloNurse将近 5 年前
So the Rust compiler can be the basis of a compiler provided the language is exactly like Rust and if complex changes for the benefit of reusing compiler internals are implemented. Not exactly a value proposition.<p>&gt; A lot of ideas we take for granted in our programming languages like loops, closures, and enums (sum types), have to be re-implemented every time a new language compiles to LLVM<p>If you don&#x27;t want to implement the low-level building blocks of your programming language, why don&#x27;t you just generate Rust code instead of attempting to write a compiler?
papaf将近 5 年前
This is a cunning plan. If someone writes a language that targets Rust instead of LLVM there will a language that compiles slower than Rust.