|
|
|
|
|
by TheApexTheater
1711 days ago
|
|
There are a couple of reasons why creating a self-hosting compiler can be good idea: 1. Shows to others that your language is capable of a project of moderate complexity, as well as display what an "idiomatic" version of writing code is 2. Remove dependencies on parts you can't control (once you rewrite it in Zig, rather than C++, you don't need to worry about new C++ features or deprecations between versions) 3. Writing code in the language helps catch bugs in the language specification and in the compiler's implementation of the language. These are just the ones off the top of my head, but people with more PL-Design experience may be able to elaborate. |
|