logoalt Hacker News

wat10000yesterday at 4:55 PM1 replyview on HN

This particular compiler does require bootstrapping, and that's obviously what "the compiler" is referring to in that comment.

Building your compiler in another language doesn't help at all. In fact, it just makes it worse. Dogfooding C++20 in your compiler that isn't even built in C++ is obviously impossible.


Replies

kstrauseryesterday at 5:03 PM

It absolutely does not. There is no part of C++20 that requires the implementing compiler to be written in C++20.

My original point is that you can write a compiler for any language in any language.

show 2 replies