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.
> 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
If you don't want to implement the low-level building blocks of your programming language, why don't you just generate Rust code instead of attempting to write a compiler?
2 comments
[ 3.1 ms ] story [ 13.4 ms ] thread> 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
If you don't want to implement the low-level building blocks of your programming language, why don't you just generate Rust code instead of attempting to write a compiler?