| ▲ | pjmlp 2 days ago | ||||||||||||||||||||||
And how did you got the binary for that language? This argument can be pushed all the way down to build your own CPUs from sand, get to build the first hexdump monitor with electric switches, followed by writting the first Assembler in hexdump, and only then the first compiler for one of thoses languages in Assembly, and finally you get C. | |||||||||||||||||||||||
| ▲ | ronsor 2 days ago | parent [-] | ||||||||||||||||||||||
Yes, that's how bootstrapping works. C is still easier to bootstrap than Rust, because it's simpler to implement and requires fewer steps. Of course, you trade off other features for that simplicity. Bootstrapping Rust would involve the same steps, only at some point you've got to write a Rust compiler in assembly, or write a C compiler in assembly that can compile mrustc, which probably means writing another C compiler in C so you can easily add all the needed features. | |||||||||||||||||||||||
| |||||||||||||||||||||||