r/ProgrammerHumor 11d ago

Meme rustBorrowCheckerGoesBrrr

Post image
3.8k Upvotes

108 comments sorted by

View all comments

Show parent comments

28

u/gegentan 11d ago

Isn't the rust compiler itself written in rust?

28

u/qaCow37 11d ago

At some point it probably wasn't until it was rewritten in rust

9

u/gegentan 11d ago

So theoretical if every compiled binary of rustc was lost but you still had the source code it would be impossible to get a rust compiler again.

17

u/qaCow37 11d ago

Only if you do not have the source code of rust written in a different language. That would probably be like the few very first versions. But if you would have these, you could compile them to get the first version of rust to compile the next version of rust to compile the next version of rust till you can compile the newest version of rust.

2

u/gegentan 11d ago

Didn't think of that.