3 ms·
> at build-time That's going to be hard. You're going to need an operating system, redox might work, not sure if it can run rustc yet. Once you have the oper
by gpm 6y ago
> at build-time
That's going to be hard.
You're going to need an operating system, redox might work, not sure if it can run rustc yet.
Once you have the operating system you need the hardware, specifically the hardware not to be using C. I'm not sure how I would even go about testing that but even if I had a magic wand I don't think it would be easy to cobble together a computer... and I can't even use particularly exotic hardware because of the limited OS selection.
- Ericson2314 6y agorelibc supports Linux too, not just Redox.
- gpm 6y agoLinux is written in C , as is macos and I suspect portions of windows.
- muricula 6y agoYour suspicions are correct.
- Ericson2314 6y agoI'm talking about the userland side of things. If we want pure Rust at, Redox or some tiny embedded thing is already no-C at runtime. The big novelty here is that build time is getting improved.
- est31 6y agoYeah also cargo has some C dependencies. It uses curl to download stuff from the network, openssl for TLS connections (at least on linux), and libgit2 to clone git repositories, both needed for crates.io downloads (registry is a git repo) as well as for git dependencies in Cargo.toml. But I think the progress is still very important. It shows that Rust can do basically anything. Also, for the c dependencies Cargo uses, rust rewrites exist. reqwest, rustls, and various (currently highly immature) pure-rust git libraries like gitoxide/https://github.com/chrisdickinson/git-rs https://github.com/chrisdickinson/git-rs.
- pjmlp 6y agoThat would be easy, just pick an IBM or Unisys mainframe, home of the systems programming languages created before C was born, and still used.