introduces a new memory pool based allocator with different tradeoffs.
Where can see the source code of this?
Where can see the source code of this?
It’s in 3 parts:
- haskell.nix/overlays/patches/ghc/ghc-9.6-linker-pool-allocator.patch at master · input-output-hk/haskell.nix · GitHub
- haskell.nix/overlays/patches/ghc/ghc-9.6-linker-pool-allocator-2.patch at master · input-output-hk/haskell.nix · GitHub
- haskell.nix/overlays/patches/ghc/ghc-9.6-linker-pool-allocator-3.patch at master · input-output-hk/haskell.nix · GitHub
okay okay, the blog post said the new HoH chapter was published…well three hours later that’s actually true
2.5.2. Memory Footprints of Data Types
The latest update is out:
Sylvain: worked on building GHC with cabal-install instead of Hadrian.
Sounds cool! But how is it possible?
All the packages used to build GHC are valid Cabal packages, so building a stage1 GHC executable is actually easy. Bootstrapping boot libraries (rts, ghc-prim, etc.) to build a stage2 compiler is a bit more involved but we’re fixing cabal/ghc to make it possible. E.g. we have a branch of cabal that allows passing CFLAGS only to build some specific C files (Hadrian does this and it’s required to build the rts).
The goal isn’t to replace Hadrian for day to day GHC dev as cabal-install still doesn’t understand staging, bindist creation, etc. but to make bootstrapping possible without Hadrian.
I’m not sure if that answers your question though.
!13926: Draft: use slots smaller than word as tag for smaller unboxed sums · Merge requests · Glasgow Haskell Compiler / GHC · GitLab is like automatic bit-packing?
Yes that’s the idea. There is no reason to waste all this space. cc @luite