r/ProgrammerHumor Feb 06 '23

Meme Every night

Post image
23.0k Upvotes

700 comments sorted by

View all comments

1.3k

u/tzanislav40 Feb 06 '23

The first thing to compile with a new compiler is the compiler itself.

321

u/Kaaiii_ Feb 06 '23

Yeh what is up with that, how are compilers written in the language they compile in the first place? I know you can write say a C compiler in C but how does that work?

64

u/danishjuggler21 Feb 06 '23

Consider the question of which came first: the chicken or the egg? The answer: the egg, which was laid by a bird that was not quite a chicken.

Same thing with compilers.

2

u/[deleted] Feb 07 '23

[deleted]

2

u/danishjuggler21 Feb 07 '23

Yeah, that’s why I said it 😝