4 ms·
How much of that is Indicative of rustc vs llvm? The latter isn't exact a lightweight piece of software.
by qppo 6y ago
How much of that is Indicative of rustc vs llvm? The latter isn't exact a lightweight piece of software.
- aidenn0 6y agoUntil there is a rustc in production that doesn't use llvm to emit code in the backend, the point is moot, no?
- adrianN 6y agoNo, I don't think so. If LLVM is at fault then the issue is definitely not inherent to Rust the language or Rust the development culture.
- kzrdude 6y agoInteresting point. Does anyone know how much memory is needed to compile llvm+clang? GCC?
- anthk 6y agoIDK about compiling llvm/clang, but using clang/llvm needs far less memory than gcc. I've used clang in machines with less than 256mb of RAM.
- saagarjha 6y agoThat varies widely on your linker and how many threads you use. I have compiled LLVM on systems with 4 GB of RAM, though; but have been forced to fall back on single-threaded compilation.
- numbsafari 6y agoYour code is what it depends on. If you are picking dependencies with no concern for the overhead they introduce, well, it says everything it needs to say: you value that dependency over the associated overhead it introduces. Asking an OS to adopt those same preferences, without any appreciation for their needs or preferences is pretty rude and arrogant. A better solution would be to ask “what would it take, because I’d like to understand your needs”. Maybe then Theo could help you understand their constraints. Trying to argue with him that he needs something he clearly doesn’t isn’t very nice and won’t get a nice response if you push it too far.
- ddevault 6y agoYou are ultimately responsible for your dependencies. No program is innocent of its dependency graph.
- qppo 6y agoTo me the question is moot if the problem is llvm. I don't know if that's the case or not. Modern tools require modern hardware. If the problem is that the target constraints don't allow modern tools to be used, the problem is the constraints and not the tools. But maybe I just don't understand their stance here.
- thesuperbigfrog 6y agoDepending on what you are working on / with, you may not be able to choose your constraints. Constraints that you cannot change can certainly dictate what tools you have to choose from.
- asveikau 6y agoIt seems like a number of *BSD projects are generally in favor of llvm and clang, in part because they dislike GNU/FSF. I know OpenBSD supports some more esoteric hardware that LLVM probably will not target, however.