▲ | loeg 3 days ago | |||||||||||||||||||||||||||||||
Do you think any new, Git-relevant platform is going to gain C compiler support via anything other than Clang/LLVM? | ||||||||||||||||||||||||||||||||
▲ | bArray 3 days ago | parent | next [-] | |||||||||||||||||||||||||||||||
In theory you should be able to use TCC to build git currently [1] [2]. If you have a lightweight system or you're building something experimental, it's a lot easier to get TCC up and running over GCC. I note that it supports arm, arm64, i386, riscv64 and x86_64. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
▲ | 1718627440 3 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Code doesn't need to "gain C compiler support", that's the point of having a language standard. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
▲ | delusional 3 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||
The nature considering the future is that our actions _now_ affect the answer _then_. If we tie our foundational tools to LLVM, then it's very unlikely a new platform can exists without support for it. If we don't tie ourselves to it, then it's more likely we can exist without it. It's not a matter of if LLVM will be supported. We ensure that by making it impossible not to be the case. It's a self fulfilling prophecy. I prefer to ask another question: "Is this useful". Would it be useful, if we were to spin up a different platform in the future, to be able to do so without LLVM. I think the answer to that is a resounding yes. That doesn't leave rust stranded. A _useful_ path for rust to pursue would be to defined a minimal subset of the compiler that you'd need to implement to compile all valid programs. The type checker, borrow checker, unused variable tracker, and all other safety features should be optional extensions to a core of a minimal portable compiler. This way, the rust compiler could feasibly be as simple as the simplest C compiler while still supporting all the complicated validation on platforms with deep support. | ||||||||||||||||||||||||||||||||
|