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.

Rust: The New LLVM

1 pointsby deniswalmost 5 years ago

2 comments

HelloNursealmost 5 years ago
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?
papafalmost 5 years ago
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.