carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
http://docs.carbon-lang.dev/
Other
32.25k stars 1.48k forks source link

May I recommend to use less disk space? #1944

Closed christianhujer closed 2 years ago

christianhujer commented 2 years ago

I installed Homebrew only for Carbon (Bazel), and I've never used Bazel for anything.

And here's my disk usage:

christian.hujer@Nelkinda-Blade-Stealth-2:~/git/carbon-language/carbon-lang$ du -csh /home/linuxbrew/ ~/.cache/bazel
2.9G    /home/linuxbrew/
2.0G    /home/christian.hujer/.cache/bazel
4.8G    total

Almost 5 GB just for trying to play around with a programming language that wants to compete with C++? 5 GB is a bit much, don't you agree? May I suggest that Carbon uses less disk space? And yes, it's mostly not Carbon but Bazel and Brew, but using them is a choice.

chandlerc commented 2 years ago

FWIW, a lot of this is LLVM, not Bazel...

We're installing the LLVM and Clang toolchain to have a consistent host toolchain. And Bazel is building the LLVM and Clang libraries to use in our implementation. I don't think we have any really great alternatives here. But we do actually keep track of this, and will try to minimize the overhead where we can.

But none of this will really impact the experience of eventual Carbon users. These are only relevant for folks helping design and develop Carbon. In a few years, when we're looking at making this more accessible for users we'll of course want to provide as minimal packages as we can.

Last but not least, I'd ask to avoid talking about a "diet" or making other analogies to people's weight. Instead, just focus on "use less diskspace" or "reduce dependencies."

For now, as this really is just an implementation detail that no one is actively working on, closing as "not-planned".

Keep in mind, you can always try out Carbon without installing anything using https://carbon.compiler-explorer.com/

christianhujer commented 2 years ago

Point taken about "diet", changed the text.