News for hackers. Stuff that matters.
Re:GHC 9.4.2 regresses being able to do math on aarch64 by moomin on Wednesday October 12, 2022 @03:22PM (#33181743)
It would be much harder to achieve this with GHC since the package manager is far from deterministic.
Re:GHC 9.4.2 regresses being able to do math on aarch64 by bgamari on Wednesday October 12, 2022 @09:37PM (#33186140)
I'm not sure what you mean by this. `cabal-install` is as quite deterministic. The largest challenge in this area is the fact that core libraries' interface sometimes change. Our [head.hackage](https://gitlab.haskell.org/ghc/head.hackage/) infrastructure is one way of addressing this. I agree that it would be great to leverage `head.hackage` to test GHC against a larger body of packages.
Re:GHC 9.4.2 regresses being able to do math on aarch64 by moomin on Thursday October 13, 2022 @02:12AM (#33187823)
It definitely _can_ be deterministic, but my experience of pulling down packages without a frozen index is that it rarely compiles. This, inevitably is because the plan depends on the current state of hackage. A combination of “it might pick a different minor version”, “different versions can cause cascading effects”, “many libraries have breaking changes” and “Haskell is extremely unforgiving of potential breaks” makes it very difficult to use without either a) being really good or b) downloading a freeze index. (I download freeze indexes.)

The whole core libraries thing is difficult, in that I can see it’s a real problem for everyone constantly updating their packages (and consuming them), but also that most of the changes are actually good ideas.