Why are there compilers written in C and C++ in 2022?

Why are there compilers written in C and C++ in 2022?

Attached: 11411d89b075d03478533f0ace11d15b0ad2ddf46519e10348a2d6dc92fb03b0.jpg (640x725, 55.66K)

Because it runs on most platforms

Because C++ is a tested language that actually works for complex software. What else would they be written in? Your FOTD memelang?

Because almost no one actually writes a compiler for their meme language. They just write a LLVM or a GCC frontend. And those are in C++.

Attached: 231215414.jpg (1920x1080, 216.05K)

What is C's horny copy?

C++, of course.

Because they are legacy projects. If you're writing a compiler from scratch nowadays, you should use a real high level language.

Compilers do not suffer from the constraints that would rule out high level languages, hence using C/C++ for them is just shooting yourself in the foot.

C++ never works for any software. Everything written in it ends up being an abomination.

Easy access to qualified programmers.

>C++NY
Checks out

Attached: 1661000793841800.png (800x636, 229.38K)

Clang and GCC are both written in C++. Just admit you're an unemployed retard.
Compilers have to be very performant.

>Compilers have to be very performant.
Yes. Your point being?

S
A
U
C
E

Both GCC and Clang are unmaintainable spaghetti monstrosities with new bugs being discovered every other day. Even if I were unemployed, it wouldn't change the reality of the situation.

While decades-old software written in $YOUR_FAVOURITE_LANGUAGE is always perfectly maintainable and bugfree. Did I guess right?

meito_(maze)

...

GCC is written in C++, they switched years ago.
Which modern compilers are still written in C?

>Compilers have to be very performant.
No they don't. People prefer that compilers be performant, but they are not required to be. Compilers don't have real-time requirements.

Do they fuck the dog?

Kill yourself.

You need compilers to be fast so you can perform complex optimizations within reasonable time.

>but they are not required to be.
This mentality is why most software sucks. Every program that is used interactively by the user (as opposed to say a maintenance script that you run overnight) should be as fast as possible, that's a fundamental part of good UX. Not just programs with hard real-time requirements.

>Why are there compilers written in C and C++ in 2022?
Most compilers are written in the language they are intended to compile. The compiler used to bootstrap them can be written in any language, so people will use the tools they know. Turns out C and C++ are commonly used in university classes that teach compiler development. It helps that Lex and Yacc are used with C, and that LLVM is a C++ library.

>Compilers have to be very performant.
Judging by MSVC, this isn't actually required.
tcc I guess?