Re:The naked truth about writing a programming language (2014)
by WalterBright on Saturday May 02, 2020 @07:14PM
(#23055625)
Yes on all points. I'll add that I invented D because D was the language I wanted to write code in. The D compiler was originally written in C-with-Classes, and it became increasingly irritating for me to have to be working in that language rather than D. Thankfully, the DMD compiler is now 100% in D and I've been slowly refactoring the code into much more pleasing forms.
Also, it can also be a plan to rush to a MVP, rewrite the MVP in your language and go from there. This has the added benefit of giving you a decent sized program in your language at no extra cost - aside from testing this should make you design a better language as you learn what works at what doesn't in the "real world".
It's not always possible (Please don't write a compiler in Javascript, or even C if possible - pain and lack of abstraction respectively).