In principle, it is possible for binary executables to eat up a lot of space too. It's often the result of static linking the whole dependency tree. I've seen binaries that are hundreds of MB because of that!
My haphazard guess is that a large chunk of that might be documentation. I remember MSDN taking up several GBs of space -- back then, the choice was between precious disk space and having to read them online over dial-up :P
The Haskell compiler makes zero guarantees about binary compatibility when you change the versions of a library, because the binary interface is just an implementation detail of the compiler. A simple incremental change in the Haskell code might create drastic changes to the interface at the binary level.
In contrast, C libraries are designed to expose their C interface, which is nearly one-to-one to the binary interface, so the programmer has enough control for maintaining binary compatibility.
Well, the Arch maintainers have decreed that dynamic-only is the way forward. The Wiki tries to clarify the situation, but there's not much more that can be done to alleviate that.
I also remember Stack not having an uninstall option, so if I installed it myself and then wanted to remove it I'd have to do so manually, which is not cool.
Stack itself is just a single executable file. If you use it, it will also set up configuration files and install packages/Stackage snapshots/etc to ~/.stack, but you can just remove that directory manually.
Also, there is no need to install GHC if you already have Stack. Stack will download its own copy of GHC to ~/.stack and you can use Stack's GHC in lieu of Arch's ghc to avoid the linking problems. Stack is pretty self-contained.
The ghc-pkg check log doesn't show anything interesting. All it's complaining is that the documentation is missing, which is not relevant for actually building code.
That being said, I ran into a similar issue yesterday. For some reason, when I upgraded GHC, it did not re-register the haskell-* packages that were already installed. As a result, I had to reinstall all those packages to force them to re-register:
It looks like to me that they have some kind of workflow where changes are selectively cherry-picked from master onto the release branches.
The releases do have commits from as recent as June, so my best guess is that the 5.0.x release is in maintenance-only mode, so all the new features stay on master but bugfixes do get backported (cherry-picked) onto 5.0.x.
It's actually remarkably difficult for me to upgrade that infrequently.
Anytime I want to install some software (which happens fairly often), if my package cache is out of date, Pacman would fail with HTTP 404 because the older packages are already deleted from the servers. That's my cue for upgrading, since running pacman -Sy without -u is a really bad idea. Therefore, even when I get lazy I would eventually be forced to upgrade if I want to install new packages.
FWIW, rustup offers the ability to utilize multiple toolchains. To do this using Pacman would be kind of difficult since it's designed to work with only one version at a time. You can use environment switching tools but ultimately it requires effort to set up and maintain.
That's the main reason I use rustup now. Being able to use both stable and nightly is critical for me.
You have to clarify what exactly you want. I've personally never found zsh to be all that different from bash (as long as you don't ever use zsh for scripting).
In principle, it is possible for binary executables to eat up a lot of space too. It's often the result of static linking the whole dependency tree. I've seen binaries that are hundreds of MB because of that!
My haphazard guess is that a large chunk of that might be documentation. I remember MSDN taking up several GBs of space -- back then, the choice was between precious disk space and having to read them online over dial-up :P
The PKGBUILD seems to agree on that: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mathematica&id=1a5f949c89810814d212cf49e2754bf6f317f727#n86
The Haskell compiler makes zero guarantees about binary compatibility when you change the versions of a library, because the binary interface is just an implementation detail of the compiler. A simple incremental change in the Haskell code might create drastic changes to the interface at the binary level.
In contrast, C libraries are designed to expose their C interface, which is nearly one-to-one to the binary interface, so the programmer has enough control for maintaining binary compatibility.
Well, the Arch maintainers have decreed that dynamic-only is the way forward. The Wiki tries to clarify the situation, but there's not much more that can be done to alleviate that.
Stack itself is just a single executable file. If you use it, it will also set up configuration files and install packages/Stackage snapshots/etc to
~/.stack, but you can just remove that directory manually.Also, there is no need to install GHC if you already have Stack. Stack will download its own copy of GHC to
~/.stackand you can use Stack's GHC in lieu of Arch'sghcto avoid the linking problems. Stack is pretty self-contained.Best kind of news!
What is a "CPU leak"?
The ghc-pkg check log doesn't show anything interesting. All it's complaining is that the documentation is missing, which is not relevant for actually building code.
That being said, I ran into a similar issue yesterday. For some reason, when I upgraded GHC, it did not re-register the
haskell-*packages that were already installed. As a result, I had to reinstall all those packages to force them to re-register:You just re-run cygwin's setup.exe to add or remove software. (at least that's how it used to work)
It looks like to me that they have some kind of workflow where changes are selectively cherry-picked from
masteronto the release branches.The releases do have commits from as recent as June, so my best guess is that the
5.0.xrelease is in maintenance-only mode, so all the new features stay onmasterbut bugfixes do get backported (cherry-picked) onto5.0.x.That would severely increase the odds of breakage.
It's actually remarkably difficult for me to upgrade that infrequently.
Anytime I want to install some software (which happens fairly often), if my package cache is out of date, Pacman would fail with HTTP 404 because the older packages are already deleted from the servers. That's my cue for upgrading, since running
pacman -Sywithout-uis a really bad idea. Therefore, even when I get lazy I would eventually be forced to upgrade if I want to install new packages.TIL Arch Wiki has a Git tutorial :P
Nix is a great idea in principle, but it's not native to Arch. Using it on Arch would amount to installing a second copy of the base OS.
FWIW, rustup offers the ability to utilize multiple toolchains. To do this using Pacman would be kind of difficult since it's designed to work with only one version at a time. You can use environment switching tools but ultimately it requires effort to set up and maintain.
That's the main reason I use rustup now. Being able to use both stable and nightly is critical for me.
I don't get what benefit this would bring. Changing the shell takes nearly no effort.
Personally I run a fairly minimal zsh setup, no third-party packages except for
zsh-syntax-highlighting.Oops, I may have been unclear. What I mean is, what parts of Bash do you want to keep?
You have to clarify what exactly you want. I've personally never found zsh to be all that different from bash (as long as you don't ever use zsh for scripting).
Are you referring to their
masterbranch, or to a specificv1.0.0tag? In the latter case you should not use-git.I think one of the boxes is missing "yes/no".
Looks like the Arch package for ghc-8.0.2 removed all the static libraries (which causes the compilation errors mentioned in a sibling thread).
Okay so it doesn't work at all. That's pretty serious.
Edit: workaround (for now): uncomment and add
ghc-options: -dynamicto your~/.cabal/configfile.What do you mean "breaks"? Are they causing compilation errors? Or are the apps failing to locate the libs?
A script that periodically checks for connectivity and restarts netctl-auto when it fails: https://github.com/Rufflewind/config/blob/0e582ce4a051ba955af983cfa200abf9e898db6d/root/bin/conmon