IOG GHC Updates | IOG Engineering

5 Likes
2 Likes
2 Likes

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:

2 Likes
7 Likes
3 Likes
2 Likes

okay okay, the blog post said the new HoH chapter was published…well three hours later that’s actually true :wink: 2.5.2. Memory Footprints of Data Types

4 Likes
4 Likes

The latest update is out:

6 Likes
2 Likes
5 Likes

Sylvain: worked on building GHC with cabal-install instead of Hadrian.

Sounds cool! But how is it possible?

7 Likes

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.

8 Likes
5 Likes
3 Likes
8 Likes

!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

1 Like