IOG GHC Updates | IOG Engineering

Yes, although the smallest unit is a byte in this proof of concept. For bits we probably need a bit more support in later stages of GHC.

{-# UNPACK #-} uses the infrastructure for unboxed sums, which is really based around the assumption that each field is passed in a separate register, so we waste a lot of space if we directly translate that to heap objects. Maybe we can also reorder fields globally later, when unpacking multiple constructors, instead of doing every sum individually.

I hope we can use this in GHC itself and carefully use unpacking to save some memory.

6 Likes

If it weren’t for IOG’s Plutus, I absolutely wouldn’t have started using Haskell. Thank you for your amazing work.

Haskell has reinvigorated my thirst for knowledge.

In the past 7 years, I’ve seen the general consensus about cryptocurrencies in the Haskell community go from “those degenerate scammers are going to ruin Haskell” to “Haskell wouldn’t be where it is today without the contributions of IOG”. The latter opinion is now solidly beyond question.

Thank you!

9 Likes
5 Likes