News for hackers. Stuff that matters.
Re:Re: Integrating "safe" languages into OpenBSD? (2017) by aidenn0 on Sunday May 03, 2020 @12:41PM (#23060098)
I think it was more the implication that requiring more than 2GB of RAM to compile itself was an indication of its profligate resource usage.
Re:Re: Integrating "safe" languages into OpenBSD? (2017) by acdha on Sunday May 03, 2020 @03:59PM (#23061423)
That doesn’t seem like an especially strong argument since computing is full of time/space trade-offs and 2GB of RAM hasn’t been a significant amount for over a decade at this point (X86-64 only goes back to 2003 but it was a latecomer following Intel’s epic failure to deliver Itanium). Things like whole program optimization seem like a reasonable trade off for <$20 worth of RAM.
Re:Re: Integrating "safe" languages into OpenBSD? (2017) by qppo on Sunday May 03, 2020 @12:47PM (#23060142)
How much of that is Indicative of rustc vs llvm? The latter isn't exact a lightweight piece of software.
Re:Re: Integrating "safe" languages into OpenBSD? (2017) by aidenn0 on Sunday May 03, 2020 @12:49PM (#23060154)
Until there is a rustc in production that doesn't use llvm to emit code in the backend, the point is moot, no?
Re:Re: Integrating "safe" languages into OpenBSD? (2017) by qppo on Sunday May 03, 2020 @02:07PM (#23060761)
To 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.

Re:Re: Integrating "safe" languages into OpenBSD? (2017) by thesuperbigfrog on Sunday May 03, 2020 @03:35PM (#23061263)
Depending 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.

Re:Re: Integrating "safe" languages into OpenBSD? (2017) by adrianN on Sunday May 03, 2020 @01:04PM (#23060275)
No, 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.
Re:Re: Integrating "safe" languages into OpenBSD? (2017) by numbsafari on Sunday May 03, 2020 @01:49PM (#23060628)
Your 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.

Re:Re: Integrating "safe" languages into OpenBSD? (2017) by ddevault on Sunday May 03, 2020 @02:08PM (#23060768)
You are ultimately responsible for your dependencies. No program is innocent of its dependency graph.
Re:Re: Integrating "safe" languages into OpenBSD? (2017) by kzrdude on Sunday May 03, 2020 @01:43PM (#23060580)
Interesting point.

Does anyone know how much memory is needed to compile llvm+clang? GCC?

Re:Re: Integrating "safe" languages into OpenBSD? (2017) by saagarjha on Sunday May 03, 2020 @05:35PM (#23062045)
That 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.
Re:Re: Integrating "safe" languages into OpenBSD? (2017) by anthk on Sunday May 03, 2020 @02:51PM (#23061032)
IDK 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.
Re:Re: Integrating "safe" languages into OpenBSD? (2017) by asveikau on Sunday May 03, 2020 @05:57PM (#23062183)
It 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.